1 |
commit: 7a661d685ef629d60e0193ab50ca09ec980525e2 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 26 09:04:16 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 26 10:17:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a661d68 |
7 |
|
8 |
dev-python/ratelimit: Enable py3.{7,8}, modernize |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/ratelimit/ratelimit-1.4.1.ebuild | 13 +++---------- |
13 |
1 file changed, 3 insertions(+), 10 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/ratelimit/ratelimit-1.4.1.ebuild b/dev-python/ratelimit/ratelimit-1.4.1.ebuild |
16 |
index bc4af83a74e..6974189b99e 100644 |
17 |
--- a/dev-python/ratelimit/ratelimit-1.4.1.ebuild |
18 |
+++ b/dev-python/ratelimit/ratelimit-1.4.1.ebuild |
19 |
@@ -1,8 +1,8 @@ |
20 |
# Copyright 1999-2020 Gentoo Authors |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
|
23 |
-EAPI=6 |
24 |
-PYTHON_COMPAT=( python3_6 ) |
25 |
+EAPI=7 |
26 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
27 |
|
28 |
inherit distutils-r1 |
29 |
|
30 |
@@ -13,18 +13,11 @@ HOMEPAGE="https://github.com/tomasbasham/ratelimit" |
31 |
LICENSE="MIT" |
32 |
SLOT="0" |
33 |
KEYWORDS="~amd64 ~x86" |
34 |
-IUSE="test" |
35 |
-RESTRICT="!test? ( test )" |
36 |
|
37 |
-DEPEND=" |
38 |
- test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
39 |
+distutils_enable_tests pytest |
40 |
|
41 |
src_prepare() { |
42 |
default |
43 |
# remove --cov args injection |
44 |
rm pytest.ini || die |
45 |
} |
46 |
- |
47 |
-python_test() { |
48 |
- pytest || die |
49 |
-} |