1 |
commit: 65952fe1f10dba32299a1e9b97903b588a8e58f5 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 18 05:35:23 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 18 05:58:41 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65952fe1 |
7 |
|
8 |
dev-python/hatchling: Bump to 1.0.0 |
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.0.0.ebuild | 74 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 75 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hatchling/Manifest b/dev-python/hatchling/Manifest |
17 |
index 19b4bb7f7323..700689ae98fc 100644 |
18 |
--- a/dev-python/hatchling/Manifest |
19 |
+++ b/dev-python/hatchling/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST hatch-hatchling-v0.24.0.tar.gz 212154 BLAKE2B fc0fcdd20eb1a1040298a4c959911d291ca454cf82404b0a7a67a9d192e3af0b8ee5a50d169e803bd5602775cf3f9336fd56d83c6fa85aa8d9f805269205ed29 SHA512 f4a1764f129c6e3098d0b0c744dca4f0b499c43d53dcebffc7aa26e28e3f599a9370e0f1f8ee9b9130042f066e1c857e155ffbdcf86d2c18e32ff5bc9219c51e |
22 |
DIST hatch-hatchling-v0.25.0.tar.gz 216944 BLAKE2B 298f284bc05bbba6c463d4c22ddbbd1438a3a068de2a14300343803f706f2bc3a69be83bdbb1876f4f2474e7cb1ac4e98226108ad290c5097bbc1135367b7183 SHA512 1cfc8ea27e46e316efeeee321e17770995e495f0b6a722b89d9632af7902e3a7ee7c5a729b8ca27e490a94b7ddcda9b4e03dd7274b305f928b0e31a469a1643f |
23 |
+DIST hatch-hatchling-v1.0.0.tar.gz 216365 BLAKE2B cb6b648d103c7e9848b1a15cd62aaf3ab39c458f83f6c56cf039a136b39ae6c59ba487c36860582f98fb1ede6b3c2dab148b023499b5e4a30de9d063379118c3 SHA512 e16b0c53705fe090713f40d661e4ac9a4d0c2ae22f9193fcbaa1eb4ba146a36642b5e188574ad00b6ddd06c60537db0eba18fe9f2676cc988effc9d74e0dffc4 |
24 |
|
25 |
diff --git a/dev-python/hatchling/hatchling-1.0.0.ebuild b/dev-python/hatchling/hatchling-1.0.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..2f99efcc7213 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/hatchling/hatchling-1.0.0.ebuild |
30 |
@@ -0,0 +1,74 @@ |
31 |
+# Copyright 2022 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}.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 |
+RDEPEND=" |
60 |
+ >=dev-python/editables-0.2[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/packaging-21.3[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/pathspec-0.9[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/pluggy-1.0.0[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/tomli-1.2.2[${PYTHON_USEDEP}] |
65 |
+" |
66 |
+BDEPEND=" |
67 |
+ ${RDEPEND} |
68 |
+ test? ( |
69 |
+ $(python_gen_cond_dep ' |
70 |
+ dev-python/atomicwrites[${PYTHON_USEDEP}] |
71 |
+ dev-python/click[${PYTHON_USEDEP}] |
72 |
+ dev-python/httpx[${PYTHON_USEDEP}] |
73 |
+ dev-python/platformdirs[${PYTHON_USEDEP}] |
74 |
+ dev-python/rich[${PYTHON_USEDEP}] |
75 |
+ dev-python/tomli-w[${PYTHON_USEDEP}] |
76 |
+ dev-python/virtualenv[${PYTHON_USEDEP}] |
77 |
+ ' "${PYTHON_TESTED[@]}") |
78 |
+ ) |
79 |
+" |
80 |
+ |
81 |
+distutils_enable_tests pytest |
82 |
+ |
83 |
+python_test() { |
84 |
+ if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then |
85 |
+ einfo "Skipping tests on ${EPYTHON}" |
86 |
+ return |
87 |
+ fi |
88 |
+ |
89 |
+ local -x EPYTEST_DESELECT=( |
90 |
+ # these run pip to install stuff |
91 |
+ tests/backend/dep/test_core.py::test_dependency_found |
92 |
+ tests/backend/dep/test_core.py::test_extra_met |
93 |
+ tests/backend/dep/test_core.py::test_extra_no_dependencies |
94 |
+ tests/backend/dep/test_core.py::test_extra_unmet |
95 |
+ tests/backend/dep/test_core.py::test_unknown_extra |
96 |
+ tests/backend/dep/test_core.py::test_version_unmet |
97 |
+ ) |
98 |
+ |
99 |
+ # top-level "tests" directory contains tests both for hatch |
100 |
+ # and hatchling |
101 |
+ cd "${WORKDIR}/${MY_P}" || die |
102 |
+ local -x PYTHONPATH="src:${PYTHONPATH}" |
103 |
+ epytest tests/backend |
104 |
+} |