commit: 39f6b42943044147c89a4c89ba8b757c5dbb1fde
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Mon Nov 25 08:31:33 2019 +0000
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Mon Nov 25 08:31:33 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39f6b429
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 <AT> gentoo.org>
dev-python/twine/twine-3.0.0.ebuild | 6 ++++--
1 file 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 8909b650265..21f7e4a497d 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