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-subtests/
Date: Sat, 15 Jan 2022 20:51:11
Message-Id: 1642279512.ed042b6fd73f8b2f6a7f1cc1f44274e95244b648.arthurzam@gentoo
1 commit: ed042b6fd73f8b2f6a7f1cc1f44274e95244b648
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 15 20:45:12 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 15 20:45:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed042b6f
7
8 dev-python/pytest-subtests: add 0.6.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/pytest-subtests/Manifest | 1 +
13 .../pytest-subtests/pytest-subtests-0.6.0.ebuild | 40 ++++++++++++++++++++++
14 2 files changed, 41 insertions(+)
15
16 diff --git a/dev-python/pytest-subtests/Manifest b/dev-python/pytest-subtests/Manifest
17 index 1a5f8a40e75a..b9caba38ac9b 100644
18 --- a/dev-python/pytest-subtests/Manifest
19 +++ b/dev-python/pytest-subtests/Manifest
20 @@ -1 +1,2 @@
21 DIST pytest-subtests-0.5.0.tar.gz 9793 BLAKE2B c671eb14189c0fd34180a636592b20c9e2b4225c5faf3b702103164e60bdbac4c9644e464f1e0c783da3da1263f7b841ea7a4149bcbf1de23325a8ef3ce5c030 SHA512 e3d7e90c3ab66950eb80d25049bc6f6f75b08b3da5ce0de5f3fc55d6a176a8d1fdcb19a19f7d9d137aeadcc82b214550474f76d5611bc5592ca649ddd8257a2a
22 +DIST pytest-subtests-0.6.0.gh.tar.gz 9698 BLAKE2B 7b8f8c78ca503d107466d1ff34830aa08c3c5ec9b0f9e962b0e61472bf4f7413eb7e71db5768d898d476eb186a5a14c6703f14a990eb57c8664153a4ac384678 SHA512 9b4fa2e1957388f0e61a13a3cce95976fb5fdea64def627c5a1bf75049a0272e82f19ed9aa117bac0d02c6fd8832f22e7cfe409694ea81920def49742142eb93
23
24 diff --git a/dev-python/pytest-subtests/pytest-subtests-0.6.0.ebuild b/dev-python/pytest-subtests/pytest-subtests-0.6.0.ebuild
25 new file mode 100644
26 index 000000000000..61159d2864ef
27 --- /dev/null
28 +++ b/dev-python/pytest-subtests/pytest-subtests-0.6.0.ebuild
29 @@ -0,0 +1,40 @@
30 +# Copyright 2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="unittest subTest() support and subtests fixture"
39 +HOMEPAGE="
40 + https://github.com/pytest-dev/pytest-subtests/
41 + https://pypi.org/project/pytest-subtests/"
42 +SRC_URI="
43 + https://github.com/pytest-dev/pytest-subtests/archive/refs/tags/${PV}.tar.gz
44 + -> ${P}.gh.tar.gz
45 +"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
50 +
51 +RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]"
52 +# pytest-xdist is used to test compatibility
53 +BDEPEND="
54 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
55 + test? (
56 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
57 + )"
58 +
59 +distutils_enable_tests pytest
60 +
61 +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
62 +
63 +python_test() {
64 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
65 + local -x PYTEST_PLUGINS=xdist.plugin,xdist.looponfail,pytest_forked,pytest_subtests
66 +
67 + distutils_install_for_testing
68 + epytest
69 +}