1 |
commit: 07bf96c1901df578973ba39806c9b2856f9f47c7 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 1 06:37:36 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 1 06:37:36 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07bf96c1 |
7 |
|
8 |
dev-python/hatchling: Bump to 1.12.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/hatchling/Manifest | 1 + |
13 |
dev-python/hatchling/hatchling-1.12.1.ebuild | 77 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 78 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hatchling/Manifest b/dev-python/hatchling/Manifest |
17 |
index 9f3d31e68e79..b7e3fee6cf73 100644 |
18 |
--- a/dev-python/hatchling/Manifest |
19 |
+++ b/dev-python/hatchling/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST hatch-hatchling-v1.11.1.gh.tar.gz 367624 BLAKE2B 006f9f9ab266eba7b7e489d4359a9ddb17a6e079c31e189662da8c4d090884eeae4bf108301d5c315d823e92cb813841e41211cc55618f4ee9109bccdde61e1e SHA512 7bdf5a2930950503dbe534f6ead724ed84420193ba55137600a5b98a085e94588e333bb5a14ad944746dc400522ebbea4849718686420fd6ed7de3d6e8852d8e |
22 |
DIST hatch-hatchling-v1.12.0.gh.tar.gz 379902 BLAKE2B 831ab78bff6a039a1941ca171aaccbfb97d1d31c14505d3dde60ee4283b317cc80b6e6072b63fe9e69cccbf759bf4f7db6a371502451ffa5303547273e8d2341 SHA512 40c1684bcc730e809cdbda9d15494f07bead69b1b4bf9c98a1d2a84d2053bb7b104d6bcab1e72a4de66081dd839b7ccae96d877760353e3528e8676cea5d2a5c |
23 |
+DIST hatch-hatchling-v1.12.1.gh.tar.gz 380805 BLAKE2B da99130ac6d07517976a6e078e8a35896202e066b124ec96577cc1e57f59a2b3476623b9af15dd9e04b2d69e7219c13ad71e55c3bf02e7beee1a10bf37ee5882 SHA512 8a8cc7fa706dcbb95bf35525351dbf0e5dc61041c7e210d81479df84cd40019b727c4244cb83af93c466f676fcf1279155f470c80e63689af01efcb0f38cdb25 |
24 |
|
25 |
diff --git a/dev-python/hatchling/hatchling-1.12.1.ebuild b/dev-python/hatchling/hatchling-1.12.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..dca74863e93a |
28 |
--- /dev/null |
29 |
+++ b/dev-python/hatchling/hatchling-1.12.1.ebuild |
30 |
@@ -0,0 +1,77 @@ |
31 |
+# Copyright 2022-2023 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=standalone |
37 |
+PYTHON_TESTED=( pypy3 python3_{8..11} ) |
38 |
+PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+TAG=${P/-/-v} |
43 |
+MY_P=hatch-${TAG} |
44 |
+DESCRIPTION="Modern, extensible Python build backend" |
45 |
+HOMEPAGE=" |
46 |
+ https://pypi.org/project/hatchling/ |
47 |
+ https://github.com/pypa/hatch/ |
48 |
+" |
49 |
+SRC_URI=" |
50 |
+ https://github.com/pypa/hatch/archive/${TAG}.tar.gz |
51 |
+ -> ${MY_P}.gh.tar.gz |
52 |
+" |
53 |
+S=${WORKDIR}/${MY_P}/backend |
54 |
+ |
55 |
+LICENSE="MIT" |
56 |
+SLOT="0" |
57 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
58 |
+ |
59 |
+# deps are listed in backend/src/hatchling/ouroboros.py |
60 |
+RDEPEND=" |
61 |
+ >=dev-python/editables-0.3[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/packaging-21.3[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/pathspec-0.10.1[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/pluggy-1.0.0[${PYTHON_USEDEP}] |
65 |
+ $(python_gen_cond_dep ' |
66 |
+ >=dev-python/tomli-1.2.2[${PYTHON_USEDEP}] |
67 |
+ ' 3.8 3.9 3.10) |
68 |
+" |
69 |
+BDEPEND=" |
70 |
+ ${RDEPEND} |
71 |
+ test? ( |
72 |
+ $(python_gen_cond_dep ' |
73 |
+ dev-python/atomicwrites[${PYTHON_USEDEP}] |
74 |
+ dev-python/click[${PYTHON_USEDEP}] |
75 |
+ dev-python/httpx[${PYTHON_USEDEP}] |
76 |
+ dev-python/platformdirs[${PYTHON_USEDEP}] |
77 |
+ dev-python/rich[${PYTHON_USEDEP}] |
78 |
+ dev-python/tomli-w[${PYTHON_USEDEP}] |
79 |
+ dev-python/virtualenv[${PYTHON_USEDEP}] |
80 |
+ ' "${PYTHON_TESTED[@]}") |
81 |
+ ) |
82 |
+" |
83 |
+ |
84 |
+distutils_enable_tests pytest |
85 |
+ |
86 |
+python_test() { |
87 |
+ if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then |
88 |
+ einfo "Skipping tests on ${EPYTHON}" |
89 |
+ return |
90 |
+ fi |
91 |
+ |
92 |
+ local -x EPYTEST_DESELECT=( |
93 |
+ # these run pip to install stuff |
94 |
+ tests/backend/dep/test_core.py::test_dependency_found |
95 |
+ tests/backend/dep/test_core.py::test_extra_met |
96 |
+ tests/backend/dep/test_core.py::test_extra_no_dependencies |
97 |
+ tests/backend/dep/test_core.py::test_extra_unmet |
98 |
+ tests/backend/dep/test_core.py::test_unknown_extra |
99 |
+ tests/backend/dep/test_core.py::test_version_unmet |
100 |
+ ) |
101 |
+ |
102 |
+ # top-level "tests" directory contains tests both for hatch |
103 |
+ # and hatchling |
104 |
+ cd "${WORKDIR}/${MY_P}" || die |
105 |
+ local -x PYTHONPATH="src:${PYTHONPATH}" |
106 |
+ epytest tests/backend |
107 |
+} |