Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pkginfo/
Date: Sat, 24 Mar 2018 07:58:41
Message-Id: 1521878305.70c55ce0b967f0a516450c877cb2881209848d34.radhermit@gentoo
1 commit: 70c55ce0b967f0a516450c877cb2881209848d34
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 24 07:45:59 2018 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 24 07:58:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70c55ce0
7
8 dev-python/pkginfo: version bump to 1.4.2
9
10 dev-python/pkginfo/Manifest | 1 +
11 dev-python/pkginfo/pkginfo-1.4.2.ebuild | 47 +++++++++++++++++++++++++++++++++
12 2 files changed, 48 insertions(+)
13
14 diff --git a/dev-python/pkginfo/Manifest b/dev-python/pkginfo/Manifest
15 index 0e770c9b936..0968a82b87f 100644
16 --- a/dev-python/pkginfo/Manifest
17 +++ b/dev-python/pkginfo/Manifest
18 @@ -1 +1,2 @@
19 DIST pkginfo-1.2.1.tar.gz 31072 BLAKE2B 57ce5f6147b97af513dfdc6137180e5561822096cdbd21b673c49522384622c58f9eba8c65f24b54bc1e76dc0c6feede5d43e8aac945d94ffe79ea220e830470 SHA512 8a530a164befdcbc6f1f550e106880e14e9d2c762a5e1055f926ccf0228d9e2312f11598454ef015e97dccb78ac7aeb7309f34279590cd318c19c2bd9a29ed2a
20 +DIST pkginfo-1.4.2.tar.gz 33539 BLAKE2B d3cfc6bf7a9e748902b1f63434c745d8abf4e144c0a2b5d7a90236bfc2ce7f94922b0e08e5a08b13ba2025159bd90fecee25d9abdb283e7d52de0d34386aba59 SHA512 536628a2a2472e999695a115449a76f971453aea7ac3a08f10d9b08dfdf4a7b8e67c6010c6f18d300472a6afc8dff33331c955cc2f7bdb357504cd6a36390da3
21
22 diff --git a/dev-python/pkginfo/pkginfo-1.4.2.ebuild b/dev-python/pkginfo/pkginfo-1.4.2.ebuild
23 new file mode 100644
24 index 00000000000..a006ae9cbca
25 --- /dev/null
26 +++ b/dev-python/pkginfo/pkginfo-1.4.2.ebuild
27 @@ -0,0 +1,47 @@
28 +# Copyright 1999-2018 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=6
32 +
33 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
34 +
35 +inherit distutils-r1
36 +
37 +DESCRIPTION="Provides an API for querying the distutils metadata written in a PKG-INFO file"
38 +HOMEPAGE="https://pypi.python.org/pypi/pkginfo"
39 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
40 +
41 +LICENSE="MIT"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
44 +IUSE="doc"
45 +
46 +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
47 +DEPEND="${RDEPEND}
48 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
49 +
50 +python_prepare_all() {
51 + # Disable tests that seek to read the version of pkginfo from an installed state
52 + # These test will still become installed and testable once installed
53 + sed -e 's:test_w_directory_no_EGG_INFO:_&:' \
54 + -e 's:test_w_module_and_metadata_version:_&:' \
55 + -e 's:test_w_package_name_and_metadata_version:_&:' \
56 + -i pkginfo/tests/test_utils.py || die
57 + sed -e 's:test_ctor_w_path_nested_egg_info:_&:' \
58 + -i pkginfo/tests/test_develop.py || die
59 +
60 + distutils-r1_python_prepare_all
61 +}
62 +
63 +python_compile_all() {
64 + use doc && emake -C docs html
65 +}
66 +
67 +python_test() {
68 + "${PYTHON}" -m unittest discover || die "Tests failed under ${EPYTHON}"
69 +}
70 +
71 +python_install_all() {
72 + use doc && local HTML_DOCS=( docs/.build/html/. )
73 + distutils-r1_python_install_all
74 +}