Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest/
Date: Mon, 03 Feb 2020 14:55:18
Message-Id: 1580741708.73616b0d5742f373bd8e75164b8d3fda4a8b402a.mgorny@gentoo
1 commit: 73616b0d5742f373bd8e75164b8d3fda4a8b402a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 3 13:07:46 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 3 14:55:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73616b0d
7
8 dev-python/pytest: Bump to 5.3.5, add pypy3
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.5.ebuild | 66 +++++++++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest
17 index aa00dd106f7..93b3686d095 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.9.tar.gz 956816 BLAKE2B 7eaeaa0d47c17836a35d9cdc97663f8ef65253099b21d60a7ffc3655d8bd93c6b4e33045caa6c8ab9bb8b920b93e596ba86d8eac4ab07b3b7a5989b38312f4fc SHA512 ab45a8662aa798a6ae224ad2cd68e043c605e4830c76cb6c6aca3cfccef232c024cbbb6c48c9bae19148099c339abfef3270a2208cc7e5c37a10b34b0aa6ba79
23 DIST pytest-5.3.4.tar.gz 990897 BLAKE2B dd6f0a277352dd72e6348e89813a7df50aabf9ee134afd69412100b87a7898128ec6b17bf29082c88554b66ba5622b7e0b9a1338d6b740795f33055a9279cfdc SHA512 562966d74d2ff12715ececa46acdd49de67f5e792687d52b3f53589f6dc6105aed09bd4c5098989d70b8a69e6bb4cfb9c0b1ee7e9cfc8e8252e3ba6b4d39e4bc
24 +DIST pytest-5.3.5.tar.gz 990935 BLAKE2B 257628ca9bf7b5e17eb54d868f37fc18a6cc43e66e7ec64581aae0faa8c92a9aa102f011e3117f6c669fc3dfa27fb884c2fefea6b0771fa0ed8999364bc4e149 SHA512 14877d67aef83d498c8a2917b9633bda317948fa889100e6d1a00547a71f0bfb32d8a01506e97bab6372bfbae17a03aa21bdad8d81072a163a5c9c042498a3b3
25
26 diff --git a/dev-python/pytest/pytest-5.3.5.ebuild b/dev-python/pytest/pytest-5.3.5.ebuild
27 new file mode 100644
28 index 00000000000..eb0ee3e1258
29 --- /dev/null
30 +++ b/dev-python/pytest/pytest-5.3.5.ebuild
31 @@ -0,0 +1,66 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +DISTUTILS_USE_SETUPTOOLS=rdepend
38 +PYTHON_COMPAT=( python3_{6,7,8} pypy3 )
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Simple powerful testing with Python"
43 +HOMEPAGE="https://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/attrs-17.4.0[${PYTHON_USEDEP}]
59 + dev-python/importlib_metadata[${PYTHON_USEDEP}]
60 + >=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}]
61 + dev-python/packaging[${PYTHON_USEDEP}]
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/xmlschema[${PYTHON_USEDEP}]
77 + !!dev-python/flaky
78 + )"
79 +
80 +PATCHES=(
81 + "${FILESDIR}/${PN}"-4.5.0-strip-setuptools_scm.patch
82 +)
83 +
84 +python_prepare_all() {
85 + grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency"
86 +
87 + # Something in the ebuild environment causes this to hang/error.
88 + # https://bugs.gentoo.org/598442
89 + rm testing/test_pdb.py || die
90 +
91 + distutils-r1_python_prepare_all
92 +}
93 +
94 +python_test() {
95 + "${EPYTHON}" -m pytest -vv --lsof -rfsxX \
96 + || die "tests failed with ${EPYTHON}"
97 +}