1 |
commit: 8050da8d3ccc26d4fdeb87f148d3669eaff2ff8b |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 20 08:34:52 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 20 09:33:40 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8050da8d |
7 |
|
8 |
dev-python/pytest: Version Bump |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
dev-python/pytest/Manifest | 1 + |
14 |
dev-python/pytest/pytest-2.8.0.ebuild | 70 +++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 71 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest |
18 |
index d9fee15..e7f001b 100644 |
19 |
--- a/dev-python/pytest/Manifest |
20 |
+++ b/dev-python/pytest/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST pytest-2.7.2.tar.gz 532836 SHA256 b30457f735420d0000d10a44bbd478cf03f8bf20e25bd77248f9bab40f4fd6a4 SHA512 5474a4fe58437a4971fb21b1b37dad3c08e18e5d154931ff23e597f881100a3515bf0cf71d06b143465594ad2a91a96f84f4836d84c39691143c8d88ca7a4360 WHIRLPOOL 6ab7371f952109ac476774222883e1381fe5ee6a54d967f2d90765f6c59c90634a16c42e8e2e1661169db6a9cb1327242ff2281cf1caeabd86a4dacd24f4bb06 |
23 |
DIST pytest-2.7.3.tar.gz 548235 SHA256 d5a9c3db3515ab95902ba08c09d1e941a21a440dc2d65f31bac02667508a9efc SHA512 ad9b57f202c60c247dd4753fb8391e3e88b390e34de678ea12384d81d76693dd37e04f11f6da19a6eda2c74a73db23789856ccaa325d32b4beb6bff86d9e4173 WHIRLPOOL 4aecd53142e503083abe2631bf403509c515d52176c430b7ab1e0becdf404e0fce4bad4343a4ab62525a6e008de0c35b4fac4a352d06938288dbf8deb8a4a250 |
24 |
+DIST pytest-2.8.0.zip 8189680 SHA256 29ed6fdb7b287f5353620494e950aba652c593c40556aece95a4d23d403ae2cb SHA512 98f7131c3396848ef7dbcf67e21e0329f8a3b771b3f8b832c1894758b34a2f852209f809001da856cfe8ea3773b257405ae2d5f8a04152242b8692e1511289ed WHIRLPOOL 3fd7f6ec73f11f29fd9b67bbb0c28dd73605604053160111212bd43d2c85c0b6cec5a25a979fecabb83a097c5621d5460747df5cb08796866349b7ba71b12005 |
25 |
|
26 |
diff --git a/dev-python/pytest/pytest-2.8.0.ebuild b/dev-python/pytest/pytest-2.8.0.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..9c8599a |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pytest/pytest-2.8.0.ebuild |
31 |
@@ -0,0 +1,70 @@ |
32 |
+# Copyright 1999-2015 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI="5" |
37 |
+PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 ) |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="py.test: simple powerful testing with Python" |
41 |
+HOMEPAGE="http://pytest.org/ https://pypi.python.org/pypi/pytest" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" |
43 |
+ |
44 |
+LICENSE="MIT" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
47 |
+IUSE="doc test" |
48 |
+ |
49 |
+# When bumping, please check setup.py for the proper py version |
50 |
+PY_VER="1.4.29" |
51 |
+RDEPEND=">=dev-python/py-${PY_VER}[${PYTHON_USEDEP}]" |
52 |
+ |
53 |
+# dev-python/pluggy |
54 |
+# https://github.com/hpk42/pluggy |
55 |
+# See https://github.com/pytest-dev/pytest/issues/944 |
56 |
+# for why not now |
57 |
+ |
58 |
+#pexpect dep based on https://bitbucket.org/hpk42/pytest/issue/386/tests-fail-with-pexpect-30 |
59 |
+DEPEND="${RDEPEND} |
60 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
61 |
+ test? ( dev-python/pexpect[${PYTHON_USEDEP}] ) |
62 |
+ doc? ( |
63 |
+ >=dev-python/sphinx-1.2.3[${PYTHON_USEDEP}] |
64 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
65 |
+ dev-python/regendoc[${PYTHON_USEDEP}] |
66 |
+ )" |
67 |
+ |
68 |
+python_prepare_all() { |
69 |
+ # Disable versioning of py.test script to avoid collision with |
70 |
+ # versioning performed by the eclass. |
71 |
+ sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed" |
72 |
+ grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency" |
73 |
+ |
74 |
+ # Prevent un-needed d'loading |
75 |
+ sed -e "s/'sphinx.ext.intersphinx', //" -i doc/en/conf.py || die |
76 |
+ distutils-r1_python_prepare_all |
77 |
+} |
78 |
+ |
79 |
+python_compile_all() { |
80 |
+ if use doc; then |
81 |
+ mkdir doc/en/.build || die |
82 |
+ emake -C doc/en html |
83 |
+ fi |
84 |
+} |
85 |
+ |
86 |
+python_test() { |
87 |
+ # test_nose.py not written to suit py3.2 in pypy3 |
88 |
+ if [[ "${EPYTHON}" == pypy3 ]]; then |
89 |
+ "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py -x -v \ |
90 |
+ --ignore=testing/BUILD_nose.py \ |
91 |
+ || die "tests failed with ${EPYTHON}" |
92 |
+ else |
93 |
+ "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py -x -v --runpytest=subprocess \ |
94 |
+ || die "tests failed with ${EPYTHON}" |
95 |
+ fi |
96 |
+} |
97 |
+ |
98 |
+python_install_all() { |
99 |
+ use doc && HTML_DOCS=( doc/en/_build/html/. ) |
100 |
+ distutils-r1_python_install_all |
101 |
+} |