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/importlib_metadata/
Date: Tue, 17 Sep 2019 09:59:18
Message-Id: 1568714346.60127517fece2aa5b0b362377df908ab73ae5ac6.sbraz@gentoo
1 commit: 60127517fece2aa5b0b362377df908ab73ae5ac6
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 17 09:49:30 2019 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 17 09:59:06 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60127517
7
8 dev-python/importlib_metadata: bump to 0.23
9
10 Package-Manager: Portage-2.3.73, Repoman-2.3.17
11 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
12
13 dev-python/importlib_metadata/Manifest | 1 +
14 .../importlib_metadata-0.23.ebuild | 52 ++++++++++++++++++++++
15 2 files changed, 53 insertions(+)
16
17 diff --git a/dev-python/importlib_metadata/Manifest b/dev-python/importlib_metadata/Manifest
18 index c5426bac083..95d1285e012 100644
19 --- a/dev-python/importlib_metadata/Manifest
20 +++ b/dev-python/importlib_metadata/Manifest
21 @@ -1,2 +1,3 @@
22 DIST importlib_metadata-0.21.tar.gz 24693 BLAKE2B bf57095bbb5eea1d09c5af90ce33946431bdad08bdfc32a8eabb29fc21ddc0f8b450631bba3eb7f2fe3635dfa0130d4bb7449cc2975b7e4740b945972560d5fc SHA512 f20e05c7806a08417020573b0e1d6c57009325c7e21dba46d18c93e24d8c696d66d4628b83093815f443d7f0797ca5a946f1e5476037007c04378c24cca0a2be
23 DIST importlib_metadata-0.22.tar.gz 24951 BLAKE2B 63ffee037f1c6ebf47d6c99fa7ff7974b629869b272709bfdf700d34c6f507031b79b5d691c95a69204ec3df28765af00eaa07c1d96b590e983202be0fc5f0ef SHA512 73178fda41a8ac71f45e8c6220f43b757b53c47bd9fb8295a2a510537436bbc2c7b1451608ca6fc0bda687d3e38a6132950bc9bdc8d0fc3e234f510f2026c7f0
24 +DIST importlib_metadata-0.23.tar.gz 25172 BLAKE2B 8b88081971c658a01fd1c47cc664e54f4b42eb209ac1ce00af1dad5c15f66b661b20fc287abf818d7e4ef2e92447bea713fac6fb89a98d5ea7ba93e74134e4d6 SHA512 56594dfd67733842d83547770a09e12b4e4e3c000b7c9743206e13e4629906bb7271065e03c387f5114bac7f673fc17594d2ef90af23cd34b7ededecaf3fd47a
25
26 diff --git a/dev-python/importlib_metadata/importlib_metadata-0.23.ebuild b/dev-python/importlib_metadata/importlib_metadata-0.23.ebuild
27 new file mode 100644
28 index 00000000000..665f1f6de4f
29 --- /dev/null
30 +++ b/dev-python/importlib_metadata/importlib_metadata-0.23.ebuild
31 @@ -0,0 +1,52 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( pypy{,3} python{2_7,3_{5,6,7}} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Read metadata from Python packages"
42 +HOMEPAGE="https://importlib-metadata.readthedocs.io/"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
48 +IUSE="doc test"
49 +
50 +RDEPEND="
51 + dev-python/zipp[${PYTHON_USEDEP}]
52 + $(python_gen_cond_dep '>=dev-python/configparser-3.5[${PYTHON_USEDEP}]' -2)
53 + $(python_gen_cond_dep 'dev-python/contextlib2[${PYTHON_USEDEP}]' -2)
54 + $(python_gen_cond_dep 'dev-python/pathlib2[${PYTHON_USEDEP}]' -2)
55 +"
56 +BDEPEND="
57 + dev-python/setuptools[${PYTHON_USEDEP}]
58 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
59 + test? (
60 + ${RDEPEND}
61 + $(python_gen_cond_dep 'dev-python/importlib_resources[${PYTHON_USEDEP}]' pypy pypy3 python2_7 python3_5 python3_6)
62 + dev-python/packaging[${PYTHON_USEDEP}]
63 + )
64 + doc? (
65 + >=dev-python/rst-linker-1.9[${PYTHON_USEDEP}]
66 + dev-python/sphinx[${PYTHON_USEDEP}]
67 + )
68 +"
69 +python_prepare_all() {
70 + sed -i "/'sphinx.ext.intersphinx'/d" ${PN}/docs/conf.py || die
71 + distutils-r1_python_prepare_all
72 +}
73 +
74 +python_compile_all() {
75 + if use doc; then
76 + sphinx-build ${PN}/docs docs/_build/html || die
77 + HTML_DOCS=( docs/_build/html/. )
78 + fi
79 +}
80 +
81 +python_test() {
82 + "${EPYTHON}" -m unittest discover -v || die "tests failed with ${EPYTHON}"
83 +}