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/testscenarios/
Date: Mon, 05 Jul 2021 10:56:31
Message-Id: 1625482583.bc68b1e22d3ccb77693c7d85471efc22c6929592.mgorny@gentoo
1 commit: bc68b1e22d3ccb77693c7d85471efc22c6929592
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 5 10:27:44 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 5 10:56:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc68b1e2
7
8 dev-python/testscenarios: Port to py3.10
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/testscenarios/testscenarios-0.5.0-r1.ebuild | 15 +++++----------
13 1 file changed, 5 insertions(+), 10 deletions(-)
14
15 diff --git a/dev-python/testscenarios/testscenarios-0.5.0-r1.ebuild b/dev-python/testscenarios/testscenarios-0.5.0-r1.ebuild
16 index ef33bdf5677..48131c36af9 100644
17 --- a/dev-python/testscenarios/testscenarios-0.5.0-r1.ebuild
18 +++ b/dev-python/testscenarios/testscenarios-0.5.0-r1.ebuild
19 @@ -1,10 +1,9 @@
20 # Copyright 1999-2021 Gentoo Authors
21 # Distributed under the terms of the GNU General Public License v2
22
23 -EAPI=7
24 -
25 -PYTHON_COMPAT=( python3_{8..9} pypy3 )
26 +EAPI=8
27
28 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
29 inherit distutils-r1
30
31 DESCRIPTION="A pyunit extension for dependency injection"
32 @@ -14,20 +13,16 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
33 LICENSE="Apache-2.0"
34 SLOT="0"
35 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
36 -IUSE="test"
37 -RESTRICT="!test? ( test )"
38
39 RDEPEND="
40 dev-python/testtools[${PYTHON_USEDEP}]"
41
42 # using pytest for tests since unittest loader fails with py3.5+
43 -DEPEND="
44 +BDEPEND="
45 >=dev-python/pbr-0.11[${PYTHON_USEDEP}]"
46
47 distutils_enable_tests pytest
48
49 -python_prepare_all() {
50 - # Remove a faulty file from tests, missing a required attribute
51 - rm ${PN}/tests/test_testcase.py || die
52 - distutils-r1_python_prepare_all
53 +python_test() {
54 + epytest --deselect testscenarios/tests/test_testcase.py
55 }