1 |
commit: 86064bd815171a841cba6261bbbb061ffcc1c2f5 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 13 21:25:18 2018 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 13 22:03:38 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86064bd8 |
7 |
|
8 |
dev-python/setuptools_scm: splitting out test deps into use flags |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
dev-python/setuptools_scm/metadata.xml | 3 ++ |
13 |
.../setuptools_scm/setuptools_scm-1.15.6-r1.ebuild | 39 ++++++++++++++++++++++ |
14 |
2 files changed, 42 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/setuptools_scm/metadata.xml b/dev-python/setuptools_scm/metadata.xml |
17 |
index 3aabcf57991..36c2a8fbd06 100644 |
18 |
--- a/dev-python/setuptools_scm/metadata.xml |
19 |
+++ b/dev-python/setuptools_scm/metadata.xml |
20 |
@@ -10,4 +10,7 @@ |
21 |
<remote-id type="bitbucket">pypa/setuptools_scm</remote-id> |
22 |
<remote-id type="github">pypa/setuptools_scm</remote-id> |
23 |
</upstream> |
24 |
+ <use> |
25 |
+ <flag name="mercurial">Enables mercurial backend</flag> |
26 |
+ </use> |
27 |
</pkgmetadata> |
28 |
|
29 |
diff --git a/dev-python/setuptools_scm/setuptools_scm-1.15.6-r1.ebuild b/dev-python/setuptools_scm/setuptools_scm-1.15.6-r1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..006c5a9012f |
32 |
--- /dev/null |
33 |
+++ b/dev-python/setuptools_scm/setuptools_scm-1.15.6-r1.ebuild |
34 |
@@ -0,0 +1,39 @@ |
35 |
+# Copyright 1999-2018 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) |
41 |
+ |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+DESCRIPTION="package to manage versions by scm tags via setuptools" |
45 |
+HOMEPAGE="https://github.com/pypa/setuptools_scm https://pypi.python.org/pypi/setuptools_scm" |
46 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="MIT" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" |
51 |
+IUSE="git mercurial test" |
52 |
+ |
53 |
+DEPEND=" |
54 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
55 |
+ git? ( dev-vcs/git ) |
56 |
+ mercurial? ( dev-vcs/mercurial ) |
57 |
+ test? ( |
58 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
59 |
+ )" |
60 |
+ |
61 |
+python_test() { |
62 |
+ distutils_install_for_testing |
63 |
+ py.test -v -v -x -k testing/test_basic_api.py || die "tests failed under ${EPYTHON}" |
64 |
+ py.test -v -v -x -k testing/test_functions.py || die "tests failed under ${EPYTHON}" |
65 |
+ py.test -v -v -x -k testing/test_main.py || die "tests failed under ${EPYTHON}" |
66 |
+ py.test -v -v -x -k testing/test_regressions.py || die "tests failed under ${EPYTHON}" |
67 |
+ if use git; then |
68 |
+ py.test -v -v -x -k testing/test_git.py || die "tests failed under ${EPYTHON}" |
69 |
+ fi |
70 |
+ if use mercurial; then |
71 |
+ py.test -v -v -x -k testing/test_mercurial.py || die "tests failed under ${EPYTHON}" |
72 |
+ fi |
73 |
+} |