Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hatchling/
Date: Wed, 11 May 2022 17:55:01
Message-Id: 1652291679.e49f92af61c3bac6df1295c2ddc52719c91b934f.mgorny@gentoo
1 commit: e49f92af61c3bac6df1295c2ddc52719c91b934f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 11 17:24:52 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 11 17:54:39 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e49f92af
7
8 dev-python/hatchling: Enable py3.11
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/hatchling/hatchling-0.24.0.ebuild | 30 +++++++++++++++-------------
13 1 file changed, 16 insertions(+), 14 deletions(-)
14
15 diff --git a/dev-python/hatchling/hatchling-0.24.0.ebuild b/dev-python/hatchling/hatchling-0.24.0.ebuild
16 index 5cabb7946eb7..c36ac5b6d543 100644
17 --- a/dev-python/hatchling/hatchling-0.24.0.ebuild
18 +++ b/dev-python/hatchling/hatchling-0.24.0.ebuild
19 @@ -4,7 +4,7 @@
20 EAPI=8
21
22 DISTUTILS_USE_PEP517=standalone
23 -PYTHON_COMPAT=( pypy3 python3_{8..10} )
24 +PYTHON_COMPAT=( pypy3 python3_{8..11} )
25
26 inherit distutils-r1
27
28 @@ -35,25 +35,27 @@ 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 - dev-python/tomli-w[${PYTHON_USEDEP}]
38 - dev-python/virtualenv[${PYTHON_USEDEP}]
39 + $(python_gen_cond_dep '
40 + dev-python/atomicwrites[${PYTHON_USEDEP}]
41 + dev-python/click[${PYTHON_USEDEP}]
42 + dev-python/httpx[${PYTHON_USEDEP}]
43 + dev-python/platformdirs[${PYTHON_USEDEP}]
44 + dev-python/rich[${PYTHON_USEDEP}]
45 + dev-python/tomli-w[${PYTHON_USEDEP}]
46 + dev-python/virtualenv[${PYTHON_USEDEP}]
47 + ' pypy3 python3_{8..10} # TODO: 3.11 when deps are ported
48 + )
49 )
50 "
51
52 distutils_enable_tests pytest
53
54 -python_compile() {
55 - # TODO: remove this when gpep517 is the norm
56 - local -x PYTHONPATH=src
57 - distutils-r1_python_compile
58 -}
59 -
60 python_test() {
61 + if ! has "${EPYTHON}" pypy3 python3.{8..10}; then
62 + einfo "Skipping tests on ${EPYTHON}"
63 + return
64 + fi
65 +
66 local -x EPYTEST_DESELECT=(
67 # these run pip to install stuff
68 tests/backend/dep/test_core.py::test_dependency_found