1 |
commit: 831eca214ed84f7c890f8e8477c5d646519346c1 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 27 12:32:59 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 27 13:17:12 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=831eca21 |
7 |
|
8 |
dev-python/pytest: Bump to 5.3.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pytest/Manifest | 1 + |
13 |
dev-python/pytest/pytest-5.3.1.ebuild | 67 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 68 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest |
17 |
index 0a0234192f6..d308404a1a3 100644 |
18 |
--- a/dev-python/pytest/Manifest |
19 |
+++ b/dev-python/pytest/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST pytest-3.10.1.tar.gz 892420 BLAKE2B 38849ae69bf4380bc1a99aa105cac04be078da4 |
21 |
DIST pytest-4.5.0.tar.gz 943607 BLAKE2B 49a0e91fda7f4231fdd39f90eb2daa344d3034c10faff221330ea0ae7482a2a7d0fb9443a0a264db00f1d92568d5a6005cb73e07d8643b46906f7ecff831adcb SHA512 cbffc6216f83491b1de241058315c116697bfaa5206b5f558192a7f861d43dd036d30d0d689bedae7bdee4f0258dd19ef5827c356e11863dd596a5fabe8249fc |
22 |
DIST pytest-4.6.6.tar.gz 954899 BLAKE2B d3d76ec1fff18d343cc799f1acd0889489f303cdba72747881dfab8656599bc1865f01b5ad2754f0d05bda04aca4d7edf8c2071f2257fdf41506308d1bc0f623 SHA512 c5b6c21c352787eadce06be7529ecb6f6fd5f5eb193ec29e5a4cfff3d7e305f50c6f07aeac15bddce007d88077a35a8f59633111815321792ed3d9fa1011b684 |
23 |
DIST pytest-5.3.0.tar.gz 992537 BLAKE2B 4386d1623bdc168313a75847dfa33413ab1b6a4de9380c67ae866a579dbeb62d8cd18da899bf0476827d6e4a76ddfc5fee7a2fdc652eff0c8848c0bd96045c47 SHA512 285d0b4f6b87b141d6d5dac368dc46eb80dd025d7ed4ad0db937fcc76efc1f8cf251ca9b0786ab1bdadd89c07ad8ddd74f2b3496f97326e9d7fccfd004b98aff |
24 |
+DIST pytest-5.3.1.tar.gz 994584 BLAKE2B 3831902684d935389b4684af1279a5834edbbe846f8fdb1ce1e64990ab65d6fe8ed3cf5daa446cd20daafe9eedc6f57e01b16d74a55631ab746750a73056640d SHA512 e949a516c064a7050a0ad15356cc0bf25e4840e830f03e1925530c8a2dd9903d7632e55535894474422ba86fd9ed7a397c483d98dad297990b7b49456147189e |
25 |
|
26 |
diff --git a/dev-python/pytest/pytest-5.3.1.ebuild b/dev-python/pytest/pytest-5.3.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..9795396ca68 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pytest/pytest-5.3.1.ebuild |
31 |
@@ -0,0 +1,67 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{5,6,7,8} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Simple powerful testing with Python" |
42 |
+HOMEPAGE="http://pytest.org/" |
43 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="test" |
49 |
+RESTRICT="!test? ( test )" |
50 |
+ |
51 |
+# When bumping, please check setup.py for the proper py version |
52 |
+PY_VER="1.5.0" |
53 |
+ |
54 |
+# pathlib2 has been added to stdlib before py3.6, but pytest needs __fspath__ |
55 |
+# support, which only came in py3.6. |
56 |
+RDEPEND=" |
57 |
+ >=dev-python/attrs-17.4.0[${PYTHON_USEDEP}] |
58 |
+ dev-python/importlib_metadata[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}] |
60 |
+ dev-python/packaging[${PYTHON_USEDEP}] |
61 |
+ $(python_gen_cond_dep 'dev-python/pathlib2[${PYTHON_USEDEP}]' python3_5 ) |
62 |
+ >=dev-python/pluggy-0.12[${PYTHON_USEDEP}] |
63 |
+ <dev-python/pluggy-1 |
64 |
+ >=dev-python/py-${PY_VER}[${PYTHON_USEDEP}] |
65 |
+ dev-python/six[${PYTHON_USEDEP}] |
66 |
+ dev-python/wcwidth[${PYTHON_USEDEP}] |
67 |
+ virtual/python-funcsigs[${PYTHON_USEDEP}]" |
68 |
+ |
69 |
+# flake cause a number of tests to fail |
70 |
+DEPEND="${RDEPEND} |
71 |
+ test? ( |
72 |
+ >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] |
73 |
+ dev-python/nose[${PYTHON_USEDEP}] |
74 |
+ dev-python/mock[${PYTHON_USEDEP}] |
75 |
+ dev-python/requests[${PYTHON_USEDEP}] |
76 |
+ >=dev-python/setuptools-40[${PYTHON_USEDEP}] |
77 |
+ dev-python/xmlschema[${PYTHON_USEDEP}] |
78 |
+ !!dev-python/flaky |
79 |
+ )" |
80 |
+ |
81 |
+PATCHES=( |
82 |
+ "${FILESDIR}/${PN}"-4.5.0-strip-setuptools_scm.patch |
83 |
+) |
84 |
+ |
85 |
+python_prepare_all() { |
86 |
+ grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency" |
87 |
+ |
88 |
+ # Something in the ebuild environment causes this to hang/error. |
89 |
+ # https://bugs.gentoo.org/598442 |
90 |
+ rm testing/test_pdb.py || die |
91 |
+ |
92 |
+ distutils-r1_python_prepare_all |
93 |
+} |
94 |
+ |
95 |
+python_test() { |
96 |
+ "${EPYTHON}" "${BUILD_DIR}"/lib/pytest.py -vv --lsof -rfsxX \ |
97 |
+ || die "tests failed with ${EPYTHON}" |
98 |
+} |