1 |
commit: 5228aaa4b73c861d15c4cd0fb64502e447e27b46 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 5 10:14:47 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 5 10:56:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5228aaa4 |
7 |
|
8 |
dev-python/testresources: Port to py3.10 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/testresources/testresources-2.0.1.ebuild | 14 ++++---------- |
13 |
1 file changed, 4 insertions(+), 10 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/testresources/testresources-2.0.1.ebuild b/dev-python/testresources/testresources-2.0.1.ebuild |
16 |
index 20aab49f408..fac3d7bddf5 100644 |
17 |
--- a/dev-python/testresources/testresources-2.0.1.ebuild |
18 |
+++ b/dev-python/testresources/testresources-2.0.1.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_{7..9} pypy3 ) |
26 |
+EAPI=8 |
27 |
|
28 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
29 |
inherit distutils-r1 |
30 |
|
31 |
DESCRIPTION="A pyunit extension for managing expensive test resources" |
32 |
@@ -14,24 +13,19 @@ 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 ~s390 sparc x86 ~amd64-linux ~x86-linux" |
36 |
-IUSE="test" |
37 |
-RESTRICT="!test? ( test )" |
38 |
|
39 |
BDEPEND=" |
40 |
dev-python/pbr[${PYTHON_USEDEP}] |
41 |
test? ( |
42 |
- dev-python/nose[${PYTHON_USEDEP}] |
43 |
dev-python/testtools[${PYTHON_USEDEP}] |
44 |
dev-python/fixtures[${PYTHON_USEDEP}] |
45 |
)" |
46 |
|
47 |
+distutils_enable_tests nose |
48 |
+ |
49 |
python_prepare_all() { |
50 |
sed \ |
51 |
-e 's:testBasicSortTests:_&:g' \ |
52 |
-i testresources/tests/test_optimising_test_suite.py || die |
53 |
distutils-r1_python_prepare_all |
54 |
} |
55 |
- |
56 |
-python_test() { |
57 |
- nosetests --verbose || die "Tests failed under ${EPYTHON}" |
58 |
-} |