1 |
commit: 4ac113fa643c26426ccc245c06886781cb56b89f |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 29 23:34:22 2022 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 31 01:28:06 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ac113fa |
7 |
|
8 |
dev-python/setuptools-declarative-requirements: initial import |
9 |
|
10 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
11 |
|
12 |
.../setuptools-declarative-requirements/Manifest | 1 + |
13 |
.../metadata.xml | 11 +++++ |
14 |
...etuptools-declarative-requirements-1.2.0.ebuild | 47 ++++++++++++++++++++++ |
15 |
3 files changed, 59 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/setuptools-declarative-requirements/Manifest b/dev-python/setuptools-declarative-requirements/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000000..394277a2e4b2 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/setuptools-declarative-requirements/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST setuptools-declarative-requirements-1.2.0.tar.gz 17936 BLAKE2B a5be2b64fc22d5a45136ec2b98c1d4cc6c20e17dc81070d12948b6f536a517ec8a660c105dfc13a4319d1de54409fb4f7a4c6bacaf1291afa13c7ecc27fd933f SHA512 ce0eeb8692ff2ea80db91cad981853da74c0ca80f58b698753de92f6df3ef5e1c158e314d0ac4d0b4fa99a2ad8ee2d7d80a9d1a13f334966c948dee1a0ae3d98 |
24 |
|
25 |
diff --git a/dev-python/setuptools-declarative-requirements/metadata.xml b/dev-python/setuptools-declarative-requirements/metadata.xml |
26 |
new file mode 100644 |
27 |
index 000000000000..5e3f363fee8e |
28 |
--- /dev/null |
29 |
+++ b/dev-python/setuptools-declarative-requirements/metadata.xml |
30 |
@@ -0,0 +1,11 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="person"> |
35 |
+ <name>Patrick McLean</name> |
36 |
+ <email>chutzpah@g.o</email> |
37 |
+ </maintainer> |
38 |
+ <upstream> |
39 |
+ <remote-id type="pypi">setuptools-declarative-requirements</remote-id> |
40 |
+ </upstream> |
41 |
+</pkgmetadata> |
42 |
|
43 |
diff --git a/dev-python/setuptools-declarative-requirements/setuptools-declarative-requirements-1.2.0.ebuild b/dev-python/setuptools-declarative-requirements/setuptools-declarative-requirements-1.2.0.ebuild |
44 |
new file mode 100644 |
45 |
index 000000000000..037a0f39edb3 |
46 |
--- /dev/null |
47 |
+++ b/dev-python/setuptools-declarative-requirements/setuptools-declarative-requirements-1.2.0.ebuild |
48 |
@@ -0,0 +1,47 @@ |
49 |
+# Copyright 2022 Gentoo Authors |
50 |
+# Distributed under the terms of the GNU General Public License v2 |
51 |
+ |
52 |
+EAPI=8 |
53 |
+ |
54 |
+DISTUTILS_USE_PEP517=setuptools |
55 |
+PYTHON_COMPAT=( pypy3 python3_{8..10} ) |
56 |
+inherit distutils-r1 |
57 |
+ |
58 |
+DESCRIPTION="Requirements Support For Setuptools Declarative setup.cfg" |
59 |
+HOMEPAGE=" |
60 |
+ https://pypi.org/project/setuptools-declarative-requirements/ |
61 |
+ https://github.com/s0undt3ch/setuptools-declarative-requirements |
62 |
+" |
63 |
+SRC_URI="https://github.com/s0undt3ch/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
64 |
+ |
65 |
+LICENSE="Apache-2.0" |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~amd64" |
68 |
+ |
69 |
+RDEPEND=" |
70 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
71 |
+" |
72 |
+BDEPEND=" |
73 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
74 |
+ test? ( |
75 |
+ dev-python/pypiserver[${PYTHON_USEDEP}] |
76 |
+ ) |
77 |
+" |
78 |
+ |
79 |
+distutils_enable_tests pytest |
80 |
+ |
81 |
+python_prepare_all() { |
82 |
+ sed -e "s/use_scm_version=True/version='${PV}'/" -i setup.py || die |
83 |
+ sed -e "/setuptools_scm/ d" -i setup.cfg || die |
84 |
+ printf '__version__ = "${PV}"\n' > declarative_requirements/version.py || die |
85 |
+ sed -e "s/localhost/127.0.0.1/g" -i tests/conftest.py || die |
86 |
+ rm pyproject.toml || die |
87 |
+ |
88 |
+ distutils-r1_python_prepare_all |
89 |
+} |
90 |
+ |
91 |
+python_test() { |
92 |
+ PIP_DEFAULT_TIMEOUT=3 \ |
93 |
+ PIP_INDEX_URL="http://127.0.0.1:8080" \ |
94 |
+ epytest -k 'not sdist' |
95 |
+} |