summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <patrick.mclean@sony.com>2019-11-25 00:31:33 -0800
committerPatrick McLean <chutzpah@gentoo.org>2019-11-25 00:31:33 -0800
commit39f6b42943044147c89a4c89ba8b757c5dbb1fde (patch)
treece3bc75b783fc3b1201e1dc7bc2d275e79ea0eca /dev-python/twine
parentdev-python/portend-2.6: fix setuptools_scm removal (diff)
downloadgentoo-39f6b42943044147c89a4c89ba8b757c5dbb1fde.tar.gz
gentoo-39f6b42943044147c89a4c89ba8b757c5dbb1fde.tar.bz2
gentoo-39f6b42943044147c89a4c89ba8b757c5dbb1fde.zip
dev-python/twine-3.0.0: 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/twine')
-rw-r--r--dev-python/twine/twine-3.0.0.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/dev-python/twine/twine-3.0.0.ebuild b/dev-python/twine/twine-3.0.0.ebuild
index 8909b650265e..21f7e4a497dd 100644
--- a/dev-python/twine/twine-3.0.0.ebuild
+++ b/dev-python/twine/twine-3.0.0.ebuild
@@ -45,8 +45,10 @@ PATCHES=(
)
python_prepare_all() {
- # avoid a dep on setuptools_scm
- sed -i "s:use_scm_version=True:version=\"${PV}\":" setup.py || die
+ # avoid a setuptools_scm dependency
+ 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
# requires internet
rm -f tests/test_integration.py || die