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