1 |
commit: 11ee46ed7e402d1f067e4c3a991e3a95a0ad8507 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 16 08:37:00 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 16 08:45:40 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11ee46ed |
7 |
|
8 |
dev-python/nose: Remove the live ebuild |
9 |
|
10 |
The project is practically dead, and the live ebuild is just a burden. |
11 |
|
12 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
13 |
|
14 |
dev-python/nose/nose-9999.ebuild | 86 ---------------------------------------- |
15 |
1 file changed, 86 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/nose/nose-9999.ebuild b/dev-python/nose/nose-9999.ebuild |
18 |
deleted file mode 100644 |
19 |
index 03c347f62ba..00000000000 |
20 |
--- a/dev-python/nose/nose-9999.ebuild |
21 |
+++ /dev/null |
22 |
@@ -1,86 +0,0 @@ |
23 |
-# Copyright 1999-2019 Gentoo Authors |
24 |
-# Distributed under the terms of the GNU General Public License v2 |
25 |
- |
26 |
-EAPI=6 |
27 |
- |
28 |
-PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy pypy3 ) |
29 |
-PYTHON_REQ_USE="threads(+)" |
30 |
- |
31 |
-inherit distutils-r1 git-r3 |
32 |
- |
33 |
-DESCRIPTION="Unittest extension with automatic test suite discovery and easy test authoring" |
34 |
-HOMEPAGE=" |
35 |
- https://pypi.org/project/nose/ |
36 |
- https://nose.readthedocs.io/en/latest/ |
37 |
- https://github.com/nose-devs/nose" |
38 |
-SRC_URI="" |
39 |
-EGIT_REPO_URI="https://github.com/nose-devs/${PN}.git" |
40 |
- |
41 |
-LICENSE="LGPL-2.1" |
42 |
-SLOT="0" |
43 |
-KEYWORDS="" |
44 |
-IUSE="doc examples test" |
45 |
- |
46 |
-REQUIRED_USE=" |
47 |
- doc? ( || ( $(python_gen_useflags 'python2*') ) )" |
48 |
- |
49 |
-RDEPEND=" |
50 |
- dev-python/coverage[${PYTHON_USEDEP}] |
51 |
- dev-python/setuptools[${PYTHON_USEDEP}]" |
52 |
-DEPEND="${RDEPEND} |
53 |
- doc? ( >=dev-python/sphinx-0.6[${PYTHON_USEDEP}] ) |
54 |
- test? ( $(python_gen_cond_dep 'dev-python/twisted[${PYTHON_USEDEP}]' python2_7 python3_{5,6}) )" |
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 |
-} |