1 |
commit: 47de0708378c6d72ff12cecf99d9ad11b534a074 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 27 11:14:03 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 27 12:20:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47de0708 |
7 |
|
8 |
dev-python/nose: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/nose/nose-1.3.7-r1.ebuild | 88 ------------------------------------ |
13 |
1 file changed, 88 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/nose/nose-1.3.7-r1.ebuild b/dev-python/nose/nose-1.3.7-r1.ebuild |
16 |
deleted file mode 100644 |
17 |
index f5b8c7b2ac9..00000000000 |
18 |
--- a/dev-python/nose/nose-1.3.7-r1.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=6 |
25 |
- |
26 |
-PYTHON_COMPAT=( python2_7 python3_6 pypy3 ) |
27 |
-PYTHON_REQ_USE="threads(+)" |
28 |
- |
29 |
-inherit distutils-r1 |
30 |
- |
31 |
-DESCRIPTION="Unittest extension with automatic test suite discovery and easy test authoring" |
32 |
-HOMEPAGE=" |
33 |
- https://pypi.org/project/nose/ |
34 |
- https://nose.readthedocs.io/en/latest/ |
35 |
- https://github.com/nose-devs/nose" |
36 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
37 |
- |
38 |
-LICENSE="LGPL-2.1" |
39 |
-SLOT="0" |
40 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
41 |
-IUSE="doc examples test" |
42 |
-RESTRICT="!test? ( test )" |
43 |
- |
44 |
-REQUIRED_USE=" |
45 |
- doc? ( || ( $(python_gen_useflags 'python2*') ) )" |
46 |
- |
47 |
-RDEPEND=" |
48 |
- dev-python/coverage[${PYTHON_USEDEP}] |
49 |
- dev-python/setuptools[${PYTHON_USEDEP}]" |
50 |
-DEPEND="${RDEPEND} |
51 |
- doc? ( >=dev-python/sphinx-0.6[${PYTHON_USEDEP}] ) |
52 |
- test? ( $(python_gen_cond_dep 'dev-python/twisted-core[${PYTHON_USEDEP}]' python2_7) )" |
53 |
- |
54 |
-PATCHES=( "${FILESDIR}"/${P}-python-3.5-backport.patch ) |
55 |
- |
56 |
-pkg_setup() { |
57 |
- use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' ) |
58 |
-} |
59 |
- |
60 |
-python_prepare_all() { |
61 |
- # Tests need to be converted, and they don't respect BUILD_DIR. |
62 |
- use test && DISTUTILS_IN_SOURCE_BUILD=1 |
63 |
- |
64 |
- # Disable tests requiring network connection. |
65 |
- sed \ |
66 |
- -e "s/test_resolve/_&/g" \ |
67 |
- -e "s/test_raises_bad_return/_&/g" \ |
68 |
- -e "s/test_raises_twisted_error/_&/g" \ |
69 |
- -i unit_tests/test_twisted.py || die "sed failed" |
70 |
- # Disable versioning of nosetests script to avoid collision with |
71 |
- # versioning performed by the eclass. |
72 |
- sed -e "/'nosetests%s = nose:run_exit' % py_vers_tag,/d" \ |
73 |
- -i setup.py || die "sed2 failed" |
74 |
- |
75 |
- # Prevent un-needed d'loading during doc build |
76 |
- sed -e "s/, 'sphinx.ext.intersphinx'//" -i doc/conf.py || die |
77 |
- |
78 |
- distutils-r1_python_prepare_all |
79 |
-} |
80 |
- |
81 |
-python_compile() { |
82 |
- local add_targets=() |
83 |
- |
84 |
- if use test; then |
85 |
- add_targets+=( egg_info ) |
86 |
- python_is_python3 && add_targets+=( build_tests ) |
87 |
- fi |
88 |
- |
89 |
- distutils-r1_python_compile ${add_targets[@]} |
90 |
-} |
91 |
- |
92 |
-python_compile_all() { |
93 |
- use doc && emake -C doc html |
94 |
-} |
95 |
- |
96 |
-python_test() { |
97 |
- "${PYTHON}" selftest.py -v || die "Tests fail with ${EPYTHON}" |
98 |
-} |
99 |
- |
100 |
-python_install() { |
101 |
- distutils-r1_python_install --install-data "${EPREFIX}/usr/share" |
102 |
-} |
103 |
- |
104 |
-python_install_all() { |
105 |
- use examples && dodoc -r examples |
106 |
- use doc && HTML_DOCS=( doc/.build/html/. ) |
107 |
- distutils-r1_python_install_all |
108 |
-} |