1 |
commit: 0036c7ab16aa1267f8e527254cd4935a60aa93a1 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 26 06:58:12 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 26 10:16:52 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0036c7ab |
7 |
|
8 |
dev-python/python-redmine: Enable py3.{7,8}, modernize |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/python-redmine/python-redmine-2.0.2.ebuild | 17 ++--------------- |
13 |
1 file changed, 2 insertions(+), 15 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/python-redmine/python-redmine-2.0.2.ebuild b/dev-python/python-redmine/python-redmine-2.0.2.ebuild |
16 |
index 004a759abd1..403396ebdef 100644 |
17 |
--- a/dev-python/python-redmine/python-redmine-2.0.2.ebuild |
18 |
+++ b/dev-python/python-redmine/python-redmine-2.0.2.ebuild |
19 |
@@ -3,7 +3,7 @@ |
20 |
|
21 |
EAPI=6 |
22 |
|
23 |
-PYTHON_COMPAT=( python3_6 ) |
24 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
25 |
|
26 |
inherit distutils-r1 |
27 |
|
28 |
@@ -14,19 +14,10 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
29 |
LICENSE="Apache-2.0" |
30 |
SLOT="0" |
31 |
KEYWORDS="~amd64 ~x86" |
32 |
-IUSE="test" |
33 |
-RESTRICT="!test? ( test )" |
34 |
|
35 |
RDEPEND="dev-python/requests[${PYTHON_USEDEP}]" |
36 |
|
37 |
-# This package bundles dev-python/requests, so setup.py won't check for |
38 |
-# it. As a result, we don't need RDEPEND in DEPEND unconditionally. |
39 |
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
40 |
- test? ( |
41 |
- ${RDEPEND} |
42 |
- dev-python/coverage[${PYTHON_USEDEP}] |
43 |
- dev-python/nose[${PYTHON_USEDEP}] |
44 |
- )" |
45 |
+distutils_enable_tests nose |
46 |
|
47 |
python_prepare_all() { |
48 |
# Remove the bundled copy of dev-python/requests... |
49 |
@@ -40,7 +31,3 @@ python_prepare_all() { |
50 |
|
51 |
distutils-r1_python_prepare_all |
52 |
} |
53 |
- |
54 |
-python_test() { |
55 |
- nosetests || die "tests failed under ${EPYTHON}" |
56 |
-} |