1 |
commit: 066f2dd0d6cebf982c8aeea3f7f1031d93d3698a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 7 09:35:27 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 7 09:35:27 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=066f2dd0 |
7 |
|
8 |
distutils-r1.eclass: Add hatchling support (meh!) |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
eclass/distutils-r1.eclass | 9 +++++++++ |
13 |
1 file changed, 9 insertions(+) |
14 |
|
15 |
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass |
16 |
index ed2e9f70269f..5598543c0f9a 100644 |
17 |
--- a/eclass/distutils-r1.eclass |
18 |
+++ b/eclass/distutils-r1.eclass |
19 |
@@ -98,6 +98,8 @@ esac |
20 |
# |
21 |
# - flit - flit_core backend |
22 |
# |
23 |
+# - hatchling - hatchling backend (from hatch) |
24 |
+# |
25 |
# - pdm - pdm.pep517 backend |
26 |
# |
27 |
# - poetry - poetry-core backend |
28 |
@@ -187,6 +189,10 @@ _distutils_set_globals() { |
29 |
bdep+=' |
30 |
dev-python/flit_core[${PYTHON_USEDEP}]' |
31 |
;; |
32 |
+ hatchling) |
33 |
+ bdep+=' |
34 |
+ dev-python/hatchling[${PYTHON_USEDEP}]' |
35 |
+ ;; |
36 |
pdm) |
37 |
bdep+=' |
38 |
dev-python/pdm-pep517[${PYTHON_USEDEP}]' |
39 |
@@ -911,6 +917,9 @@ _distutils-r1_backend_to_key() { |
40 |
flit_core.buildapi|flit.buildapi) |
41 |
echo flit |
42 |
;; |
43 |
+ hatchling.build) |
44 |
+ echo hatchling |
45 |
+ ;; |
46 |
pdm.pep517.api) |
47 |
echo pdm |
48 |
;; |