Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jaraco-collections/
Date: Tue, 31 Dec 2019 14:14:48
Message-Id: 1577801677.d46be1b0691d1dd07c73d13bfc3091fc4b23c66d.sbraz@gentoo
1 commit: d46be1b0691d1dd07c73d13bfc3091fc4b23c66d
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 31 13:09:39 2019 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 31 14:14:37 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d46be1b0
7
8 dev-python/jaraco-collections: v3.0.0, drops Py<3.6, add Py3.8
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
12
13 dev-python/jaraco-collections/Manifest | 1 +
14 .../jaraco-collections-3.0.0.ebuild | 52 ++++++++++++++++++++++
15 2 files changed, 53 insertions(+)
16
17 diff --git a/dev-python/jaraco-collections/Manifest b/dev-python/jaraco-collections/Manifest
18 index 0540b3c7f30..9d25b41303d 100644
19 --- a/dev-python/jaraco-collections/Manifest
20 +++ b/dev-python/jaraco-collections/Manifest
21 @@ -2,3 +2,4 @@ DIST jaraco.collections-1.5.3.tar.gz 11669 BLAKE2B 2dbcac99edf28f4544e354724f8d9
22 DIST jaraco.collections-1.6.0.tar.gz 11991 BLAKE2B 8f8b3da18641d6348a28ef3792afabd504771f31f1de17ebb621aff493cbb7357e11d49d8b3f4ab4fc7b9a662986d10a90d20734cd802c6d34be1d169390aa96 SHA512 9bd472b51668129f12fabb90b86ed929e135a17217bc850d67d945a786d1952cf1f11b0cd8f5d4ae16b3b19ac35cf87e0584df622877185362e93ba3915dbe6b
23 DIST jaraco.collections-2.0.tar.gz 15102 BLAKE2B 61fa35070b2342f95b3e6e571417ab2cd62be439250d8f2077b379316488a4af62d943248bad80d0a72d9aab3010c6982fb4a51fa4ddc574ab72943e37ddeb6b SHA512 1cc3482bddf6647b7fd183f091db7fe89e9ad1ac416716a918626134835837c2ed29d533bc00052a514d64c94343a070b9b501984b3dcc5caac87066d9c335cf
24 DIST jaraco.collections-2.1.tar.gz 16026 BLAKE2B b79b57b6bac1e18b6be44ea0e5ad65e46228c7fb4f47be90471cb7a2f85e4c5b10cabe47f1fc6287383b1184db85e5d286d219def3a5f5bfca10e354510d85bb SHA512 64fd3f4155dfc64152dcfb7970c26c7e3e098b0a8282556d17be2aeb80dcac6092b6dca11bf42cda268e0ddda67f2117704c81218c4b6511236e57b1f602da47
25 +DIST jaraco.collections-3.0.0.tar.gz 16439 BLAKE2B ff3690d85d91da8d88945e9ab8d16d13c7d0f67a9334f706701f9b392d8cffdd9450b2d6051a92799564cfc81310e45f50368ab729a0b68c08a9c8b0ccd9627d SHA512 c6c5d28fe4b3940c81c68bf877249805db3f508d83a0071947c7a5596d3636631df91cc6e87802b0fa6cd5c8bdd1ef2f39b924471666b44d2147cb64ad1533ad
26
27 diff --git a/dev-python/jaraco-collections/jaraco-collections-3.0.0.ebuild b/dev-python/jaraco-collections/jaraco-collections-3.0.0.ebuild
28 new file mode 100644
29 index 00000000000..a2dae1f444d
30 --- /dev/null
31 +++ b/dev-python/jaraco-collections/jaraco-collections-3.0.0.ebuild
32 @@ -0,0 +1,52 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{6,7,8} )
39 +
40 +inherit distutils-r1
41 +
42 +MY_PN="${PN/-/.}"
43 +DESCRIPTION="Models and classes to supplement the stdlib collections module"
44 +HOMEPAGE="https://github.com/jaraco/jaraco.collections"
45 +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="test"
51 +RESTRICT="!test? ( test )"
52 +
53 +# TODO: remove six when the following PR is merged:
54 +# https://github.com/jaraco/jaraco.collections/pull/5
55 +RDEPEND="
56 + >=dev-python/namespace-jaraco-2[${PYTHON_USEDEP}]
57 + dev-python/jaraco-classes[${PYTHON_USEDEP}]
58 + dev-python/jaraco-text[${PYTHON_USEDEP}]
59 + >=dev-python/six-1.7.0[${PYTHON_USEDEP}]
60 +"
61 +BDEPEND="
62 + >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}]
63 + test? (
64 + ${RDEPEND}
65 + >=dev-python/pytest-2.8[${PYTHON_USEDEP}]
66 + )
67 +"
68 +distutils_enable_sphinx docs '>=dev-python/jaraco-packaging-3.2' \
69 + '>=dev-python/rst-linker-1.9'
70 +
71 +S="${WORKDIR}/${MY_PN}-${PV}"
72 +
73 +python_test() {
74 + # Override pytest options to skip flake8
75 + PYTHONPATH=. pytest -vv --override-ini="addopts=--doctest-modules" \
76 + || die "tests failed with ${EPYTHON}"
77 +}
78 +
79 +# https://wiki.gentoo.org/wiki/Project:Python/Namespace_packages#File_collisions_between_pkgutil-style_packages
80 +python_install() {
81 + rm "${BUILD_DIR}"/lib/jaraco/__init__.py || die
82 + # note: eclass may default to --skip-build in the future
83 + distutils-r1_python_install --skip-build
84 +}