1 |
commit: 3de461054835faab4152664305c18bfa878f0517 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 16 04:52:52 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 16 04:52:52 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3de46105 |
7 |
|
8 |
dev-python/txaio: enable py3.10, add optfeature |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/txaio/txaio-21.2.1.ebuild | 13 ++++++++----- |
13 |
1 file changed, 8 insertions(+), 5 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/txaio/txaio-21.2.1.ebuild b/dev-python/txaio/txaio-21.2.1.ebuild |
16 |
index 0ae1647e9e7..edb1de4360c 100644 |
17 |
--- a/dev-python/txaio/txaio-21.2.1.ebuild |
18 |
+++ b/dev-python/txaio/txaio-21.2.1.ebuild |
19 |
@@ -2,9 +2,9 @@ |
20 |
# Distributed under the terms of the GNU General Public License v2 |
21 |
|
22 |
EAPI=7 |
23 |
-PYTHON_COMPAT=( python3_{7..9} ) |
24 |
|
25 |
-inherit distutils-r1 |
26 |
+PYTHON_COMPAT=( python3_{8..10} ) |
27 |
+inherit distutils-r1 optfeature |
28 |
|
29 |
DESCRIPTION="Compatibility API between asyncio/Twisted/Trollius" |
30 |
HOMEPAGE="https://github.com/crossbario/txaio https://pypi.org/project/txaio/" |
31 |
@@ -24,9 +24,12 @@ distutils_enable_sphinx docs \ |
32 |
'>=dev-python/sphinx_rtd_theme-0.1.9' |
33 |
distutils_enable_tests pytest |
34 |
|
35 |
-src_prepare() { |
36 |
- default_src_prepare |
37 |
+EPYTEST_DESELECT=( |
38 |
# Take out failing tests known to pass when run manually |
39 |
# we certainly don't need to test "python setup.py sdist" here |
40 |
- rm "${S}/test/test_packaging.py" || die |
41 |
+ test/test_packaging.py |
42 |
+) |
43 |
+ |
44 |
+pkg_postinst() { |
45 |
+ optfeature "Twisted support" "dev-python/twisted dev-python/zope-interface" |
46 |
} |