Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/subunit/
Date: Sun, 31 Oct 2021 20:09:59
Message-Id: 1635710981.cd3af2b5be8163b13c75afe0f838151935e3a3c8.arthurzam@gentoo
1 commit: cd3af2b5be8163b13c75afe0f838151935e3a3c8
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 31 20:04:43 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 31 20:09:41 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd3af2b5
7
8 dev-python/subunit: drop 1.4.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/subunit/Manifest | 1 -
13 dev-python/subunit/subunit-1.4.0.ebuild | 103 --------------------------------
14 2 files changed, 104 deletions(-)
15
16 diff --git a/dev-python/subunit/Manifest b/dev-python/subunit/Manifest
17 index e59f6c68e1f..eecdb73522a 100644
18 --- a/dev-python/subunit/Manifest
19 +++ b/dev-python/subunit/Manifest
20 @@ -1,2 +1 @@
21 -DIST subunit-1.4.0.tar.gz 488022 BLAKE2B 4c3a714d02eeed9420074c4e032778a69b716a5cad0079193533e9bc8c0f4576d70b165eb413203ce8a916ac28466e9f5a113d4a7746019d7d09409df9860bae SHA512 5d2e3cb96c09067ef4595c86648f13330c810b19e39c0b35bc9546c57bee957ddcf5cad7b8e3f92bda9b54dcdbf175863e2f6ba94020f880230459be7afdbbcf
22 DIST subunit-1.4.0_p20210729.tar.gz 112644 BLAKE2B 56e785c029f3f2896d0ed3d8005c37403e6aa32d05b653db0e3b679d2157820558e578b53133f4f79404a660f37a710aeeec03ff941fd7cd0819020a0d474515 SHA512 90b1ad071fb5246a7446a4c999142566b9d96c39838905e9020b80f2f0aba0b86dd5185bbd25ff7fc65f69ae68e1e53dfde5b2de05755aa97db9248c6faaa9d7
23
24 diff --git a/dev-python/subunit/subunit-1.4.0.ebuild b/dev-python/subunit/subunit-1.4.0.ebuild
25 deleted file mode 100644
26 index f95225ac17d..00000000000
27 --- a/dev-python/subunit/subunit-1.4.0.ebuild
28 +++ /dev/null
29 @@ -1,103 +0,0 @@
30 -# Copyright 1999-2021 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=7
34 -
35 -PYTHON_COMPAT=( python3_{8..9} pypy3 )
36 -
37 -inherit distutils-r1 multilib-minimal autotools
38 -
39 -DESCRIPTION="A streaming protocol for test results"
40 -HOMEPAGE="https://launchpad.net/subunit https://pypi.org/project/python-subunit/"
41 -SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
42 -
43 -LICENSE="Apache-2.0 BSD"
44 -SLOT="0"
45 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
46 -IUSE="static-libs test"
47 -RESTRICT="!test? ( test )"
48 -
49 -RDEPEND="
50 - >=dev-python/testtools-0.9.34[${PYTHON_USEDEP}]
51 - dev-python/extras[${PYTHON_USEDEP}]
52 - dev-lang/perl:="
53 -
54 -DEPEND="
55 - ${RDEPEND}
56 - dev-python/setuptools[${PYTHON_USEDEP}]
57 - >=dev-libs/check-0.9.11[${MULTILIB_USEDEP}]
58 - >=dev-util/cppunit-1.13.2[${MULTILIB_USEDEP}]
59 - >=virtual/pkgconfig-0-r1
60 - test? (
61 - dev-python/fixtures[${PYTHON_USEDEP}]
62 - dev-python/hypothesis[${PYTHON_USEDEP}]
63 - dev-python/testscenarios[${PYTHON_USEDEP}]
64 - )"
65 -
66 -PATCHES=(
67 - "${FILESDIR}/subunit-1.4.0-werror.patch"
68 -)
69 -
70 -src_prepare() {
71 - sed -i -e 's/os.chdir(os.path.dirname(__file__))//' setup.py || die
72 -
73 - # Install perl modules in vendor_perl, bug 534654.
74 - export INSTALLDIRS=vendor
75 -
76 - # fails on py3.6
77 - sed -i -e 's:test_add_tag:_&:' \
78 - python/subunit/tests/test_subunit_tags.py || die
79 -
80 - # eliminate unittest2
81 - sed -i -e 's:unittest2 as ::' \
82 - python/subunit/tests/test_test_protocol.py || die
83 -
84 - distutils-r1_src_prepare
85 - eautoreconf
86 - multilib_copy_sources
87 -}
88 -
89 -multilib_src_configure() {
90 - ECONF_SOURCE=${S} \
91 - econf \
92 - --enable-shared \
93 - $(use_enable static-libs static)
94 -}
95 -
96 -multilib_src_compile() {
97 - default
98 - multilib_is_native_abi && distutils-r1_src_compile
99 -}
100 -
101 -python_test() {
102 - local -x PATH="${PWD}/shell/share:${PATH}"
103 - local -x PYTHONPATH=python
104 - # Following tests are known to fail in py2.7 & pypy. They pass under py3.
105 - # DO NOT re-file
106 - # test_add_error test_add_error_details test_add_expected_failure
107 - # test_add_expected_failure_details test_add_failure test_add_failure
108 - # https://bugs.launchpad.net/subunit/+bug/1436686
109 -
110 - "${PYTHON}" -m testtools.run all_tests.test_suite || die "Testing failed with ${EPYTHON}"
111 -}
112 -
113 -multilib_src_test() {
114 - multilib_is_native_abi && distutils-r1_src_test
115 -}
116 -
117 -multilib_src_install() {
118 - local targets=(
119 - install-include_subunitHEADERS
120 - install-pcdataDATA
121 - install-exec-local
122 - install-libLTLIBRARIES
123 - )
124 - emake DESTDIR="${D}" "${targets[@]}"
125 -
126 - multilib_is_native_abi && distutils-r1_src_install
127 -}
128 -
129 -multilib_src_install_all() {
130 - einstalldocs
131 - find "${D}" -name '*.la' -delete || die
132 -}