summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-02-10 03:01:59 +0000
committerSam James <sam@gentoo.org>2024-02-10 03:16:33 +0000
commit71b46caf5b42566a440c46c4127f0bfe2bd84a73 (patch)
tree41e0cc7a511caa8da301a00f8175d9c676c64c4d /dev-python
parentdev-python/lark: only depend on dev-python/regex for tests w/o pypy (diff)
downloadgentoo-71b46caf5b42566a440c46c4127f0bfe2bd84a73.tar.gz
gentoo-71b46caf5b42566a440c46c4127f0bfe2bd84a73.tar.bz2
gentoo-71b46caf5b42566a440c46c4127f0bfe2bd84a73.zip
dev-python/astroid: only depend on dev-python/regex for tests w/o pypy
The tests cleanly skip if dev-python/regex isn't available. Bug: https://bugs.gentoo.org/924136 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/astroid/astroid-3.0.2.ebuild5
-rw-r--r--dev-python/astroid/astroid-3.0.3.ebuild5
2 files changed, 8 insertions, 2 deletions
diff --git a/dev-python/astroid/astroid-3.0.2.ebuild b/dev-python/astroid/astroid-3.0.2.ebuild
index 3a2adf548d14..0ab49c935560 100644
--- a/dev-python/astroid/astroid-3.0.2.ebuild
+++ b/dev-python/astroid/astroid-3.0.2.ebuild
@@ -28,13 +28,16 @@ RDEPEND="
>=dev-python/typing-extensions-4.0.0[${PYTHON_USEDEP}]
' 3.10)
"
+# dev-python/regex isn't available for pypy
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
test? (
dev-python/attrs[${PYTHON_USEDEP}]
>=dev-python/numpy-1.17.0[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
- dev-python/regex[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/regex[${PYTHON_USEDEP}]
+ ' 'python*')
)
"
diff --git a/dev-python/astroid/astroid-3.0.3.ebuild b/dev-python/astroid/astroid-3.0.3.ebuild
index 3a86c65f8ad1..c6b1ea193459 100644
--- a/dev-python/astroid/astroid-3.0.3.ebuild
+++ b/dev-python/astroid/astroid-3.0.3.ebuild
@@ -28,13 +28,16 @@ RDEPEND="
>=dev-python/typing-extensions-4.0.0[${PYTHON_USEDEP}]
' 3.10)
"
+# dev-python/regex isn't available for pypy
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
test? (
dev-python/attrs[${PYTHON_USEDEP}]
>=dev-python/numpy-1.17.0[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
- dev-python/regex[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/regex[${PYTHON_USEDEP}]
+ ' 'python*')
)
"