1 |
commit: fcebdc1464fc9167ebc0ac7123fe6035de0f050b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 26 09:27:45 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 26 10:17:05 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcebdc14 |
7 |
|
8 |
dev-python/serverfiles: Enable py3.{7,8}, modernize |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/serverfiles/serverfiles-0.2.1.ebuild | 13 ++++--------- |
13 |
1 file changed, 4 insertions(+), 9 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/serverfiles/serverfiles-0.2.1.ebuild b/dev-python/serverfiles/serverfiles-0.2.1.ebuild |
16 |
index 6fc585fcc3a..bfb83aa8637 100644 |
17 |
--- a/dev-python/serverfiles/serverfiles-0.2.1.ebuild |
18 |
+++ b/dev-python/serverfiles/serverfiles-0.2.1.ebuild |
19 |
@@ -3,7 +3,7 @@ |
20 |
|
21 |
EAPI=7 |
22 |
|
23 |
-PYTHON_COMPAT=( python3_6) |
24 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
25 |
inherit distutils-r1 |
26 |
|
27 |
DESCRIPTION="Utility for accessing HTTP server and storing files locally for reuse" |
28 |
@@ -13,15 +13,10 @@ SRC_URI="https://github.com/biolab/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
29 |
LICENSE="GPL-3+" |
30 |
SLOT="0" |
31 |
KEYWORDS="~amd64 ~x86" |
32 |
-IUSE="test" |
33 |
-RESTRICT="!test? ( test )" |
34 |
|
35 |
RDEPEND=">=dev-python/requests-2.11.1[${PYTHON_USEDEP}]" |
36 |
-DEPEND="${DEPEND} |
37 |
+DEPEND=" |
38 |
dev-python/setuptools[${PYTHON_USEDEP}] |
39 |
- dev-python/setuptools_scm[${PYTHON_USEDEP}] |
40 |
- test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
41 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]" |
42 |
|
43 |
-python_test() { |
44 |
- py.test -v || die "Tests fail with ${EPYTHON}" |
45 |
-} |
46 |
+distutils_enable_tests pytest |