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-stream/
Date: Wed, 03 Jul 2019 21:48:43
Message-Id: 1562190462.08f770ca318c625bbefba001d30ce00d5945831d.sbraz@gentoo
1 commit: 08f770ca318c625bbefba001d30ce00d5945831d
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 3 15:19:14 2019 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 3 21:47:42 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08f770ca
7
8 dev-python/jaraco-stream: bump to 2.0, switches to pkgutil
9
10 Package-Manager: Portage-2.3.67, Repoman-2.3.16
11 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
12
13 dev-python/jaraco-stream/Manifest | 1 +
14 dev-python/jaraco-stream/jaraco-stream-2.0.ebuild | 61 +++++++++++++++++++++++
15 2 files changed, 62 insertions(+)
16
17 diff --git a/dev-python/jaraco-stream/Manifest b/dev-python/jaraco-stream/Manifest
18 index 0f2a55a3ac9..7ac69960f9a 100644
19 --- a/dev-python/jaraco-stream/Manifest
20 +++ b/dev-python/jaraco-stream/Manifest
21 @@ -1,3 +1,4 @@
22 DIST jaraco.stream-1.1.1.tar.gz 6115 BLAKE2B 0994abe3c9688722c76e656e87166fa60d4bf45fb22ccc826227629bffb60fe0be78bb7a5f9f00b8766b5ce26d641d4b347d6c0fc73c426b424c230cb7d625b6 SHA512 65c8d1652a0d63506cc3cadee590664e6a99e2f770d26f0cea1dce07c54ffe308e1df8619bc728ea81c5ac43c9c6731fe9f71e5d38d2674c4e0d63d635bb5112
23 DIST jaraco.stream-1.1.tar.gz 4887 BLAKE2B 6942db399e3821b176e5c966647aa9337e31dbfe533cbd790b9531fb943b1e5fdb05fa350e9dabdff00817e59b434a0770de32f871176dea34042acf6e2f368a SHA512 5af385084623fbdfe86e9fb620f49b097dee164638bc99622ba557a26cda591e856f1fc4134bc7b73b8f7b61afaf2607686fe20c59c582324a65c22f39d74a13
24 DIST jaraco.stream-1.2.tar.gz 7696 BLAKE2B fcc1aa8d26da17635b9ee7c68c278ae572cbe36a108cb30f5eb98c7ebfd2255aad499bed38ea044b28e820646b92e64602db0e2cdfc430169035882f7b6abe9b SHA512 47a96c1de12eb64e250c85d97429218606dc9bb212cf7b97e579763dd901ee063711c00307b7442be400856d3fd4e5994afbe1cb91a99e233541ffd7ff4024b9
25 +DIST jaraco.stream-2.0.tar.gz 11061 BLAKE2B 86cc9958e11421fe839551e029f839c16a12b80d329466b44224d145be6c2a15a63d03f426a9b8d1510249ea6c129e892dcfec41a32dd5c3c3a3b66acc21030f SHA512 d379d07772d739abb275cfc8ed7809583c728af695294b9d12ae1276add360b9559de64104cd20d05d82a3250237ae1f6eb23420970a95e9fdf6346ef9312331
26
27 diff --git a/dev-python/jaraco-stream/jaraco-stream-2.0.ebuild b/dev-python/jaraco-stream/jaraco-stream-2.0.ebuild
28 new file mode 100644
29 index 00000000000..35a90f85436
30 --- /dev/null
31 +++ b/dev-python/jaraco-stream/jaraco-stream-2.0.ebuild
32 @@ -0,0 +1,61 @@
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=( pypy{,3} python{2_7,3_{5,6,7}} )
39 +
40 +inherit distutils-r1
41 +
42 +MY_PN="${PN/-/.}"
43 +DESCRIPTION="Routines for handling streaming data"
44 +HOMEPAGE="https://github.com/jaraco/jaraco.stream"
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="doc test"
51 +
52 +RDEPEND="
53 + >=dev-python/namespace-jaraco-2[${PYTHON_USEDEP}]
54 + dev-python/six[${PYTHON_USEDEP}]
55 +"
56 +DEPEND="
57 + dev-python/setuptools[${PYTHON_USEDEP}]
58 + >=dev-python/setuptools_scm-1.9[${PYTHON_USEDEP}]
59 + test? (
60 + ${RDEPEND}
61 + >=dev-python/pytest-2.8[${PYTHON_USEDEP}]
62 + dev-python/more-itertools[${PYTHON_USEDEP}]
63 + )
64 + doc? (
65 + >=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}]
66 + >=dev-python/rst-linker-1.9[${PYTHON_USEDEP}]
67 + dev-python/sphinx[${PYTHON_USEDEP}]
68 + )
69 +"
70 +
71 +S="${WORKDIR}/${MY_PN}-${PV}"
72 +
73 +python_compile_all() {
74 + if use doc; then
75 + sphinx-build docs docs/_build/html || die
76 + HTML_DOCS=( docs/_build/html/. )
77 + fi
78 +}
79 +
80 +python_test() {
81 + # Skip one test which requires network access
82 + # Override pytest options to skip flake8
83 + PYTHONPATH=. pytest -vv --ignore=jaraco/stream/test_gzip.py \
84 + --override-ini="addopts=--doctest-modules" \
85 + || die "tests failed with ${EPYTHON}"
86 +}
87 +
88 +# https://wiki.gentoo.org/wiki/Project:Python/Namespace_packages#File_collisions_between_pkgutil-style_packages
89 +python_install() {
90 + rm "${BUILD_DIR}"/lib/jaraco/__init__.py || die
91 + # note: eclass may default to --skip-build in the future
92 + distutils-r1_python_install --skip-build
93 +}