Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-debian/
Date: Mon, 13 Nov 2017 21:34:21
Message-Id: 1510608817.96e447a335d509d6f5f1318c5989cd257ffa280b.floppym@gentoo
1 commit: 96e447a335d509d6f5f1318c5989cd257ffa280b
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 13 21:33:37 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 13 21:33:37 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96e447a3
7
8 dev-python/python-debian: bump 0.1.31
9
10 Package-Manager: Portage-2.3.13_p7, Repoman-2.3.3_p87
11
12 dev-python/python-debian/Manifest | 1 +
13 .../python-debian/python-debian-0.1.28.ebuild | 4 ++--
14 ...an-0.1.28.ebuild => python-debian-0.1.31.ebuild} | 21 ++++++++++++---------
15 3 files changed, 15 insertions(+), 11 deletions(-)
16
17 diff --git a/dev-python/python-debian/Manifest b/dev-python/python-debian/Manifest
18 index 8f15bd167d3..55f23449dc1 100644
19 --- a/dev-python/python-debian/Manifest
20 +++ b/dev-python/python-debian/Manifest
21 @@ -1 +1,2 @@
22 DIST python-debian_0.1.28.tar.xz 292404 SHA256 355edeaa0e2d5a46e4b12c83c7a17386526af4fee34c1d4054fc03bd4f0adf00 SHA512 ffbc924fe2dfd5790d49aacf80109bbaa18126bb8d6c9b8ffa25e9ed8b1cdeb28024a8dc202587682088e2e558da1642385faa4afda925cbb2edf6f304592a0d WHIRLPOOL 6f1778dd6839459e86179f5f02ba0a6e69154efcfc034c1d554d940409e974b57c73839853c86b14d840f27c6a0666a11618f51a125922e58596f28aa888c8ca
23 +DIST python-debian_0.1.31.tar.xz 295720 SHA256 942968340c5b8fbabe89f1081940ec7baeca0cdbd7f82bdcbda98da511ce35b3 SHA512 d2bf071b088e53ac132f91e5983c092bddb9736b3fd1394dfd2654fb8b6af7f89982af8debba8c4af21086d4f8a3ef86393fdef25ef18bcf71dcb00a60a8ae5b WHIRLPOOL 1edd2ac1d1aa3d45d591c7f1a40f02243b188f4299cd781aa043168e9cf05ffa3dcba3ee742446835eaaa35a3cf8b4a42a3e0d39350ce99ee24f4d3b3055b779
24
25 diff --git a/dev-python/python-debian/python-debian-0.1.28.ebuild b/dev-python/python-debian/python-debian-0.1.28.ebuild
26 index ba4f1f04585..427a310a47e 100644
27 --- a/dev-python/python-debian/python-debian-0.1.28.ebuild
28 +++ b/dev-python/python-debian/python-debian-0.1.28.ebuild
29 @@ -1,4 +1,4 @@
30 -# Copyright 1999-2016 Gentoo Foundation
31 +# Copyright 1999-2017 Gentoo Foundation
32 # Distributed under the terms of the GNU General Public License v2
33
34 EAPI="6"
35 @@ -8,7 +8,7 @@ PYTHON_COMPAT=( python2_7 python3_{4,5} pypy )
36 inherit distutils-r1
37
38 DESCRIPTION="Python modules to work with Debian-related data formats"
39 -HOMEPAGE="http://packages.debian.org/sid/python-debian"
40 +HOMEPAGE="https://packages.debian.org/sid/python-debian"
41 SRC_URI="mirror://debian/pool/main/${P:0:1}/${PN}/${PN}_${PV}.tar.xz"
42
43 LICENSE="GPL-2 GPL-3"
44
45 diff --git a/dev-python/python-debian/python-debian-0.1.28.ebuild b/dev-python/python-debian/python-debian-0.1.31.ebuild
46 similarity index 56%
47 copy from dev-python/python-debian/python-debian-0.1.28.ebuild
48 copy to dev-python/python-debian/python-debian-0.1.31.ebuild
49 index ba4f1f04585..d563a839202 100644
50 --- a/dev-python/python-debian/python-debian-0.1.28.ebuild
51 +++ b/dev-python/python-debian/python-debian-0.1.31.ebuild
52 @@ -1,19 +1,19 @@
53 -# Copyright 1999-2016 Gentoo Foundation
54 +# Copyright 1999-2017 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56
57 EAPI="6"
58
59 -PYTHON_COMPAT=( python2_7 python3_{4,5} pypy )
60 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
61
62 inherit distutils-r1
63
64 DESCRIPTION="Python modules to work with Debian-related data formats"
65 -HOMEPAGE="http://packages.debian.org/sid/python-debian"
66 +HOMEPAGE="https://packages.debian.org/sid/python-debian"
67 SRC_URI="mirror://debian/pool/main/${P:0:1}/${PN}/${PN}_${PV}.tar.xz"
68
69 LICENSE="GPL-2 GPL-3"
70 SLOT="0"
71 -KEYWORDS="amd64 x86"
72 +KEYWORDS="~amd64 ~x86"
73 IUSE="test"
74
75 RDEPEND="
76 @@ -25,14 +25,17 @@ DEPEND="${RDEPEND}
77
78 RESTRICT="test"
79
80 +python_prepare_all() {
81 + sed -i -e '/import apt_pkg/d' \
82 + -e 's/test_iter_paragraphs_comments_use_apt_pkg/_&/' \
83 + lib/debian/tests/test_deb822.py || die
84 + distutils-r1_python_prepare_all
85 +}
86 +
87 python_compile_all() {
88 "${PYTHON}" lib/debian/doc-debtags > README.debtags || die
89 }
90
91 python_test() {
92 - # Tests currently fail with >=app-crypt/gnupg-2.1
93 - # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782904
94 - pushd tests > /dev/null || die
95 - "${PYTHON}" -m unittest discover || die "Testing failed with ${EPYTHON}"
96 - popd > /dev/null || die
97 + "${PYTHON}" -m unittest discover lib || die "Testing failed with ${EPYTHON}"
98 }