1 |
commit: d06aef13b23be539a5a459b1ac07d1ed4dcacc37 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 3 22:00:57 2019 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 3 23:36:24 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d06aef13 |
7 |
|
8 |
dev-python/jaraco-collections: bump to 2.0, switches to pkgutil |
9 |
|
10 |
Remove PDEPEND on dev-python/jaraco-text and make it a normal dependency |
11 |
because it no longer requires dev-python/jaraco-collections since v3.0. |
12 |
|
13 |
Package-Manager: Portage-2.3.67, Repoman-2.3.16 |
14 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
15 |
|
16 |
dev-python/jaraco-collections/Manifest | 1 + |
17 |
.../jaraco-collections-2.0.ebuild | 60 ++++++++++++++++++++++ |
18 |
2 files changed, 61 insertions(+) |
19 |
|
20 |
diff --git a/dev-python/jaraco-collections/Manifest b/dev-python/jaraco-collections/Manifest |
21 |
index c921c88e0bc..dbfc06ca2a2 100644 |
22 |
--- a/dev-python/jaraco-collections/Manifest |
23 |
+++ b/dev-python/jaraco-collections/Manifest |
24 |
@@ -1,2 +1,3 @@ |
25 |
DIST jaraco.collections-1.5.3.tar.gz 11669 BLAKE2B 2dbcac99edf28f4544e354724f8d95c0cbcdd793b33bcf892b403e72410f3b5b72b6eae62a49f0e56991cfb19b4ad5da0e95a3327f11fe5ae885e9a0029a92be SHA512 6e1fa88b468b9d971a7a302ebfdf8b9762404c2fdc1b003eee6653704b9f385f0f2e0c84ac075bdc81f8693195781cc5532c4adb31bcabd87974624a14e287ed |
26 |
DIST jaraco.collections-1.6.0.tar.gz 11991 BLAKE2B 8f8b3da18641d6348a28ef3792afabd504771f31f1de17ebb621aff493cbb7357e11d49d8b3f4ab4fc7b9a662986d10a90d20734cd802c6d34be1d169390aa96 SHA512 9bd472b51668129f12fabb90b86ed929e135a17217bc850d67d945a786d1952cf1f11b0cd8f5d4ae16b3b19ac35cf87e0584df622877185362e93ba3915dbe6b |
27 |
+DIST jaraco.collections-2.0.tar.gz 15102 BLAKE2B 61fa35070b2342f95b3e6e571417ab2cd62be439250d8f2077b379316488a4af62d943248bad80d0a72d9aab3010c6982fb4a51fa4ddc574ab72943e37ddeb6b SHA512 1cc3482bddf6647b7fd183f091db7fe89e9ad1ac416716a918626134835837c2ed29d533bc00052a514d64c94343a070b9b501984b3dcc5caac87066d9c335cf |
28 |
|
29 |
diff --git a/dev-python/jaraco-collections/jaraco-collections-2.0.ebuild b/dev-python/jaraco-collections/jaraco-collections-2.0.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..d8aefffd077 |
32 |
--- /dev/null |
33 |
+++ b/dev-python/jaraco-collections/jaraco-collections-2.0.ebuild |
34 |
@@ -0,0 +1,60 @@ |
35 |
+# Copyright 1999-2019 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python{2_7,3_{5,6,7}} ) |
41 |
+ |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+MY_PN="${PN/-/.}" |
45 |
+DESCRIPTION="Models and classes to supplement the stdlib collections module" |
46 |
+HOMEPAGE="https://github.com/jaraco/jaraco.collections" |
47 |
+SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+IUSE="doc test" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ >=dev-python/namespace-jaraco-2[${PYTHON_USEDEP}] |
56 |
+ dev-python/jaraco-classes[${PYTHON_USEDEP}] |
57 |
+ dev-python/jaraco-text[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/six-1.7.0[${PYTHON_USEDEP}] |
59 |
+" |
60 |
+DEPEND=" |
61 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}] |
63 |
+ doc? ( |
64 |
+ >=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/rst-linker-1.9[${PYTHON_USEDEP}] |
66 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
67 |
+ ) |
68 |
+ test? ( |
69 |
+ ${RDEPEND} |
70 |
+ >=dev-python/pytest-2.8[${PYTHON_USEDEP}] |
71 |
+ ) |
72 |
+" |
73 |
+ |
74 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
75 |
+ |
76 |
+python_compile_all() { |
77 |
+ if use doc; then |
78 |
+ sphinx-build docs docs/_build/html || die |
79 |
+ HTML_DOCS=( docs/_build/html/. ) |
80 |
+ fi |
81 |
+} |
82 |
+ |
83 |
+python_test() { |
84 |
+ # Override pytest options to skip flake8 |
85 |
+ PYTHONPATH=. pytest -vv --override-ini="addopts=--doctest-modules" \ |
86 |
+ || die "tests failed with ${EPYTHON}" |
87 |
+} |
88 |
+ |
89 |
+# https://wiki.gentoo.org/wiki/Project:Python/Namespace_packages#File_collisions_between_pkgutil-style_packages |
90 |
+python_install() { |
91 |
+ rm "${BUILD_DIR}"/lib/jaraco/__init__.py || die |
92 |
+ # note: eclass may default to --skip-build in the future |
93 |
+ distutils-r1_python_install --skip-build |
94 |
+} |