From: Patrick McLean Date: Thu, 9 Apr 2020 02:06:55 +0000 (-0700) Subject: dev-python/importlib_metadata-1.6.0-r1: revbump, remove setuptools_scm dep X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=38baae9548b52b299d1f4b4f4d2772c5416725b2;p=gentoo.git dev-python/importlib_metadata-1.6.0-r1: revbump, remove setuptools_scm dep Package-Manager: Portage-2.3.97, Repoman-2.3.22 Signed-off-by: Patrick McLean --- diff --git a/dev-python/importlib_metadata/importlib_metadata-1.6.0.ebuild b/dev-python/importlib_metadata/importlib_metadata-1.6.0-r1.ebuild similarity index 82% rename from dev-python/importlib_metadata/importlib_metadata-1.6.0.ebuild rename to dev-python/importlib_metadata/importlib_metadata-1.6.0-r1.ebuild index c28c01994c0c..3ade092a2b5d 100644 --- a/dev-python/importlib_metadata/importlib_metadata-1.6.0.ebuild +++ b/dev-python/importlib_metadata/importlib_metadata-1.6.0-r1.ebuild @@ -22,7 +22,6 @@ RDEPEND=" $(python_gen_cond_dep 'dev-python/pathlib2[${PYTHON_USEDEP}]' -2) " BDEPEND=" - dev-python/setuptools_scm[${PYTHON_USEDEP}] test? ( ${RDEPEND} $(python_gen_cond_dep 'dev-python/importlib_resources[${PYTHON_USEDEP}]' pypy3 python{2_7,3_6}) @@ -34,3 +33,12 @@ BDEPEND=" distutils_enable_sphinx "${PN}/docs" \ '>=dev-python/rst-linker-1.9' distutils_enable_tests unittest + +python_prepare_all() { + # remove dep on setuptools_scm + sed -i -r "s:use_scm_version=.+,:version='${PV}',:" \ + setup.py || die + sed -i -e 's:setuptools-scm::' setup.cfg || die + + distutils-r1_python_prepare_all +}