summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <patrick.mclean@sony.com>2019-11-25 00:30:27 -0800
committerPatrick McLean <chutzpah@gentoo.org>2019-11-25 00:30:27 -0800
commit10ad6e5a0424ee10452b66f5abc3c3974c671e11 (patch)
tree63b384d95b4131301a3c0742ae67d872945d0e80 /dev-python
parentdev-python/importlib_metadata-0.23-r1: fix setuptools_scm removal (diff)
downloadgentoo-10ad6e5a0424ee10452b66f5abc3c3974c671e11.tar.gz
gentoo-10ad6e5a0424ee10452b66f5abc3c3974c671e11.tar.bz2
gentoo-10ad6e5a0424ee10452b66f5abc3c3974c671e11.zip
dev-python/portend-2.6: fix setuptools_scm removal
Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/portend/portend-2.6.ebuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/dev-python/portend/portend-2.6.ebuild b/dev-python/portend/portend-2.6.ebuild
index 440e6653c393..61740c50d764 100644
--- a/dev-python/portend/portend-2.6.ebuild
+++ b/dev-python/portend/portend-2.6.ebuild
@@ -23,7 +23,9 @@ distutils_enable_tests pytest
python_prepare_all() {
# avoid a setuptools_scm dependency
- sed -i "s:use_scm_version=True:version='${PV}':" setup.py || die
+ sed -i "s:use_scm_version=True:version='${PV}',name='${PN//-/.}':" setup.py || die
+ sed -r -i "s:setuptools(_|-)scm[[:space:]]*([><=]{1,2}[[:space:]]*[0-9.a-zA-Z]+|)[[:space:]]*::" \
+ setup.cfg || die
# avoid extra test deps
sed -i -r 's: --flake8:: ; s: --black:: ; s: --cov::' pytest.ini || die