1 |
commit: b973812635d7156ab4b75b6a7a7bac292131c2ca |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 7 09:27:13 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 7 09:27:13 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9738126 |
7 |
|
8 |
dev-python/hatchling: Enable pypy3 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/hatchling/hatchling-0.22.0.ebuild | 19 +++++++++++++------ |
13 |
1 file changed, 13 insertions(+), 6 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/hatchling/hatchling-0.22.0.ebuild b/dev-python/hatchling/hatchling-0.22.0.ebuild |
16 |
index 72e3b3bb04e8..992bc68216bc 100644 |
17 |
--- a/dev-python/hatchling/hatchling-0.22.0.ebuild |
18 |
+++ b/dev-python/hatchling/hatchling-0.22.0.ebuild |
19 |
@@ -4,7 +4,7 @@ |
20 |
EAPI=8 |
21 |
|
22 |
DISTUTILS_USE_PEP517=standalone |
23 |
-PYTHON_COMPAT=( python3_{8..10} ) |
24 |
+PYTHON_COMPAT=( pypy3 python3_{8..10} ) |
25 |
|
26 |
inherit distutils-r1 |
27 |
|
28 |
@@ -35,11 +35,13 @@ RDEPEND=" |
29 |
BDEPEND=" |
30 |
${RDEPEND} |
31 |
test? ( |
32 |
- dev-python/atomicwrites[${PYTHON_USEDEP}] |
33 |
- dev-python/click[${PYTHON_USEDEP}] |
34 |
- dev-python/httpx[${PYTHON_USEDEP}] |
35 |
- dev-python/platformdirs[${PYTHON_USEDEP}] |
36 |
- dev-python/rich[${PYTHON_USEDEP}] |
37 |
+ $(python_gen_cond_dep ' |
38 |
+ dev-python/atomicwrites[${PYTHON_USEDEP}] |
39 |
+ dev-python/click[${PYTHON_USEDEP}] |
40 |
+ dev-python/httpx[${PYTHON_USEDEP}] |
41 |
+ dev-python/platformdirs[${PYTHON_USEDEP}] |
42 |
+ dev-python/rich[${PYTHON_USEDEP}] |
43 |
+ ' 'python*') |
44 |
) |
45 |
" |
46 |
|
47 |
@@ -52,6 +54,11 @@ python_compile() { |
48 |
} |
49 |
|
50 |
python_test() { |
51 |
+ if [[ ${EPYTHON} != python* ]]; then |
52 |
+ einfo "Skipping tests on ${EPYTHON}" |
53 |
+ return |
54 |
+ fi |
55 |
+ |
56 |
local -x EPYTEST_DESELECT=( |
57 |
# these run pip to install stuff |
58 |
tests/backend/dep/test_core.py::test_dependency_found |