From: Pacho Ramos Date: Thu, 30 Apr 2020 17:18:07 +0000 (+0200) Subject: dev-python/setuptools_scm_git_archive: python2 support not needed, fix tests X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e50f915e573499a896c6c6b433f12a9768b84132;p=gentoo.git dev-python/setuptools_scm_git_archive: python2 support not needed, fix tests All reverse deps are ported to python3, fix tests Thanks-to: Agostino Sarubbo Closes: https://bugs.gentoo.org/720064 Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Pacho Ramos --- diff --git a/dev-python/setuptools_scm_git_archive/setuptools_scm_git_archive-1.1.ebuild b/dev-python/setuptools_scm_git_archive/setuptools_scm_git_archive-1.1.ebuild index 0747a0892490..94d423503545 100644 --- a/dev-python/setuptools_scm_git_archive/setuptools_scm_git_archive-1.1.ebuild +++ b/dev-python/setuptools_scm_git_archive/setuptools_scm_git_archive-1.1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) inherit distutils-r1 DESCRIPTION="A setuptools_scm plugin for git archives" @@ -21,11 +21,13 @@ DEPEND=" " RDEPEND="${DEPEND}" +distutils_enable_tests pytest + src_prepare() { export SETUPTOOLS_SCM_PRETEND_VERSION="${PV}" distutils-r1_src_prepare } python_test() { - esetup.py test + pytest tests.py || die }