1 |
commit: 59111dbda788a35151b956d54f23503d9e18c548 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 21 14:01:50 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 21 14:14:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59111dbd |
7 |
|
8 |
dev-python/stevedore: Use PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/stevedore/stevedore-3.4.0-r1.ebuild | 53 ++++++++++++++++++++++++++ |
13 |
1 file changed, 53 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/stevedore/stevedore-3.4.0-r1.ebuild b/dev-python/stevedore/stevedore-3.4.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..ce201b3cecdf |
18 |
--- /dev/null |
19 |
+++ b/dev-python/stevedore/stevedore-3.4.0-r1.ebuild |
20 |
@@ -0,0 +1,53 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Manage dynamic plugins for Python applications" |
32 |
+HOMEPAGE=" |
33 |
+ https://opendev.org/openstack/stevedore/ |
34 |
+ https://github.com/openstack/stevedore/ |
35 |
+ https://pypi.org/project/stevedore/ |
36 |
+" |
37 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
38 |
+ |
39 |
+LICENSE="Apache-2.0" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc64 ~s390 ~sparc ~x86" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ >=dev-python/six-1.10.0[${PYTHON_USEDEP}] |
45 |
+" |
46 |
+BDEPEND=" |
47 |
+ >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] |
48 |
+ test? ( |
49 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
50 |
+ dev-python/testtools[${PYTHON_USEDEP}] |
51 |
+ ) |
52 |
+" |
53 |
+ |
54 |
+distutils_enable_tests unittest |
55 |
+distutils_enable_sphinx 'doc/source' \ |
56 |
+ '>=dev-python/openstackdocstheme-1.18.1' \ |
57 |
+ '>=dev-python/reno-2.5.0' \ |
58 |
+ '>=dev-python/sphinx-2.0.0' |
59 |
+ |
60 |
+python_prepare_all() { |
61 |
+ # Delete spurious data in requirements.txt |
62 |
+ sed -e '/^pbr/d' -i requirements.txt || die |
63 |
+ |
64 |
+ # Known bug in tests |
65 |
+ # https://bugs.launchpad.net/python-stevedore/+bug/1966040 |
66 |
+ sed -i -e 's:test_extras:_&:' stevedore/tests/test_extension.py || die |
67 |
+ |
68 |
+ # Also known problem, inside venv |
69 |
+ sed -i -e 's:test_disable_caching_file:_&:' \ |
70 |
+ stevedore/tests/test_cache.py || die |
71 |
+ |
72 |
+ distutils-r1_python_prepare_all |
73 |
+} |