From 86afcdf9222f5f3f32398c12777aba22f192054b Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Mon, 25 Nov 2019 00:06:33 -0800 Subject: dev-python/path-py: fix setuptools_scm removal Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Patrick McLean --- dev-python/path-py/path-py-11.5.2.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dev-python/path-py/path-py-11.5.2.ebuild') diff --git a/dev-python/path-py/path-py-11.5.2.ebuild b/dev-python/path-py/path-py-11.5.2.ebuild index 5955abedeba6..2f33ff1c53da 100644 --- a/dev-python/path-py/path-py-11.5.2.ebuild +++ b/dev-python/path-py/path-py-11.5.2.ebuild @@ -35,7 +35,10 @@ S="${WORKDIR}/${MY_P}" distutils_enable_tests pytest python_prepare_all() { - sed -i "s:use_scm_version=True:version='${PV}',name='path.py':" 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 # disable flake8 tests sed -i -r 's: --flake8:: ; s: --black:: ; s: --cov::' \ -- cgit v1.2.3-65-gdbad