1 |
commit: 2c0066b963aaf722b30f22c3a730633109d14f59 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 27 19:35:10 2017 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 27 19:37:23 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c0066b9 |
7 |
|
8 |
dev-python/pytest: version bump to 3.2.2 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/632178 |
11 |
Package-Manager: Portage-2.3.10, Repoman-2.3.3 |
12 |
|
13 |
dev-python/pytest/Manifest | 1 + |
14 |
dev-python/pytest/pytest-3.2.2.ebuild | 75 +++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 76 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest |
18 |
index d6eff506c1c..3b64c1dbbdc 100644 |
19 |
--- a/dev-python/pytest/Manifest |
20 |
+++ b/dev-python/pytest/Manifest |
21 |
@@ -3,3 +3,4 @@ DIST pytest-3.0.3.tar.gz 731934 SHA256 f213500a356800a483e8a146ff971ae14a8df3f2c |
22 |
DIST pytest-3.0.6.tar.gz 748748 SHA256 643434a9f1a188271da35e20064cb8b6c5440976c5bb541dc7b5b0e3cf75d940 SHA512 0e983f1f52c18327537d20be30425f4c74037d1fbf6b4aedf2646cf21d450fa9b2b20625f26f5db759b4fe1fd28c6640cb1df88e667efaeea6642e7f02f01e06 WHIRLPOOL 708e5041135883ba31d9712880672f64bf05c0bf40a544061cb42fed4d2aec111bfdf82b63f10e8a87c2b76870e3ea364b396258f0674d2199e43fe93cf2922e |
23 |
DIST pytest-3.0.7.tar.gz 743866 SHA256 b70696ebd1a5e6b627e7e3ac1365a4bc60aaf3495e843c1e70448966c5224cab SHA512 f458929614fca5bc9542b9adfe2fa5d2c5b97ec13e331d3a9caf256d2d005b3dad9c11d01b2eb62332648f90608ba297a1edc2c20b7630ec4f69114299720a2a WHIRLPOOL 2febc111fed67573296f8c4a758ea36c2a2e81bd425442beace139f7e1bd3eaab7aa2fdcf8e0280871b0692e19d70efe18d780e4dd7336c9dd5d6fb0db2df6c5 |
24 |
DIST pytest-3.1.2.tar.gz 766406 SHA256 795ec29fbba70b22a593691ce8bcd4bdde2dc96e8099731f73c7d8bb3ce879bf SHA512 6b8bf6280481295585169798351105749301a2b088fa89a48c463578a25edcb1fe7ea4100668bc3013a0a6dfd0ceab31c683e9280ece4f79575ca37909502d5c WHIRLPOOL 5c685f928080a5d6d1a979a0dbda1bc851eff855c76bb471ebf131047506c934e68a2e4733c4b265d291558ec1084d0276e77e469bd3d5ec0d91daa97c5eb989 |
25 |
+DIST pytest-3.2.2.tar.gz 786396 SHA256 f46e49e0340a532764991c498244a60e3a37d7424a532b3ff1a6a7653f1a403a SHA512 6df3a50e7d1efeaf7a283920b16d1daf800798f422bc851b0aacd2bbd5cb0a88c95f9057fae49943b9dfe6527ed552cdf8d983b944ab91d0af252ee4f6eb82db WHIRLPOOL 6d41e74696ed879d78f8a50dabb7775fa7631bfd5a6a1dd9df89269d6d3174683776982451f83b32c197cd801796e671e7431b542376a7d343b00e9fc21616b3 |
26 |
|
27 |
diff --git a/dev-python/pytest/pytest-3.2.2.ebuild b/dev-python/pytest/pytest-3.2.2.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..c949a1553ce |
30 |
--- /dev/null |
31 |
+++ b/dev-python/pytest/pytest-3.2.2.ebuild |
32 |
@@ -0,0 +1,75 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="Simple powerful testing with Python" |
43 |
+HOMEPAGE="http://pytest.org/" |
44 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
49 |
+IUSE="doc test" |
50 |
+ |
51 |
+# When bumping, please check setup.py for the proper py version |
52 |
+PY_VER="1.4.33" |
53 |
+COMMON_DEPEND=" |
54 |
+ >=dev-python/py-${PY_VER}[${PYTHON_USEDEP}] |
55 |
+ doc? ( |
56 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
57 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
58 |
+ ) |
59 |
+" |
60 |
+DEPEND="${COMMON_DEPEND} |
61 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
62 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
63 |
+ test? ( |
64 |
+ >=dev-python/hypothesis-3.5.2[${PYTHON_USEDEP}] |
65 |
+ >dev-python/pytest-xdist-1.13[${PYTHON_USEDEP}] |
66 |
+ dev-python/nose[${PYTHON_USEDEP}] |
67 |
+ dev-python/mock[${PYTHON_USEDEP}] |
68 |
+ dev-python/requests[${PYTHON_USEDEP}] |
69 |
+ ) |
70 |
+" |
71 |
+RDEPEND="${COMMON_DEPEND} |
72 |
+ !dev-python/logilab-common |
73 |
+" |
74 |
+ |
75 |
+python_prepare_all() { |
76 |
+ chmod o-w *egg*/* || die |
77 |
+ # Disable versioning of py.test script to avoid collision with |
78 |
+ # versioning performed by the eclass. |
79 |
+ sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed" |
80 |
+ grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency" |
81 |
+ |
82 |
+ # Something in the ebuild environment causes this to hang/error. |
83 |
+ # https://bugs.gentoo.org/598442 |
84 |
+ rm testing/test_pdb.py || die |
85 |
+ |
86 |
+ distutils-r1_python_prepare_all |
87 |
+} |
88 |
+ |
89 |
+python_test() { |
90 |
+ # test_nose.py not written to suit py3.2 in pypy3 |
91 |
+ if [[ "${EPYTHON}" == pypy3 ]]; then |
92 |
+ "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py --lsof -rfsxX \ |
93 |
+ --ignore=testing/BUILD_nose.py \ |
94 |
+ || die "tests failed with ${EPYTHON}" |
95 |
+ else |
96 |
+ "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py --lsof -rfsxX testing || die "tests failed with ${EPYTHON}" |
97 |
+ fi |
98 |
+} |
99 |
+ |
100 |
+python_compile_all(){ |
101 |
+ use doc && emake -C doc/en html |
102 |
+} |
103 |
+ |
104 |
+python_install_all() { |
105 |
+ use doc && HTML_DOCS=( doc/en/_build/html/. ) |
106 |
+ distutils-r1_python_install_all |
107 |
+} |