Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jaraco-functools/
Date: Tue, 12 Jun 2018 08:46:37
Message-Id: 1528793183.7021126d11344ab70ad9f9f3c4571268fd6a3e2f.monsieurp@gentoo
1 commit: 7021126d11344ab70ad9f9f3c4571268fd6a3e2f
2 Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com>
3 AuthorDate: Sun Jun 10 14:37:20 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 12 08:46:23 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7021126d
7
8 dev-python/jaraco-functools: bump to 1.19, add PyPy3, Python 3.6.
9
10 DEPEND on dev-python/namespace-jaraco.
11
12 Package-Manager: Portage-2.3.40, Repoman-2.3.9
13
14 dev-python/jaraco-functools/Manifest | 1 +
15 .../jaraco-functools/jaraco-functools-1.19.ebuild | 59 ++++++++++++++++++++++
16 2 files changed, 60 insertions(+)
17
18 diff --git a/dev-python/jaraco-functools/Manifest b/dev-python/jaraco-functools/Manifest
19 index 6f7414eb9b8..04e34260952 100644
20 --- a/dev-python/jaraco-functools/Manifest
21 +++ b/dev-python/jaraco-functools/Manifest
22 @@ -1,2 +1,3 @@
23 DIST jaraco.functools-1.13.tar.gz 9026 BLAKE2B 0c9bdf76bf6963f5844b44afb5dd1eb86da393568794523676e33d528e38c8aef60537e34c82a2082bb232a60cbb1e8a1c08433f9115d1cc57ec6ae6d3c38631 SHA512 fb73a69811026562e1f8195960956a90757700ce13dbc00feb0ef97cf5f3c35f0334bcd7d5529ddab7c7524899bbcc6e264266a4cfe23056b50cd7a3cd9e896b
24 DIST jaraco.functools-1.15.1.tar.gz 8744 BLAKE2B 191e37d977256fe92158cb2057af42a62f86a866428719fddc8ef6487f55c6ca6403e9dc41c8bb4370752182653574f9d9ddba15878f76c48fb176de6b25667f SHA512 0b65bc36a2338775d4879dd7502b50b930a12458512061ceba65ada86df2658f4fcce4a4e523580239b302a34a8bf90adcfdeaf8f0b2169d704a3a74457424bb
25 +DIST jaraco.functools-1.19.tar.gz 10588 BLAKE2B c71eb4e0c611f6a0bd82e04cacb7933961ba5e50091439c274bd8ceeda68b69789423994fe43f44af6cdd643b7a04418bc32ce2f937d118520298a019c5c6638 SHA512 7fbf1956ff8a132021e1f7fae5e98f40199a5d0e705b08b44ad5b2588fdd7d1088db9d7457b985c1852b50285a8f03cc9795fff0c4f53f9155f7c8ec371ff307
26
27 diff --git a/dev-python/jaraco-functools/jaraco-functools-1.19.ebuild b/dev-python/jaraco-functools/jaraco-functools-1.19.ebuild
28 new file mode 100644
29 index 00000000000..a173a04dff4
30 --- /dev/null
31 +++ b/dev-python/jaraco-functools/jaraco-functools-1.19.ebuild
32 @@ -0,0 +1,59 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( pypy3 python{2_7,3_{4,5,6}} )
39 +
40 +inherit distutils-r1
41 +
42 +MY_PN="${PN/-/.}"
43 +DESCRIPTION="Additional functions used by other projects by developer jaraco"
44 +HOMEPAGE="https://github.com/jaraco/jaraco.functools"
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[${PYTHON_USEDEP}]
54 + dev-python/more-itertools[${PYTHON_USEDEP}]
55 + $(python_gen_cond_dep 'dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}]' python2_7)
56 +"
57 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
58 + >=dev-python/setuptools_scm-1.9[${PYTHON_USEDEP}]
59 + doc? (
60 + dev-python/sphinx[${PYTHON_USEDEP}]
61 + dev-python/rst-linker[${PYTHON_USEDEP}]
62 + )
63 + test? (
64 + ${RDEPEND}
65 + >=dev-python/pytest-2.8[${PYTHON_USEDEP}]
66 + dev-python/backports-unittest-mock[${PYTHON_USEDEP}]
67 + dev-python/jaraco-classes[${PYTHON_USEDEP}]
68 + dev-python/six[${PYTHON_USEDEP}]
69 + )
70 +"
71 +
72 +S="${WORKDIR}/${MY_PN}-${PV}"
73 +
74 +python_compile_all() {
75 + if use doc; then
76 + cd docs || die
77 + sphinx-build . _build/html || die
78 + HTML_DOCS=( docs/_build/html/. )
79 + fi
80 +}
81 +
82 +python_test() {
83 + # Override pytest options to skip flake8
84 + PYTHONPATH=. py.test --override-ini="addopts=--doctest-modules" \
85 + || die "tests failed with ${EPYTHON}"
86 + }
87 +
88 +python_install_all() {
89 + distutils-r1_python_install_all
90 + find "${ED}" -name '*.pth' -delete || die
91 +}