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-functools/
Date: Wed, 04 Jul 2018 20:29:58
Message-Id: 1530736188.86cd6883fad465a19c481b7ea697419edc4b9c15.sbraz@gentoo
1 commit: 86cd6883fad465a19c481b7ea697419edc4b9c15
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 4 19:46:19 2018 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 4 20:29:48 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86cd6883
7
8 dev-python/jaraco-functools: bump to 1.20
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 dev-python/jaraco-functools/Manifest | 1 +
13 .../jaraco-functools/jaraco-functools-1.20.ebuild | 60 ++++++++++++++++++++++
14 2 files changed, 61 insertions(+)
15
16 diff --git a/dev-python/jaraco-functools/Manifest b/dev-python/jaraco-functools/Manifest
17 index 9e081706ca7..b7319d7b87b 100644
18 --- a/dev-python/jaraco-functools/Manifest
19 +++ b/dev-python/jaraco-functools/Manifest
20 @@ -1,2 +1,3 @@
21 DIST jaraco.functools-1.15.1.tar.gz 8744 BLAKE2B 191e37d977256fe92158cb2057af42a62f86a866428719fddc8ef6487f55c6ca6403e9dc41c8bb4370752182653574f9d9ddba15878f76c48fb176de6b25667f SHA512 0b65bc36a2338775d4879dd7502b50b930a12458512061ceba65ada86df2658f4fcce4a4e523580239b302a34a8bf90adcfdeaf8f0b2169d704a3a74457424bb
22 DIST jaraco.functools-1.19.tar.gz 10588 BLAKE2B c71eb4e0c611f6a0bd82e04cacb7933961ba5e50091439c274bd8ceeda68b69789423994fe43f44af6cdd643b7a04418bc32ce2f937d118520298a019c5c6638 SHA512 7fbf1956ff8a132021e1f7fae5e98f40199a5d0e705b08b44ad5b2588fdd7d1088db9d7457b985c1852b50285a8f03cc9795fff0c4f53f9155f7c8ec371ff307
23 +DIST jaraco.functools-1.20.tar.gz 11063 BLAKE2B c202c3cda86c0f32fb3299a083ebb8d584eec444d9d8f0eff536f5e663634dab03c5831aef18d683dddde7eafff311b66a724d9004ad46f5ef92e90df16a9c7d SHA512 ba17b567dfcadb0d8ff1cc7a6ed07f2a23abfd42e73f3d815a6fa19d9be97d6af0c90bff7fb5e7ef67012ea5d931e9babc963da8a7105ba6a92d5c43c7126e04
24
25 diff --git a/dev-python/jaraco-functools/jaraco-functools-1.20.ebuild b/dev-python/jaraco-functools/jaraco-functools-1.20.ebuild
26 new file mode 100644
27 index 00000000000..74eb81aba71
28 --- /dev/null
29 +++ b/dev-python/jaraco-functools/jaraco-functools-1.20.ebuild
30 @@ -0,0 +1,60 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( pypy3 python{2_7,3_{4,5,6}} )
37 +
38 +inherit distutils-r1
39 +
40 +MY_PN="${PN/-/.}"
41 +DESCRIPTION="Additional functions used by other projects by developer jaraco"
42 +HOMEPAGE="https://github.com/jaraco/jaraco.functools"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="doc test"
49 +
50 +RDEPEND="
51 + dev-python/namespace-jaraco[${PYTHON_USEDEP}]
52 + dev-python/more-itertools[${PYTHON_USEDEP}]
53 + $(python_gen_cond_dep 'dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}]' python2_7)
54 +"
55 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
56 + >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}]
57 + doc? (
58 + >=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}]
59 + >=dev-python/rst-linker-1.9[${PYTHON_USEDEP}]
60 + dev-python/sphinx[${PYTHON_USEDEP}]
61 + )
62 + test? (
63 + ${RDEPEND}
64 + >=dev-python/pytest-2.8[${PYTHON_USEDEP}]
65 + dev-python/backports-unittest-mock[${PYTHON_USEDEP}]
66 + dev-python/jaraco-classes[${PYTHON_USEDEP}]
67 + dev-python/six[${PYTHON_USEDEP}]
68 + )
69 +"
70 +
71 +S="${WORKDIR}/${MY_PN}-${PV}"
72 +
73 +python_compile_all() {
74 + if use doc; then
75 + cd docs || die
76 + sphinx-build . _build/html || die
77 + HTML_DOCS=( docs/_build/html/. )
78 + fi
79 +}
80 +
81 +python_test() {
82 + # Override pytest options to skip flake8
83 + PYTHONPATH=. py.test --override-ini="addopts=--doctest-modules" \
84 + || die "tests failed with ${EPYTHON}"
85 + }
86 +
87 +python_install_all() {
88 + distutils-r1_python_install_all
89 + find "${ED}" -name '*.pth' -delete || die
90 +}