Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nose/
Date: Sat, 05 Jun 2021 21:08:57
Message-Id: 1622927326.f01bac3b330b4596f20d8019ec2d0d1410413ed1.mgorny@gentoo
1 commit: f01bac3b330b4596f20d8019ec2d0d1410413ed1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 5 21:04:04 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 5 21:08:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f01bac3b
7
8 dev-python/nose: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/nose/metadata.xml | 4 --
13 dev-python/nose/nose-1.3.7-r7.ebuild | 86 ------------------------------------
14 2 files changed, 90 deletions(-)
15
16 diff --git a/dev-python/nose/metadata.xml b/dev-python/nose/metadata.xml
17 index e00e1107d37..1807b936f96 100644
18 --- a/dev-python/nose/metadata.xml
19 +++ b/dev-python/nose/metadata.xml
20 @@ -10,8 +10,4 @@
21 <remote-id type="pypi">nose</remote-id>
22 <remote-id type="github">nose-devs/nose</remote-id>
23 </upstream>
24 - <use>
25 - <flag name="coverage">Pull in <pkg>dev-python/coverage</pkg> needed
26 - for nose-xcover plugin.</flag>
27 - </use>
28 </pkgmetadata>
29
30 diff --git a/dev-python/nose/nose-1.3.7-r7.ebuild b/dev-python/nose/nose-1.3.7-r7.ebuild
31 deleted file mode 100644
32 index e1eeb12eb28..00000000000
33 --- a/dev-python/nose/nose-1.3.7-r7.ebuild
34 +++ /dev/null
35 @@ -1,86 +0,0 @@
36 -# Copyright 1999-2021 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=7
40 -
41 -DISTUTILS_USE_SETUPTOOLS=rdepend
42 -PYTHON_COMPAT=( python3_{7..9} pypy3 )
43 -PYTHON_REQ_USE="threads(+)"
44 -
45 -inherit distutils-r1
46 -
47 -DESCRIPTION="Unittest extension with automatic test suite discovery and easy test authoring"
48 -HOMEPAGE="
49 - https://pypi.org/project/nose/
50 - https://nose.readthedocs.io/en/latest/
51 - https://github.com/nose-devs/nose"
52 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
53 -
54 -LICENSE="LGPL-2.1"
55 -SLOT="0"
56 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
57 -IUSE="coverage examples test"
58 -RESTRICT="!test? ( test )"
59 -
60 -RDEPEND="
61 - coverage? (
62 - dev-python/coverage[${PYTHON_USEDEP}]
63 - )"
64 -DEPEND="${RDEPEND}
65 - test? (
66 - !hppa? ( dev-python/coverage[${PYTHON_USEDEP}] )
67 - $(python_gen_cond_dep '
68 - dev-python/twisted[${PYTHON_USEDEP}]
69 - ' 'python3*')
70 - )"
71 -
72 -PATCHES=(
73 - "${FILESDIR}"/${P}-python-3.5-backport.patch
74 -
75 - # Patch against master found in an upstream PR, backported:
76 - # https://github.com/nose-devs/nose/pull/1004
77 - "${FILESDIR}"/${P}-coverage-4.1-support.patch
78 -
79 - "${FILESDIR}"/${P}-python-3.6-test.patch
80 -)
81 -
82 -python_prepare_all() {
83 - # Tests need to be converted, and they don't respect BUILD_DIR.
84 - use test && DISTUTILS_IN_SOURCE_BUILD=1
85 -
86 - # Disable tests requiring network connection.
87 - sed \
88 - -e "s/test_resolve/_&/g" \
89 - -e "s/test_raises_bad_return/_&/g" \
90 - -e "s/test_raises_twisted_error/_&/g" \
91 - -i unit_tests/test_twisted.py || die "sed failed"
92 - # Disable versioning of nosetests script to avoid collision with
93 - # versioning performed by the eclass.
94 - sed -e "/'nosetests%s = nose:run_exit' % py_vers_tag,/d" \
95 - -i setup.py || die "sed2 failed"
96 -
97 - # fix manpage install path
98 - sed -i -e 's:man/:share/&:' setup.py || die
99 -
100 - distutils-r1_python_prepare_all
101 -}
102 -
103 -python_compile() {
104 - local add_targets=()
105 -
106 - if use test; then
107 - add_targets+=( egg_info )
108 - python_is_python3 && add_targets+=( build_tests )
109 - fi
110 -
111 - distutils-r1_python_compile "${add_targets[@]}"
112 -}
113 -
114 -python_test() {
115 - "${EPYTHON}" selftest.py -v || die "Tests fail with ${EPYTHON}"
116 -}
117 -
118 -python_install_all() {
119 - use examples && dodoc -r examples
120 - distutils-r1_python_install_all
121 -}