1 |
commit: c1865d7c975ba9f53a15be77f18645c3aa9a74a3 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 7 09:48:34 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 7 09:48:34 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1865d7c |
7 |
|
8 |
dev-python/gpep517: Bump to v2 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/gpep517/Manifest | 1 + |
13 |
dev-python/gpep517/gpep517-2.ebuild | 44 +++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 45 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/gpep517/Manifest b/dev-python/gpep517/Manifest |
17 |
index f99e0b39a4c3..131c95dfdddd 100644 |
18 |
--- a/dev-python/gpep517/Manifest |
19 |
+++ b/dev-python/gpep517/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST gpep517-1.gh.tar.gz 6871 BLAKE2B a298a445cb24dbc708985ebe0be266ed6549525a2b9d250ddb53129502f04a442927ca4c29445f4caf4ada82e106e5498c9586e78dd8a4bd676c7aff747544b6 SHA512 83ccf6124e388aefcdece391d12daf6a337d52b7bb794268effd2abc9bdab6b00d935d01cac774b4a66704578160e44617b16a5b8b9ef821012d419848145e9c |
22 |
+DIST gpep517-2.gh.tar.gz 6904 BLAKE2B 5d6f8c02805fec0b9c9929a133817be5d06c76ca2dd5ecd6b59d04eca1ca746b2a63a84df29c929ca06a026eef741a2d872abede6f1d0ac3719ff2005cf20043 SHA512 2b1fce7193a5c03175c34251987f42fe82c79a6eef324759fe5728e0f3b66a10f8aa644ece2193c912e9977f21b14a28fe5c9443e3b01ca8cdacf862afe0838c |
23 |
|
24 |
diff --git a/dev-python/gpep517/gpep517-2.ebuild b/dev-python/gpep517/gpep517-2.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..0fbf09a24da9 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/gpep517/gpep517-2.ebuild |
29 |
@@ -0,0 +1,44 @@ |
30 |
+# Copyright 2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+# please keep this ebuild at EAPI 7 -- sys-apps/portage dep |
34 |
+EAPI=7 |
35 |
+ |
36 |
+DISTUTILS_USE_SETUPTOOLS=manual |
37 |
+PYTHON_COMPAT=( pypy3 python3_{8..10} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="A backend script to aid installing Python packages in Gentoo" |
42 |
+HOMEPAGE=" |
43 |
+ https://pypi.org/project/gpep517/ |
44 |
+ https://github.com/mgorny/gpep517/ |
45 |
+" |
46 |
+SRC_URI=" |
47 |
+ https://github.com/mgorny/gpep517/archive/v${PV}.tar.gz |
48 |
+ -> ${P}.gh.tar.gz |
49 |
+" |
50 |
+ |
51 |
+LICENSE="MIT" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ >=dev-python/installer-0.5.0[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/tomli-1.2.3[${PYTHON_USEDEP}] |
58 |
+" |
59 |
+ |
60 |
+distutils_enable_tests pytest |
61 |
+ |
62 |
+# do not use any build system to avoid circular deps |
63 |
+python_compile() { :; } |
64 |
+ |
65 |
+python_install() { |
66 |
+ python_domodule gpep517 |
67 |
+ python_newscript - gpep517 <<-EOF |
68 |
+ #!/usr/bin/python |
69 |
+ import sys |
70 |
+ from gpep517.__main__ import main |
71 |
+ sys.exit(main()) |
72 |
+ EOF |
73 |
+} |