summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-12-09 17:18:23 +0100
committerMichał Górny <mgorny@gentoo.org>2023-12-09 17:36:57 +0100
commit2b48548d186f68ad0bebf9ffbb72b2bc23f454a8 (patch)
treed8f3ef3667094ca7e05178b0b5ad88d8095d0cd3 /dev-python/django
parentdev-python/django: Backport pypy3 support to 4.1.12-r1 (diff)
downloadgentoo-2b48548d186f68ad0bebf9ffbb72b2bc23f454a8.tar.gz
gentoo-2b48548d186f68ad0bebf9ffbb72b2bc23f454a8.tar.bz2
gentoo-2b48548d186f68ad0bebf9ffbb72b2bc23f454a8.zip
dev-python/django: Backport --parallel test logic to 4.1.12-r1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/django')
-rw-r--r--dev-python/django/django-4.1.12-r1.ebuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/dev-python/django/django-4.1.12-r1.ebuild b/dev-python/django/django-4.1.12-r1.ebuild
index a8b776d883a6..382e7bd0fb47 100644
--- a/dev-python/django/django-4.1.12-r1.ebuild
+++ b/dev-python/django/django-4.1.12-r1.ebuild
@@ -7,7 +7,7 @@ DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( pypy3 python3_{10..11} )
PYTHON_REQ_USE='sqlite?,threads(+)'
-inherit bash-completion-r1 distutils-r1 optfeature verify-sig
+inherit bash-completion-r1 distutils-r1 multiprocessing optfeature verify-sig
DESCRIPTION="High-level Python web framework"
HOMEPAGE="
@@ -76,7 +76,8 @@ src_unpack() {
python_test() {
# Tests have non-standard assumptions about PYTHONPATH,
# and don't work with ${BUILD_DIR}/lib.
- PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 ||
+ PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite \
+ -v2 --parallel="${EPYTEST_JOBS:-$(makeopts_jobs)}" ||
die "Tests fail with ${EPYTHON}"
}