Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest/
Date: Wed, 01 Sep 2021 18:31:00
Message-Id: 1630521038.dfbb6a8628a936ea6f8c2f6062bcf4e770db380b.arthurzam@gentoo
1 commit: dfbb6a8628a936ea6f8c2f6062bcf4e770db380b
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 1 17:41:08 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 1 18:30:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfbb6a86
7
8 dev-python/pytest: add 6.2.5, enable py3.10 tests
9
10 Closes: https://bugs.gentoo.org/811309
11 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
12
13 dev-python/pytest/Manifest | 1 +
14 dev-python/pytest/pytest-6.2.5.ebuild | 55 +++++++++++++++++++++++++++++++++++
15 2 files changed, 56 insertions(+)
16
17 diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest
18 index 71207e93192..37f3f97d841 100644
19 --- a/dev-python/pytest/Manifest
20 +++ b/dev-python/pytest/Manifest
21 @@ -2,3 +2,4 @@ DIST pytest-4.6.11.tar.gz 952305 BLAKE2B af07adf5e8fc614b1fdb7b5673fb9c557ff0dd3
22 DIST pytest-5.4.3.tar.gz 1022353 BLAKE2B 70d4f23cbbfc4c4ce63c512ee0a01556973761a6d3ebb71a6d9ed4fb4a4a21531e1b151ed0e4c5e56e5dd3243a1a272441f17c4c2c4e3b0b19c24654b74e8e52 SHA512 0a07d4f4f791969c6f21961a0ba0f8c6670e5870c6cc1cebf93766587bb9cb3e10db8e57f0bd33dd22b275f3aad7aa674949f124ac80e0ccca64e35be4beee4e
23 DIST pytest-6.1.2.tar.gz 1084943 BLAKE2B cbdf29c54118b5daf699f11fb674d37d5972a163a7a53f42f6ddf9224e2d8d9e84b9a88106d5a77e70f470ccbffb15c2cf9a939be69bc0a2cab1fc4c76054562 SHA512 6335e994c5273881c8d1c334fe6bfa9cd0a3e5c251f3d6a9332f7f7c1427e6560ff48d8f235b307ea5eb53491072daf30c41f566bb67b304354fd88d286c61b1
24 DIST pytest-6.2.4.tar.gz 1118084 BLAKE2B 611db50e7432dfb6f8d212621a3803871fd8f6c05ec3cdefeb3958d0886f754326fc358a9a67bdb3f516388aab901b169c951471bf304adfb78fe457dc59d6c5 SHA512 43adc9a78e16a05f07e689e4557b63f2e0f4de5a1cdea6f24272b6a658a6b0a18721713cf46b5102cf2726ddbc4ffe131c39e652bd2511d285f40cbfcccc2289
25 +DIST pytest-6.2.5.tar.gz 1118720 BLAKE2B 9dfc87279617be58353566009325f929e6fa53d54fd4c665a75f3b359ab5415972d745a680eb85ab21ca9eaec84450bc1decd50566b0ccdf90d7551f3d03ee70 SHA512 7624563a9d967da4cbf82cfff90bae8c0cca07b32e291dc7c5efa787725ed1a255edd066bf0d5fbd89b8cbed8cf5b619fe7c7017f44a7f8a014e3310c06bdbf9
26
27 diff --git a/dev-python/pytest/pytest-6.2.5.ebuild b/dev-python/pytest/pytest-6.2.5.ebuild
28 new file mode 100644
29 index 00000000000..4cace9f6b7e
30 --- /dev/null
31 +++ b/dev-python/pytest/pytest-6.2.5.ebuild
32 @@ -0,0 +1,55 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Simple powerful testing with Python"
42 +HOMEPAGE="https://pytest.org/"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
48 +IUSE="test"
49 +RESTRICT="!test? ( test )"
50 +
51 +RDEPEND="
52 + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
53 + $(python_gen_cond_dep '
54 + dev-python/importlib_metadata[${PYTHON_USEDEP}]
55 + ' pypy3)
56 + dev-python/iniconfig[${PYTHON_USEDEP}]
57 + >=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}]
58 + dev-python/packaging[${PYTHON_USEDEP}]
59 + >=dev-python/pluggy-0.12[${PYTHON_USEDEP}]
60 + >=dev-python/py-1.8.2[${PYTHON_USEDEP}]
61 + dev-python/tomli[${PYTHON_USEDEP}]
62 +"
63 +BDEPEND="
64 + >=dev-python/setuptools_scm-3.4[${PYTHON_USEDEP}]
65 + test? (
66 + ${RDEPEND}
67 + dev-python/argcomplete[${PYTHON_USEDEP}]
68 + >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}]
69 + dev-python/mock[${PYTHON_USEDEP}]
70 + dev-python/nose[${PYTHON_USEDEP}]
71 + dev-python/requests[${PYTHON_USEDEP}]
72 + dev-python/xmlschema[${PYTHON_USEDEP}]
73 + )"
74 +
75 +src_test() {
76 + # workaround new readline defaults
77 + echo "set enable-bracketed-paste off" > "${T}"/inputrc || die
78 + local -x INPUTRC="${T}"/inputrc
79 + distutils-r1_src_test
80 +}
81 +
82 +python_test() {
83 + distutils_install_for_testing --via-root
84 +
85 + "${EPYTHON}" -m pytest -vv --lsof -rfsxX -p no:pkgcore -p no:flaky ||
86 + die "Tests failed with ${EPYTHON}"
87 +}