1 |
commit: 6784eef795f24152d786a2ab6a3afc37180c94a6 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 30 18:13:02 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 30 18:56:07 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6784eef7 |
7 |
|
8 |
dev-python/pytest: Bump to version 3.0.6 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-python/pytest/Manifest | 1 + |
13 |
dev-python/pytest/pytest-3.0.6.ebuild | 71 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 72 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest |
17 |
index 9322123..c48b9aa 100644 |
18 |
--- a/dev-python/pytest/Manifest |
19 |
+++ b/dev-python/pytest/Manifest |
20 |
@@ -5,3 +5,4 @@ DIST pytest-3.0.2.tar.gz 727551 SHA256 64d8937626dd2a4bc15ef0edd307d26636a72a3f3 |
21 |
DIST pytest-3.0.3.tar.gz 731934 SHA256 f213500a356800a483e8a146ff971ae14a8df3f2c0ae4145181aad96996abee7 SHA512 ec0b4a5f0d6673a339c5a70b402c004c23db7001005454329eeaea15d890f53b8f2740f6c6254499d0f915b9058bfdfa535d9f22847bb382a060d65204fce4af WHIRLPOOL 1883909fa23832e674cf912b1d88957dd435143dc124df5454c08ad02c8077473168f749ea94539c2c4b5cf08648a0bce7e90937bbdacd4bb69a4ccf15ecff23 |
22 |
DIST pytest-3.0.4.tar.gz 733339 SHA256 879fee2c1fdbaacd1bf2c0047677c6dd4aee05b9c1e64330b34d130a584fa40d SHA512 f8ee3eb84b564419beb0bb78abbe0ffe44920b35c60021d2c77b2bc3a5ec13245768f848ccb2a1864d46fc343cdc4b2bc4a33d9459bf388f64ea2aea0d9c337d WHIRLPOOL e48fc51e1de0fe38eaebd21ea4249dd915ffbf190d1955bd9aa77976b9c692bd0a2541d8802e9e100603af647279740e6329491b0ce09ef898d102e78984b2bb |
23 |
DIST pytest-3.0.5.tar.gz 740656 SHA256 4a003aa956f023ce91aa6e166b555e6f02a4b0aeb459ac61e14f64c0d39037fd SHA512 b01c6272703ec93b7e7eefa584688a3d00cd97ac9cf54bc9501b596d4c370f9f74e06ee2223829b60469ea1a32c3a3c30b29aeacfaab1f23404d5f8345544ca1 WHIRLPOOL 9b044222fc628dd138e9eaaf27a930b6389e74dff09ec25c07392c4d965c30890a79f5fb663db6de4f612dbabd6338049d2ed45679928835f8c7a278530d6c05 |
24 |
+DIST pytest-3.0.6.tar.gz 748748 SHA256 643434a9f1a188271da35e20064cb8b6c5440976c5bb541dc7b5b0e3cf75d940 SHA512 0e983f1f52c18327537d20be30425f4c74037d1fbf6b4aedf2646cf21d450fa9b2b20625f26f5db759b4fe1fd28c6640cb1df88e667efaeea6642e7f02f01e06 WHIRLPOOL 708e5041135883ba31d9712880672f64bf05c0bf40a544061cb42fed4d2aec111bfdf82b63f10e8a87c2b76870e3ea364b396258f0674d2199e43fe93cf2922e |
25 |
|
26 |
diff --git a/dev-python/pytest/pytest-3.0.6.ebuild b/dev-python/pytest/pytest-3.0.6.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..be8f3f6 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pytest/pytest-3.0.6.ebuild |
31 |
@@ -0,0 +1,71 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} pypy{,3} ) |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="Simple powerful testing with Python" |
43 |
+HOMEPAGE="http://pytest.org/ https://pypi.python.org/pypi/pytest" |
44 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~hppa ~x86" |
49 |
+IUSE="doc test" |
50 |
+ |
51 |
+# When bumping, please check setup.py for the proper py version |
52 |
+PY_VER="1.4.29" |
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 |
+ test? ( |
63 |
+ >=dev-python/hypothesis-3.5.2[${PYTHON_USEDEP}] |
64 |
+ >dev-python/pytest-xdist-1.13[${PYTHON_USEDEP}] |
65 |
+ dev-python/nose[${PYTHON_USEDEP}] |
66 |
+ dev-python/mock[${PYTHON_USEDEP}] |
67 |
+ dev-python/requests[${PYTHON_USEDEP}] |
68 |
+ ) |
69 |
+" |
70 |
+RDEPEND="${COMMON_DEPEND} |
71 |
+ !dev-python/logilab-common |
72 |
+" |
73 |
+ |
74 |
+python_prepare_all() { |
75 |
+ chmod o-w *egg*/* || die |
76 |
+ # Disable versioning of py.test script to avoid collision with |
77 |
+ # versioning performed by the eclass. |
78 |
+ sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed" |
79 |
+ grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency" |
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 -x -v \ |
88 |
+ --ignore=testing/BUILD_nose.py \ |
89 |
+ || die "tests failed with ${EPYTHON}" |
90 |
+ else |
91 |
+ "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py -v 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 |
+} |