Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/txaio/
Date: Thu, 19 May 2022 15:23:49
Message-Id: 1652973810.876d2220e0e61aa6d3a66a3afd653ce78002e2af.mgorny@gentoo
1 commit: 876d2220e0e61aa6d3a66a3afd653ce78002e2af
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 19 14:29:22 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 19 15:23:30 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=876d2220
7
8 dev-python/txaio: Enable py3.11
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/txaio/txaio-22.2.1.ebuild | 26 +++++++++++++++++++-------
13 1 file changed, 19 insertions(+), 7 deletions(-)
14
15 diff --git a/dev-python/txaio/txaio-22.2.1.ebuild b/dev-python/txaio/txaio-22.2.1.ebuild
16 index 173b2c1b92f6..9b967afe9b6f 100644
17 --- a/dev-python/txaio/txaio-22.2.1.ebuild
18 +++ b/dev-python/txaio/txaio-22.2.1.ebuild
19 @@ -4,12 +4,15 @@
20 EAPI=8
21
22 DISTUTILS_USE_PEP517=setuptools
23 -PYTHON_COMPAT=( python3_{8..10} )
24 +PYTHON_COMPAT=( python3_{8..11} )
25
26 inherit distutils-r1 optfeature
27
28 DESCRIPTION="Compatibility API between asyncio/Twisted/Trollius"
29 -HOMEPAGE="https://github.com/crossbario/txaio https://pypi.org/project/txaio/"
30 +HOMEPAGE="
31 + https://github.com/crossbario/txaio/
32 + https://pypi.org/project/txaio/
33 +"
34 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
35
36 LICENSE="MIT"
37 @@ -21,11 +24,20 @@ distutils_enable_sphinx docs \
38 '>=dev-python/sphinx_rtd_theme-0.1.9'
39 distutils_enable_tests pytest
40
41 -EPYTEST_DESELECT=(
42 - # Take out failing tests known to pass when run manually
43 - # we certainly don't need to test "python setup.py sdist" here
44 - test/test_packaging.py
45 -)
46 +python_test() {
47 + local EPYTEST_DESELECT=(
48 + # we certainly don't need to test "python setup.py sdist" here
49 + test/test_packaging.py
50 + )
51 + [[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=(
52 + # tests for removed asyncio.coroutine
53 + test/test_as_future.py::test_as_future_coroutine
54 + test/test_call_later.py::test_explicit_reactor_coroutine
55 + test/test_is_future.py::test_is_future_coroutine
56 + )
57 +
58 + epytest
59 +}
60
61 pkg_postinst() {
62 optfeature "Twisted support" "dev-python/twisted dev-python/zope-interface"