1 |
commit: 3afa5650ae608c91c3a5ffa1b93190f29b8f0d6b |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 16 18:43:31 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 16 18:50:05 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3afa5650 |
7 |
|
8 |
dev-python/hatchling: add 1.8.0 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/hatchling/Manifest | 1 + |
13 |
dev-python/hatchling/hatchling-1.8.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 4259c18a3868..cfc9b17768d7 100644 |
18 |
--- a/dev-python/hatchling/Manifest |
19 |
+++ b/dev-python/hatchling/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST hatch-hatchling-v1.5.0.gh.tar.gz 232265 BLAKE2B 4fd57f7610831a025b9b0dddb89 |
21 |
DIST hatch-hatchling-v1.6.0.gh.tar.gz 233428 BLAKE2B 5ce5a2a94c9021919f50f90a96f37713a739fe08e1d6a5955a3af369d6c37beece1a4c22b1883e689e500f219101fb67a700231b8d0d22432150b34a6cee22bd SHA512 be23b81cca96cb93321938e0ac7455efc2e388e910c1b64a7d611a37681b5bd6aa89c4fe165a7a2f7ce2dd11ea3598aaeaaab80869e689aac0afdce915b8f567 |
22 |
DIST hatch-hatchling-v1.7.0.gh.tar.gz 249253 BLAKE2B a294b87172b16bda86a90f2d9577bfa7ea9bc21e6644006cb141b762df96bb62e7e828e1c147c6409e6b7278a0bd00cb6ee67d01b203dec110fc272cfae6fd92 SHA512 6a3c807674891ff23ca0b2f00e62900e9e4752888cf6c8647ac20ec6b76a13c23e17a52989d4661d03bed3e33e682a09b877ae6c99bfc707a28ddde754ea9386 |
23 |
DIST hatch-hatchling-v1.7.1.gh.tar.gz 1471608 BLAKE2B 52d7d1f8a45f5dd6573676b8f6946b843c5368ba0b0a53d1a30d48c1087350eea54335fbc76816f334526238451ab8075586212386bb18edc0c3b3cfc5224b3c SHA512 dfffc8586ee3ff5c7f1f277be1e653efef70fca5377c12c16bb05c1deeb5cf5eccc5cd58d0923a32c7a8b3701621f6be881709bb836734170a08b103b841107f |
24 |
+DIST hatch-hatchling-v1.8.0.gh.tar.gz 1524674 BLAKE2B a23e2e4c40dda4df45a2124499f1f566038a1a6b5631f453a1631fc322474a536e7d8bd0972d315c38a7a3cf97ef2839c998bb4310fc6123dc154d597e75eda3 SHA512 14772c8d6d3408f66e755b59d58f4c67e12c96665d556f647261dfa60e250c1b586bea2731aedcf24c6ede4c0dae132ea205516735509e9e1ccc9ef4bbd84a15 |
25 |
|
26 |
diff --git a/dev-python/hatchling/hatchling-1.8.0.ebuild b/dev-python/hatchling/hatchling-1.8.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..868dd0172a97 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/hatchling/hatchling-1.8.0.ebuild |
31 |
@@ -0,0 +1,74 @@ |
32 |
+# Copyright 2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+DISTUTILS_USE_PEP517=standalone |
38 |
+PYTHON_TESTED=( pypy3 python3_{8..11} ) |
39 |
+PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) |
40 |
+ |
41 |
+inherit distutils-r1 |
42 |
+ |
43 |
+TAG=${P/-/-v} |
44 |
+MY_P=hatch-${TAG} |
45 |
+DESCRIPTION="Modern, extensible Python build backend" |
46 |
+HOMEPAGE=" |
47 |
+ https://pypi.org/project/hatchling/ |
48 |
+ https://github.com/pypa/hatch/ |
49 |
+" |
50 |
+SRC_URI=" |
51 |
+ https://github.com/pypa/hatch/archive/${TAG}.tar.gz |
52 |
+ -> ${MY_P}.gh.tar.gz |
53 |
+" |
54 |
+S=${WORKDIR}/${MY_P}/backend |
55 |
+ |
56 |
+LICENSE="MIT" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
59 |
+ |
60 |
+RDEPEND=" |
61 |
+ >=dev-python/editables-0.2[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/packaging-21.3[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/pathspec-0.9[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/pluggy-1.0.0[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/tomli-1.2.2[${PYTHON_USEDEP}] |
66 |
+" |
67 |
+BDEPEND=" |
68 |
+ ${RDEPEND} |
69 |
+ test? ( |
70 |
+ $(python_gen_cond_dep ' |
71 |
+ dev-python/atomicwrites[${PYTHON_USEDEP}] |
72 |
+ dev-python/click[${PYTHON_USEDEP}] |
73 |
+ dev-python/httpx[${PYTHON_USEDEP}] |
74 |
+ dev-python/platformdirs[${PYTHON_USEDEP}] |
75 |
+ dev-python/rich[${PYTHON_USEDEP}] |
76 |
+ dev-python/tomli-w[${PYTHON_USEDEP}] |
77 |
+ dev-python/virtualenv[${PYTHON_USEDEP}] |
78 |
+ ' "${PYTHON_TESTED[@]}") |
79 |
+ ) |
80 |
+" |
81 |
+ |
82 |
+distutils_enable_tests pytest |
83 |
+ |
84 |
+python_test() { |
85 |
+ if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then |
86 |
+ einfo "Skipping tests on ${EPYTHON}" |
87 |
+ return |
88 |
+ fi |
89 |
+ |
90 |
+ local -x EPYTEST_DESELECT=( |
91 |
+ # these run pip to install stuff |
92 |
+ tests/backend/dep/test_core.py::test_dependency_found |
93 |
+ tests/backend/dep/test_core.py::test_extra_met |
94 |
+ tests/backend/dep/test_core.py::test_extra_no_dependencies |
95 |
+ tests/backend/dep/test_core.py::test_extra_unmet |
96 |
+ tests/backend/dep/test_core.py::test_unknown_extra |
97 |
+ tests/backend/dep/test_core.py::test_version_unmet |
98 |
+ ) |
99 |
+ |
100 |
+ # top-level "tests" directory contains tests both for hatch |
101 |
+ # and hatchling |
102 |
+ cd "${WORKDIR}/${MY_P}" || die |
103 |
+ local -x PYTHONPATH="src:${PYTHONPATH}" |
104 |
+ epytest tests/backend |
105 |
+} |