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