1 |
commit: c7ab6003244a207bdfc07153bf9fb0e3bf1bf1d3 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 4 18:20:50 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 4 18:32:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7ab6003 |
7 |
|
8 |
dev-python/jaraco-packaging: Switch to PEP 517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../jaraco-packaging-8.2.1-r1.ebuild | 39 ++++++++++++++++++++++ |
13 |
1 file changed, 39 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/jaraco-packaging/jaraco-packaging-8.2.1-r1.ebuild b/dev-python/jaraco-packaging/jaraco-packaging-8.2.1-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..dee6fedf44c5 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/jaraco-packaging/jaraco-packaging-8.2.1-r1.ebuild |
20 |
@@ -0,0 +1,39 @@ |
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=( pypy3 python3_{7..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+MY_P=${P/-/.} |
32 |
+DESCRIPTION="Tools to supplement packaging Python releases" |
33 |
+HOMEPAGE="https://github.com/jaraco/jaraco.packaging" |
34 |
+SRC_URI="mirror://pypi/${MY_P::1}/${PN/-/.}/${MY_P}.tar.gz" |
35 |
+S=${WORKDIR}/${MY_P} |
36 |
+ |
37 |
+LICENSE="MIT" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
43 |
+" |
44 |
+BDEPEND=" |
45 |
+ >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}] |
46 |
+" |
47 |
+ |
48 |
+distutils_enable_sphinx docs '>=dev-python/rst-linker-1.9' |
49 |
+distutils_enable_tests pytest |
50 |
+ |
51 |
+src_test() { |
52 |
+ # create a pkgutil-style __init__.py in order to fix pytest's |
53 |
+ # determination of package paths |
54 |
+ # https://bugs.gentoo.org/832713 |
55 |
+ cat > jaraco/__init__.py <<-EOF || die |
56 |
+ __path__ = __import__('pkgutil').extend_path(__path__, __name__) |
57 |
+ EOF |
58 |
+ distutils-r1_src_test |
59 |
+} |