commit: 093519e5056642a9bc005bb6947943d7a7d712de
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Mon Nov 25 08:15:58 2019 +0000
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Mon Nov 25 08:15:58 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=093519e5
dev-python/jsonschema-3.2.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/jsonschema/jsonschema-3.2.0.ebuild | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dev-python/jsonschema/jsonschema-3.2.0.ebuild
b/dev-python/jsonschema/jsonschema-3.2.0.ebuild
index 8b7153a6d52..1c579f24492 100644
--- a/dev-python/jsonschema/jsonschema-3.2.0.ebuild
+++ b/dev-python/jsonschema/jsonschema-3.2.0.ebuild
@@ -45,7 +45,9 @@ distutils_enable_tests unittest
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
distutils-r1_python_prepare_all
}