1 |
commit: e50f915e573499a896c6c6b433f12a9768b84132 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 30 17:18:07 2020 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 30 17:18:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e50f915e |
7 |
|
8 |
dev-python/setuptools_scm_git_archive: python2 support not needed, fix tests |
9 |
|
10 |
All reverse deps are ported to python3, fix tests |
11 |
|
12 |
Thanks-to: Agostino Sarubbo |
13 |
Closes: https://bugs.gentoo.org/720064 |
14 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
15 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
16 |
|
17 |
.../setuptools_scm_git_archive-1.1.ebuild | 6 ++++-- |
18 |
1 file changed, 4 insertions(+), 2 deletions(-) |
19 |
|
20 |
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 |
21 |
index 0747a089249..94d42350354 100644 |
22 |
--- a/dev-python/setuptools_scm_git_archive/setuptools_scm_git_archive-1.1.ebuild |
23 |
+++ b/dev-python/setuptools_scm_git_archive/setuptools_scm_git_archive-1.1.ebuild |
24 |
@@ -3,7 +3,7 @@ |
25 |
|
26 |
EAPI=7 |
27 |
|
28 |
-PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) |
29 |
+PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) |
30 |
inherit distutils-r1 |
31 |
|
32 |
DESCRIPTION="A setuptools_scm plugin for git archives" |
33 |
@@ -21,11 +21,13 @@ DEPEND=" |
34 |
" |
35 |
RDEPEND="${DEPEND}" |
36 |
|
37 |
+distutils_enable_tests pytest |
38 |
+ |
39 |
src_prepare() { |
40 |
export SETUPTOOLS_SCM_PRETEND_VERSION="${PV}" |
41 |
distutils-r1_src_prepare |
42 |
} |
43 |
|
44 |
python_test() { |
45 |
- esetup.py test |
46 |
+ pytest tests.py || die |
47 |
} |