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