1 |
commit: 068307f88b5a4a75dfe803f8401c524a9a7c8889 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 5 01:48:13 2016 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 5 01:48:13 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=068307f8 |
7 |
|
8 |
dev-python/pytest: bump to 3.0.2 |
9 |
|
10 |
Package-Manager: portage-2.3.0_p24 |
11 |
|
12 |
dev-python/pytest/Manifest | 1 + |
13 |
dev-python/pytest/pytest-3.0.2.ebuild | 62 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 63 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest |
17 |
index 7027200..90951ff 100644 |
18 |
--- a/dev-python/pytest/Manifest |
19 |
+++ b/dev-python/pytest/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST pytest-2.7.2.tar.gz 532836 SHA256 b30457f735420d0000d10a44bbd478cf03f8bf20e25bd77248f9bab40f4fd6a4 SHA512 5474a4fe58437a4971fb21b1b37dad3c08e18e5d154931ff23e597f881100a3515bf0cf71d06b143465594ad2a91a96f84f4836d84c39691143c8d88ca7a4360 WHIRLPOOL 6ab7371f952109ac476774222883e1381fe5ee6a54d967f2d90765f6c59c90634a16c42e8e2e1661169db6a9cb1327242ff2281cf1caeabd86a4dacd24f4bb06 |
22 |
DIST pytest-2.8.2.tar.gz 563955 SHA256 da2fc57320dd11f621d166634c52b989aa2291af1296c32a27a11777aa4128b9 SHA512 0df6e0421d1575e1efc0bb0550c5993f802777cb616ab1514bf12ed11eb5ec35a142dd837ff65659989268c36e441e18108369991cd3d458d357aac6ba433991 WHIRLPOOL ea917f4aaec444d6edc830b4ec66f7adb305031f11328e47d12a609ec92368a5c56e9cf8e24bd1a9a4a6a0746b43133f0d9821cf27d74c15ed2a83a705ee6030 |
23 |
DIST pytest-2.8.7.tar.gz 564943 SHA256 fc4c86be54fce08e4b85b646a736efa18c6cde7599c1d2919f4f74629e018baf SHA512 c7f626ceb599811caeab4646389a2c489dd22d766c772d6ca686098cef9a11dca47ef41a4a4b811110f358bca1f1a678b549b2adfea48317ae70cf166289b371 WHIRLPOOL c3849f1a9f62c05c1ce20593f32ee513aee87853914be4099503cd47b068732df99605a0a4db9a3a7add4ef2a85f4d5376acf1a2e3f48f5d438433f200cb6196 |
24 |
+DIST pytest-3.0.2.tar.gz 727551 SHA256 64d8937626dd2a4bc15ef0edd307d26636a72a3f3f9664c424d78e40efb1e339 SHA512 38485c73f9df3c76b7b920b6957ffe4fbfd32ca0c46b73a53375a40586a482d270bf71b4457b68d48815d50ad173824b269ece255692ae0d1b13f0b1885ce54f WHIRLPOOL b6954a95e5f7d9b904c7543a09c2ef237c76c3a35bcd3e24c402a02aec3b35a19cdb952ac38af4ce43ae516cb5ac52023a0d91f2c587343265edd6d493145e8a |
25 |
|
26 |
diff --git a/dev-python/pytest/pytest-3.0.2.ebuild b/dev-python/pytest/pytest-3.0.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..d1e106b |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pytest/pytest-3.0.2.ebuild |
31 |
@@ -0,0 +1,62 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 ) |
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="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
49 |
+IUSE="test" |
50 |
+ |
51 |
+# When bumping, please check setup.py for the proper py version |
52 |
+PY_VER="1.4.29" |
53 |
+RDEPEND=">=dev-python/py-${PY_VER}[${PYTHON_USEDEP}]" |
54 |
+ |
55 |
+# dev-python/pluggy |
56 |
+# https://github.com/hpk42/pluggy |
57 |
+# See https://github.com/pytest-dev/pytest/issues/944 |
58 |
+# for why not now |
59 |
+ |
60 |
+#pexpect dep based on https://bitbucket.org/hpk42/pytest/issue/386/tests-fail-with-pexpect-30 |
61 |
+DEPEND="${RDEPEND} |
62 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
63 |
+ test? ( |
64 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
65 |
+ dev-python/nose[${PYTHON_USEDEP}] |
66 |
+ dev-python/mock[${PYTHON_USEDEP}] |
67 |
+ ) |
68 |
+" |
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 |
+ distutils-r1_python_prepare_all |
78 |
+} |
79 |
+ |
80 |
+python_test() { |
81 |
+ # test_nose.py not written to suit py3.2 in pypy3 |
82 |
+ if [[ "${EPYTHON}" == pypy3 ]]; then |
83 |
+ "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py -x -v \ |
84 |
+ --ignore=testing/BUILD_nose.py \ |
85 |
+ || die "tests failed with ${EPYTHON}" |
86 |
+ else |
87 |
+ "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py -v testing || die "tests failed with ${EPYTHON}" |
88 |
+ fi |
89 |
+} |
90 |
+ |
91 |
+python_install_all() { |
92 |
+ distutils-r1_python_install_all |
93 |
+} |