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-subtests/
Date: Thu, 26 May 2022 18:54:51
Message-Id: 1653591283.db745c5489363ca04e15a07e7c1b147d62595910.mgorny@gentoo
1 commit: db745c5489363ca04e15a07e7c1b147d62595910
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 26 18:47:47 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 26 18:54:43 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db745c54
7
8 dev-python/pytest-subtests: Bump to 0.8.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pytest-subtests/Manifest | 1 +
13 .../pytest-subtests/pytest-subtests-0.8.0.ebuild | 51 ++++++++++++++++++++++
14 2 files changed, 52 insertions(+)
15
16 diff --git a/dev-python/pytest-subtests/Manifest b/dev-python/pytest-subtests/Manifest
17 index ca91c3210ad4..e22b7cd95ed7 100644
18 --- a/dev-python/pytest-subtests/Manifest
19 +++ b/dev-python/pytest-subtests/Manifest
20 @@ -1 +1,2 @@
21 DIST pytest-subtests-0.7.0.gh.tar.gz 9714 BLAKE2B 027badb226c6889ed2fb809eb0b3944ef227a804ea58562fe9337f37526a07a41b11cdfd356d8e9a29f9affc9d0702dead59045db9781504c92186ee613ccb1a SHA512 96531a42c06a20cdf3f3665993d3e80d198a60d536246f4dc46df20b56e47f3f6fdce9478351a8922e370435f974e63d565550213fbbeed8487eedc131f46404
22 +DIST pytest-subtests-0.8.0.gh.tar.gz 9767 BLAKE2B 707f6744f1cd7723d7bee11f5e535750fa179e7ad3912cd94d5200002e1dc0a206cbdb5c3bc8be587a1c81342ef9d6a8a397acd08388096a484feca6f9c84e0c SHA512 0164e02c81685108bb5c12f7e7ce92dc2fd5c844be454b2cb26e3cb942d51c453f06bb48e0300438a82b28c747dea35ea4f75eaf65ff8b66b338bcb0f0dd9ed1
23
24 diff --git a/dev-python/pytest-subtests/pytest-subtests-0.8.0.ebuild b/dev-python/pytest-subtests/pytest-subtests-0.8.0.ebuild
25 new file mode 100644
26 index 000000000000..2882f156ab50
27 --- /dev/null
28 +++ b/dev-python/pytest-subtests/pytest-subtests-0.8.0.ebuild
29 @@ -0,0 +1,51 @@
30 +# Copyright 2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="unittest subTest() support and subtests fixture"
41 +HOMEPAGE="
42 + https://github.com/pytest-dev/pytest-subtests/
43 + https://pypi.org/project/pytest-subtests/"
44 +SRC_URI="
45 + https://github.com/pytest-dev/pytest-subtests/archive/refs/tags/${PV}.tar.gz
46 + -> ${P}.gh.tar.gz
47 +"
48 +
49 +LICENSE="MIT"
50 +SLOT="0"
51 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
52 +
53 +RDEPEND="
54 + >=dev-python/pytest-7[${PYTHON_USEDEP}]
55 +"
56 +# pytest-xdist is used to test compatibility
57 +BDEPEND="
58 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
59 + test? (
60 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
61 + )
62 +"
63 +
64 +distutils_enable_tests pytest
65 +
66 +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
67 +
68 +python_test() {
69 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
70 + local -x PYTEST_PLUGINS=xdist.plugin,xdist.looponfail,pytest_forked,pytest_subtests
71 + local EPYTEST_DESELECT=()
72 + [[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=(
73 + # broken by output changes
74 + # https://github.com/pytest-dev/pytest-subtests/issues/69
75 + "tests/test_subtests.py::TestSubTest::test_simple_terminal_normal[unittest]"
76 + "tests/test_subtests.py::TestSubTest::test_simple_terminal_verbose[unittest]"
77 + )
78 +
79 + epytest
80 +}