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