1 |
commit: 557b0509d335b3bd7d7996d22ccfb219673e61a1 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 4 22:24:52 2020 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 4 22:45:25 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=557b0509 |
7 |
|
8 |
dev-python/jaraco-packaging: add Python 3.9 support, fix deps |
9 |
|
10 |
importlib.metadata is part of Python >= 3.8's stdlib. |
11 |
|
12 |
Package-Manager: Portage-3.0.3, Repoman-2.3.23 |
13 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
14 |
|
15 |
.../jaraco-packaging-8.1.0-r1.ebuild | 52 ++++++++++++++++++++++ |
16 |
1 file changed, 52 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/jaraco-packaging/jaraco-packaging-8.1.0-r1.ebuild b/dev-python/jaraco-packaging/jaraco-packaging-8.1.0-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..a80e08b70b1 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/jaraco-packaging/jaraco-packaging-8.1.0-r1.ebuild |
23 |
@@ -0,0 +1,52 @@ |
24 |
+# Copyright 1999-2020 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+PYTHON_COMPAT=( pypy3 python3_{6,7,8,9} ) |
30 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
31 |
+ |
32 |
+inherit distutils-r1 |
33 |
+ |
34 |
+MY_PN="${PN/-/.}" |
35 |
+DESCRIPTION="Tools to supplement packaging Python releases" |
36 |
+HOMEPAGE="https://github.com/jaraco/jaraco.packaging" |
37 |
+SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" |
38 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
39 |
+ |
40 |
+LICENSE="MIT" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
43 |
+IUSE="test" |
44 |
+RESTRICT="!test? ( test )" |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ $(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' pypy3 python3_{6,7}) |
48 |
+ >=dev-python/namespace-jaraco-2[${PYTHON_USEDEP}] |
49 |
+ >=dev-python/six-1.4[${PYTHON_USEDEP}] |
50 |
+" |
51 |
+DEPEND=" |
52 |
+ dev-python/toml[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}] |
54 |
+ test? ( |
55 |
+ ${RDEPEND} |
56 |
+ >=dev-python/pytest-2.8[${PYTHON_USEDEP}] |
57 |
+ ) |
58 |
+" |
59 |
+ |
60 |
+distutils_enable_sphinx docs '>=dev-python/rst-linker-1.9' |
61 |
+ |
62 |
+python_test() { |
63 |
+ # Skip one test which requires network access |
64 |
+ # Override pytest options to skip flake8 |
65 |
+ PYTHONPATH=. pytest -vv -k "not test_revived_distribution" \ |
66 |
+ --override-ini="addopts=--doctest-modules" \ |
67 |
+ || die "tests failed with ${EPYTHON}" |
68 |
+} |
69 |
+ |
70 |
+# https://wiki.gentoo.org/wiki/Project:Python/Namespace_packages#File_collisions_between_pkgutil-style_packages |
71 |
+python_install() { |
72 |
+ rm "${BUILD_DIR}"/lib/jaraco/__init__.py || die |
73 |
+ # note: eclass may default to --skip-build in the future |
74 |
+ distutils-r1_python_install --skip-build |
75 |
+} |