1 |
commit: 235519006cc392036a01937352e2dadc285a497e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 26 15:04:40 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 26 15:16:20 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23551900 |
7 |
|
8 |
dev-python/wsaccel: Enable py3.{7,8}, modernize |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/wsaccel/wsaccel-0.6.2_p20170108.ebuild | 13 +++---------- |
13 |
1 file changed, 3 insertions(+), 10 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/wsaccel/wsaccel-0.6.2_p20170108.ebuild b/dev-python/wsaccel/wsaccel-0.6.2_p20170108.ebuild |
16 |
index c436d65ad6d..d9e9393a9a2 100644 |
17 |
--- a/dev-python/wsaccel/wsaccel-0.6.2_p20170108.ebuild |
18 |
+++ b/dev-python/wsaccel/wsaccel-0.6.2_p20170108.ebuild |
19 |
@@ -4,28 +4,21 @@ |
20 |
EAPI=5 |
21 |
|
22 |
COMMIT="0fbd074c257c51b73de05b25ccb6488801320a32" |
23 |
-PYTHON_COMPAT=( python3_6 ) |
24 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
25 |
|
26 |
inherit distutils-r1 |
27 |
|
28 |
DESCRIPTION="Accelerator for ws4py, autobahn and tornado" |
29 |
HOMEPAGE="https://pypi.org/project/wsaccel/ https://github.com/methane/wsaccel" |
30 |
SRC_URI="https://github.com/methane/wsaccel/archive/${COMMIT}.zip -> ${P}.zip" |
31 |
+S="${WORKDIR}/${PN}-${COMMIT}" |
32 |
|
33 |
SLOT="0" |
34 |
LICENSE="Apache-2.0" |
35 |
KEYWORDS="amd64 arm ~arm64 x86 ~amd64-linux ~x86-linux" |
36 |
-IUSE="test" |
37 |
-RESTRICT="!test? ( test )" |
38 |
|
39 |
-RDEPEND="" |
40 |
DEPEND=" |
41 |
dev-python/cython[${PYTHON_USEDEP}] |
42 |
- test? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
43 |
" |
44 |
|
45 |
-S="${WORKDIR}/${PN}-${COMMIT}" |
46 |
- |
47 |
-python_test() { |
48 |
- py.test -v || die |
49 |
-} |
50 |
+distutils_enable_tests pytest |