1 |
commit: bbc99d9e26800f182e698062bd5a02a0d8a17dc1 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 29 09:30:57 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 29 11:45:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbc99d9e |
7 |
|
8 |
dev-python/setuptools: Use pytest-xdist |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/setuptools/setuptools-51.1.1.ebuild | 12 +++++++++--- |
13 |
1 file changed, 9 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/setuptools/setuptools-51.1.1.ebuild b/dev-python/setuptools/setuptools-51.1.1.ebuild |
16 |
index 81b6a41f833..69dc6ffd79a 100644 |
17 |
--- a/dev-python/setuptools/setuptools-51.1.1.ebuild |
18 |
+++ b/dev-python/setuptools/setuptools-51.1.1.ebuild |
19 |
@@ -7,7 +7,7 @@ DISTUTILS_USE_SETUPTOOLS=manual |
20 |
PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) |
21 |
PYTHON_REQ_USE="xml(+)" |
22 |
|
23 |
-inherit distutils-r1 |
24 |
+inherit distutils-r1 multiprocessing |
25 |
|
26 |
DESCRIPTION="Collection of extensions to Distutils" |
27 |
HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" |
28 |
@@ -24,6 +24,7 @@ BDEPEND=" |
29 |
dev-python/pip[${PYTHON_USEDEP}] |
30 |
dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
31 |
dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
32 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
33 |
>=dev-python/virtualenv-20[${PYTHON_USEDEP}] |
34 |
dev-python/wheel[${PYTHON_USEDEP}] |
35 |
) |
36 |
@@ -42,12 +43,17 @@ DOCS=( {CHANGES,README}.rst ) |
37 |
python_test() { |
38 |
distutils_install_for_testing --via-root |
39 |
local deselect=( |
40 |
+ # TODO |
41 |
setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_allow_hosts |
42 |
+ # this one's unhappy about pytest-xdist but one test is not worth |
43 |
+ # losing the speed gain |
44 |
+ setuptools/tests/test_build_meta.py::TestBuildMetaBackend::test_build_sdist_relative_path_import |
45 |
) |
46 |
# test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg |
47 |
# It tries to sandbox the test in a tempdir |
48 |
- HOME="${PWD}" pytest -vv setuptools ${deselect[@]/#/--deselect } || |
49 |
- die "Tests failed under ${EPYTHON}" |
50 |
+ HOME="${PWD}" pytest -vv ${deselect[@]/#/--deselect } \ |
51 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" \ |
52 |
+ setuptools || die "Tests failed under ${EPYTHON}" |
53 |
} |
54 |
|
55 |
python_install() { |