1 |
commit: 1393fb5974a6679d1fd00a3dc539d996a754a6ad |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 26 17:03:24 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 26 17:31:58 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1393fb59 |
7 |
|
8 |
dev-python/pytest: Rev bump to add missing DEPs |
9 |
|
10 |
pytest requires dev-python/pluggy and virtual/python-funcsigs. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/648848 |
13 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
14 |
|
15 |
dev-python/pytest/pytest-3.4.1-r1.ebuild | 79 ++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 79 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/pytest/pytest-3.4.1-r1.ebuild b/dev-python/pytest/pytest-3.4.1-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..e57defd4563 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/pytest/pytest-3.4.1-r1.ebuild |
23 |
@@ -0,0 +1,79 @@ |
24 |
+# Copyright 1999-2018 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+ |
29 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
30 |
+ |
31 |
+inherit distutils-r1 |
32 |
+ |
33 |
+DESCRIPTION="Simple powerful testing with Python" |
34 |
+HOMEPAGE="http://pytest.org/" |
35 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="MIT" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
40 |
+IUSE="doc test" |
41 |
+ |
42 |
+# When bumping, please check setup.py for the proper py version |
43 |
+PY_VER="1.5.0" |
44 |
+COMMON_DEPEND=" |
45 |
+ >=dev-python/attrs-17.2.0[${PYTHON_USEDEP}] |
46 |
+ >=dev-python/pluggy-0.5[${PYTHON_USEDEP}] |
47 |
+ >=dev-python/py-${PY_VER}[${PYTHON_USEDEP}] |
48 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
49 |
+ >=dev-python/six-1.10.0[${PYTHON_USEDEP}] |
50 |
+ virtual/python-funcsigs[${PYTHON_USEDEP}] |
51 |
+ doc? ( |
52 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
53 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
54 |
+ )" |
55 |
+ |
56 |
+DEPEND="${COMMON_DEPEND} |
57 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
58 |
+ test? ( |
59 |
+ >=dev-python/hypothesis-3.5.2[${PYTHON_USEDEP}] |
60 |
+ >dev-python/pytest-xdist-1.13[${PYTHON_USEDEP}] |
61 |
+ dev-python/nose[${PYTHON_USEDEP}] |
62 |
+ dev-python/mock[${PYTHON_USEDEP}] |
63 |
+ dev-python/requests[${PYTHON_USEDEP}] |
64 |
+ )" |
65 |
+ |
66 |
+RDEPEND=" |
67 |
+ ${COMMON_DEPEND} |
68 |
+ !<dev-python/logilab-common-1.3.0" |
69 |
+ |
70 |
+python_prepare_all() { |
71 |
+ chmod o-w *egg*/* || die |
72 |
+ # Disable versioning of py.test script to avoid collision with |
73 |
+ # versioning performed by the eclass. |
74 |
+ sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed" |
75 |
+ grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency" |
76 |
+ |
77 |
+ # Something in the ebuild environment causes this to hang/error. |
78 |
+ # https://bugs.gentoo.org/598442 |
79 |
+ rm testing/test_pdb.py || die |
80 |
+ |
81 |
+ distutils-r1_python_prepare_all |
82 |
+} |
83 |
+ |
84 |
+python_test() { |
85 |
+ # test_nose.py not written to suit py3.2 in pypy3 |
86 |
+ if [[ "${EPYTHON}" == pypy3 ]]; then |
87 |
+ "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py --lsof -rfsxX \ |
88 |
+ --ignore=testing/BUILD_nose.py \ |
89 |
+ || die "tests failed with ${EPYTHON}" |
90 |
+ else |
91 |
+ "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py --lsof -rfsxX testing || die "tests failed with ${EPYTHON}" |
92 |
+ fi |
93 |
+} |
94 |
+ |
95 |
+python_compile_all(){ |
96 |
+ use doc && emake -C doc/en html |
97 |
+} |
98 |
+ |
99 |
+python_install_all() { |
100 |
+ use doc && HTML_DOCS=( doc/en/_build/html/. ) |
101 |
+ distutils-r1_python_install_all |
102 |
+} |