commit:     e50f915e573499a896c6c6b433f12a9768b84132
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 30 17:18:07 2020 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Thu Apr 30 17:18:07 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e50f915e

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 <pacho <AT> gentoo.org>

 .../setuptools_scm_git_archive-1.1.ebuild                           | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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 0747a089249..94d42350354 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
 }

Reply via email to