1 |
commit: a30df55de0e3da42ca86ebe3d855d09d79c2eb3f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 13 15:49:53 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 16 17:43:21 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a30df55d |
7 |
|
8 |
dev-python/pdm-pep517: New NIH build system, v0.10.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pdm-pep517/Manifest | 1 + |
13 |
dev-python/pdm-pep517/metadata.xml | 13 +++++++ |
14 |
dev-python/pdm-pep517/pdm-pep517-0.10.0.ebuild | 50 ++++++++++++++++++++++++++ |
15 |
3 files changed, 64 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pdm-pep517/Manifest b/dev-python/pdm-pep517/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000000..f9273745987d |
20 |
--- /dev/null |
21 |
+++ b/dev-python/pdm-pep517/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST pdm-pep517-0.10.0.gh.tar.gz 189457 BLAKE2B 5a51b62dbc828aec5bca6ada8c7ecb479dd7491f22251392198a3d8e183f2d3d86fd4264addd9a428c37a24041365f3eeecec0a33c3f1a39ea8a1a8e6827be91 SHA512 7eb76bdf3db99ec1cf76a467617ce15423eaa465800efa9ccb248efb3c3cb5644b8e6a9ce04d6181dc9f3b5287a167f62f25d5e3334929f3e947a62ca9633d01 |
24 |
|
25 |
diff --git a/dev-python/pdm-pep517/metadata.xml b/dev-python/pdm-pep517/metadata.xml |
26 |
new file mode 100644 |
27 |
index 000000000000..f00d2775021c |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pdm-pep517/metadata.xml |
30 |
@@ -0,0 +1,13 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="project"> |
35 |
+ <email>python@g.o</email> |
36 |
+ <name>Python</name> |
37 |
+ </maintainer> |
38 |
+ <stabilize-allarches/> |
39 |
+ <upstream> |
40 |
+ <remote-id type="pypi">pdm-pep517</remote-id> |
41 |
+ <remote-id type="github">pdm-project/pdm-pep517</remote-id> |
42 |
+ </upstream> |
43 |
+</pkgmetadata> |
44 |
|
45 |
diff --git a/dev-python/pdm-pep517/pdm-pep517-0.10.0.ebuild b/dev-python/pdm-pep517/pdm-pep517-0.10.0.ebuild |
46 |
new file mode 100644 |
47 |
index 000000000000..9c1dcf99a0c9 |
48 |
--- /dev/null |
49 |
+++ b/dev-python/pdm-pep517/pdm-pep517-0.10.0.ebuild |
50 |
@@ -0,0 +1,50 @@ |
51 |
+# Copyright 2022 Gentoo Authors |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+ |
54 |
+EAPI=8 |
55 |
+ |
56 |
+DISTUTILS_USE_PEP517=standalone |
57 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
58 |
+inherit distutils-r1 |
59 |
+ |
60 |
+DESCRIPTION="A PEP 517 backend for PDM that supports PEP 621 metadata" |
61 |
+HOMEPAGE=" |
62 |
+ https://pypi.org/project/pdm-pep517/ |
63 |
+ https://github.com/pdm-project/pdm-pep517/ |
64 |
+" |
65 |
+SRC_URI=" |
66 |
+ https://github.com/pdm-project/pdm-pep517/archive/${PV}.tar.gz |
67 |
+ -> ${P}.gh.tar.gz |
68 |
+" |
69 |
+ |
70 |
+LICENSE="MIT" |
71 |
+SLOT="0" |
72 |
+KEYWORDS="~amd64" |
73 |
+ |
74 |
+# setuptools are used to build C extensions |
75 |
+RDEPEND=" |
76 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
77 |
+" |
78 |
+BDEPEND=" |
79 |
+ test? ( |
80 |
+ dev-vcs/git |
81 |
+ ) |
82 |
+" |
83 |
+ |
84 |
+distutils_enable_tests pytest |
85 |
+ |
86 |
+src_test() { |
87 |
+ git config --global user.email "test@×××××××.com" || die |
88 |
+ git config --global user.name "Test User" || die |
89 |
+ distutils-r1_src_test |
90 |
+} |
91 |
+ |
92 |
+python_test() { |
93 |
+ local EPYTEST_DESELECT=() |
94 |
+ if [[ ${EPYTHON} == pypy3 ]]; then |
95 |
+ EPYTEST_DESELECT+=( |
96 |
+ tests/test_wheel.py::test_override_tags_in_wheel_filename |
97 |
+ ) |
98 |
+ fi |
99 |
+ epytest |
100 |
+} |