1 |
commit: 66c21d4a788dd1f1ae9cd9dbe4de5f2250a09cff |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 5 07:26:21 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 5 08:03:04 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66c21d4a |
7 |
|
8 |
dev-python/pytest: Bump to 4.6.9 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pytest/Manifest | 1 + |
13 |
dev-python/pytest/pytest-4.6.9.ebuild | 75 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 76 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest |
17 |
index 028d0364e68..9b30f958d41 100644 |
18 |
--- a/dev-python/pytest/Manifest |
19 |
+++ b/dev-python/pytest/Manifest |
20 |
@@ -1,4 +1,5 @@ |
21 |
DIST pytest-3.10.1.tar.gz 892420 BLAKE2B 38849ae69bf4380bc1a99aa105cac04be078da4460373dfc16fa555238b2830fa2f5ae6c19de8aa2af9ac18d87c5d2705d62f7b2e67e4a62d843f6a28bbd76fd SHA512 30ff79c0fdcbeef68e1191ff400a20428e391717f06957f554b694b94baaaa565dca01346fe989c3e443c4402f3b2bdbd5564f6303a4447f933fb54cba45628f |
22 |
DIST pytest-4.5.0.tar.gz 943607 BLAKE2B 49a0e91fda7f4231fdd39f90eb2daa344d3034c10faff221330ea0ae7482a2a7d0fb9443a0a264db00f1d92568d5a6005cb73e07d8643b46906f7ecff831adcb SHA512 cbffc6216f83491b1de241058315c116697bfaa5206b5f558192a7f861d43dd036d30d0d689bedae7bdee4f0258dd19ef5827c356e11863dd596a5fabe8249fc |
23 |
DIST pytest-4.6.8.tar.gz 956062 BLAKE2B f28e3226c7dfe4188168cfdf9623c96d0b274a2476f0d3132c24367e4566abd2e0b496114f229b6f26ae53a67d1ea1f9cb64795f4f9710fc9fe0852991467aef SHA512 b396b200a8a13ec9df8dbc4dd64bb05638b26af9ad6b24cbea3c3de4d806665b63a1488c7359b12c5634d014d45b43c8c208f0e329c62266882a87c492e80b58 |
24 |
+DIST pytest-4.6.9.tar.gz 956816 BLAKE2B 7eaeaa0d47c17836a35d9cdc97663f8ef65253099b21d60a7ffc3655d8bd93c6b4e33045caa6c8ab9bb8b920b93e596ba86d8eac4ab07b3b7a5989b38312f4fc SHA512 ab45a8662aa798a6ae224ad2cd68e043c605e4830c76cb6c6aca3cfccef232c024cbbb6c48c9bae19148099c339abfef3270a2208cc7e5c37a10b34b0aa6ba79 |
25 |
DIST pytest-5.3.2.tar.gz 995560 BLAKE2B aaea9d89e884a82056eeea3068c70604c73d50c96b8d78c6ee14c67bbe066f0e6d882c1b8f95539a2338d6739e047680d901a9db108b1923fa4d3d03dc3f2115 SHA512 2ab39973848d2d4693edd1dbd7ab2798b574026c9277bddd4a18e57aec65b3d93de201e87f58eb26030183b5c71818e6e56bcc1cda8c50892546cb1c04d6984a |
26 |
|
27 |
diff --git a/dev-python/pytest/pytest-4.6.9.ebuild b/dev-python/pytest/pytest-4.6.9.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..5267018ca93 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/pytest/pytest-4.6.9.ebuild |
32 |
@@ -0,0 +1,75 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="Simple powerful testing with Python" |
43 |
+HOMEPAGE="http://pytest.org/" |
44 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+IUSE="test" |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+# When bumping, please check setup.py for the proper py version |
53 |
+PY_VER="1.5.0" |
54 |
+ |
55 |
+# pathlib2 has been added to stdlib before py3.6, but pytest needs __fspath__ |
56 |
+# support, which only came in py3.6. |
57 |
+RDEPEND=" |
58 |
+ >=dev-python/atomicwrites-1.0[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/attrs-17.4.0[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}] |
61 |
+ $(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' \ |
62 |
+ -2 python3_{5,6,7} pypy3) |
63 |
+ $(python_gen_cond_dep 'dev-python/pathlib2[${PYTHON_USEDEP}]' -2) |
64 |
+ >=dev-python/pluggy-0.12[${PYTHON_USEDEP}] |
65 |
+ <dev-python/pluggy-1 |
66 |
+ >=dev-python/py-${PY_VER}[${PYTHON_USEDEP}] |
67 |
+ dev-python/packaging[${PYTHON_USEDEP}] |
68 |
+ dev-python/six[${PYTHON_USEDEP}] |
69 |
+ dev-python/wcwidth[${PYTHON_USEDEP}] |
70 |
+ virtual/python-funcsigs[${PYTHON_USEDEP}]" |
71 |
+ |
72 |
+# flake cause a number of tests to fail |
73 |
+DEPEND=" |
74 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
75 |
+ test? ( |
76 |
+ ${RDEPEND} |
77 |
+ dev-python/argcomplete[${PYTHON_USEDEP}] |
78 |
+ >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] |
79 |
+ dev-python/nose[${PYTHON_USEDEP}] |
80 |
+ $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2) |
81 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
82 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
83 |
+ dev-python/requests[${PYTHON_USEDEP}] |
84 |
+ !!dev-python/flaky |
85 |
+ )" |
86 |
+ |
87 |
+PATCHES=( |
88 |
+ "${FILESDIR}/${PN}-4.5.0-strip-setuptools_scm.patch" |
89 |
+) |
90 |
+ |
91 |
+python_prepare_all() { |
92 |
+ grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency" |
93 |
+ |
94 |
+ # Something in the ebuild environment causes this to hang/error. |
95 |
+ # https://bugs.gentoo.org/598442 |
96 |
+ rm testing/test_pdb.py || die |
97 |
+ |
98 |
+ distutils-r1_python_prepare_all |
99 |
+} |
100 |
+ |
101 |
+python_test() { |
102 |
+ # In v4.1.1, pytest started being picky about its own verbosity options. |
103 |
+ # running pytest on itself with -vv made 3 tests fail. This is why we don't |
104 |
+ # have it below. |
105 |
+ "${EPYTHON}" "${BUILD_DIR}"/lib/pytest.py --lsof -rfsxX \ |
106 |
+ || die "tests failed with ${EPYTHON}" |
107 |
+} |