1 |
commit: 691b428036592965dc92d6a3c9efe4cae346ae9d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 4 22:43:34 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 4 22:56:20 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=691b4280 |
7 |
|
8 |
dev-python/setuptools: Enable python3.10 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/setuptools/setuptools-56.1.0.ebuild | 36 ++++++++++++++++---------- |
13 |
1 file changed, 22 insertions(+), 14 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/setuptools/setuptools-56.1.0.ebuild b/dev-python/setuptools/setuptools-56.1.0.ebuild |
16 |
index 26e0b9576c5..d47acafe9dd 100644 |
17 |
--- a/dev-python/setuptools/setuptools-56.1.0.ebuild |
18 |
+++ b/dev-python/setuptools/setuptools-56.1.0.ebuild |
19 |
@@ -4,7 +4,7 @@ |
20 |
EAPI=7 |
21 |
# Set to 'manual' to avoid triggering install QA check |
22 |
DISTUTILS_USE_SETUPTOOLS=manual |
23 |
-PYTHON_COMPAT=( python3_{7..9} pypy3 ) |
24 |
+PYTHON_COMPAT=( python3_{7..10} pypy3 ) |
25 |
PYTHON_REQ_USE="xml(+)" |
26 |
|
27 |
inherit distutils-r1 multiprocessing |
28 |
@@ -16,26 +16,31 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
29 |
LICENSE="MIT" |
30 |
SLOT="0" |
31 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
32 |
+IUSE="test" |
33 |
+RESTRICT="!test? ( test )" |
34 |
|
35 |
BDEPEND=" |
36 |
test? ( |
37 |
- dev-python/jaraco-envs[${PYTHON_USEDEP}] |
38 |
- >=dev-python/jaraco-path-3.2.0[${PYTHON_USEDEP}] |
39 |
- dev-python/mock[${PYTHON_USEDEP}] |
40 |
- dev-python/pip[${PYTHON_USEDEP}] |
41 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
42 |
- dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
43 |
- dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
44 |
- dev-python/pytest-xdist[${PYTHON_USEDEP}] |
45 |
- >=dev-python/virtualenv-20[${PYTHON_USEDEP}] |
46 |
- dev-python/wheel[${PYTHON_USEDEP}] |
47 |
+ $(python_gen_cond_dep ' |
48 |
+ dev-python/jaraco-envs[${PYTHON_USEDEP}] |
49 |
+ >=dev-python/jaraco-path-3.2.0[${PYTHON_USEDEP}] |
50 |
+ dev-python/mock[${PYTHON_USEDEP}] |
51 |
+ dev-python/pip[${PYTHON_USEDEP}] |
52 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
53 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
54 |
+ dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
55 |
+ dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
56 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/virtualenv-20[${PYTHON_USEDEP}] |
58 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
59 |
+ ' python3_{7..9} pypy3) |
60 |
) |
61 |
" |
62 |
PDEPEND=" |
63 |
>=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}] |
64 |
- dev-python/setuptools_scm[${PYTHON_USEDEP}]" |
65 |
- |
66 |
-distutils_enable_tests pytest |
67 |
+ $(python_gen_cond_dep ' |
68 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
69 |
+ ' python3_{7..9} pypy3)" |
70 |
|
71 |
# Force in-source build because build system modifies sources. |
72 |
DISTUTILS_IN_SOURCE_BUILD=1 |
73 |
@@ -43,6 +48,9 @@ DISTUTILS_IN_SOURCE_BUILD=1 |
74 |
DOCS=( {CHANGES,README}.rst ) |
75 |
|
76 |
python_test() { |
77 |
+ # temporarily skipped, until we port all test deps |
78 |
+ [[ ${EPYTHON} == python3.10 ]] && continue |
79 |
+ |
80 |
distutils_install_for_testing --via-root |
81 |
local deselect=( |
82 |
# network |