1 |
commit: d11196533fc8d1e0628d0d76670a592f77c5e47e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 4 22:02:02 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 5 11:32:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1119653 |
7 |
|
8 |
dev-python/gpep517: New package, v1 |
9 |
|
10 |
Introduce a new package that replaces the inline code in distutils-r1 |
11 |
with a properly maintained and tested external script. |
12 |
|
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
dev-python/gpep517/Manifest | 1 + |
16 |
dev-python/gpep517/gpep517-1.ebuild | 44 +++++++++++++++++++++++++++++++++++++ |
17 |
dev-python/gpep517/metadata.xml | 12 ++++++++++ |
18 |
3 files changed, 57 insertions(+) |
19 |
|
20 |
diff --git a/dev-python/gpep517/Manifest b/dev-python/gpep517/Manifest |
21 |
new file mode 100644 |
22 |
index 000000000000..f99e0b39a4c3 |
23 |
--- /dev/null |
24 |
+++ b/dev-python/gpep517/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST gpep517-1.gh.tar.gz 6871 BLAKE2B a298a445cb24dbc708985ebe0be266ed6549525a2b9d250ddb53129502f04a442927ca4c29445f4caf4ada82e106e5498c9586e78dd8a4bd676c7aff747544b6 SHA512 83ccf6124e388aefcdece391d12daf6a337d52b7bb794268effd2abc9bdab6b00d935d01cac774b4a66704578160e44617b16a5b8b9ef821012d419848145e9c |
27 |
|
28 |
diff --git a/dev-python/gpep517/gpep517-1.ebuild b/dev-python/gpep517/gpep517-1.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..0fbf09a24da9 |
31 |
--- /dev/null |
32 |
+++ b/dev-python/gpep517/gpep517-1.ebuild |
33 |
@@ -0,0 +1,44 @@ |
34 |
+# Copyright 2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+# please keep this ebuild at EAPI 7 -- sys-apps/portage dep |
38 |
+EAPI=7 |
39 |
+ |
40 |
+DISTUTILS_USE_SETUPTOOLS=manual |
41 |
+PYTHON_COMPAT=( pypy3 python3_{8..10} ) |
42 |
+ |
43 |
+inherit distutils-r1 |
44 |
+ |
45 |
+DESCRIPTION="A backend script to aid installing Python packages in Gentoo" |
46 |
+HOMEPAGE=" |
47 |
+ https://pypi.org/project/gpep517/ |
48 |
+ https://github.com/mgorny/gpep517/ |
49 |
+" |
50 |
+SRC_URI=" |
51 |
+ https://github.com/mgorny/gpep517/archive/v${PV}.tar.gz |
52 |
+ -> ${P}.gh.tar.gz |
53 |
+" |
54 |
+ |
55 |
+LICENSE="MIT" |
56 |
+SLOT="0" |
57 |
+KEYWORDS="~amd64" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ >=dev-python/installer-0.5.0[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/tomli-1.2.3[${PYTHON_USEDEP}] |
62 |
+" |
63 |
+ |
64 |
+distutils_enable_tests pytest |
65 |
+ |
66 |
+# do not use any build system to avoid circular deps |
67 |
+python_compile() { :; } |
68 |
+ |
69 |
+python_install() { |
70 |
+ python_domodule gpep517 |
71 |
+ python_newscript - gpep517 <<-EOF |
72 |
+ #!/usr/bin/python |
73 |
+ import sys |
74 |
+ from gpep517.__main__ import main |
75 |
+ sys.exit(main()) |
76 |
+ EOF |
77 |
+} |
78 |
|
79 |
diff --git a/dev-python/gpep517/metadata.xml b/dev-python/gpep517/metadata.xml |
80 |
new file mode 100644 |
81 |
index 000000000000..d505639e0963 |
82 |
--- /dev/null |
83 |
+++ b/dev-python/gpep517/metadata.xml |
84 |
@@ -0,0 +1,12 @@ |
85 |
+<?xml version="1.0" encoding="UTF-8"?> |
86 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
87 |
+<pkgmetadata> |
88 |
+ <maintainer type="person"> |
89 |
+ <email>mgorny@g.o</email> |
90 |
+ <name>Michał Górny</name> |
91 |
+ </maintainer> |
92 |
+ <upstream> |
93 |
+ <remote-id type="github">mgorny/gpep517</remote-id> |
94 |
+ <remote-id type="pypi">gpep517</remote-id> |
95 |
+ </upstream> |
96 |
+</pkgmetadata> |