commit: 334a8bb141ba3c6ddd2735589193671e517cc12b
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 15 08:02:23 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Jun 15 08:03:35 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=334a8bb1
dev-python/anyio: unrestrict test phase
skip tests for trio since this is not (yet) packaged
Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
dev-python/anyio/anyio-3.1.0.ebuild | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/dev-python/anyio/anyio-3.1.0.ebuild
b/dev-python/anyio/anyio-3.1.0.ebuild
index 53b2893ab60..d4d7d1e4690 100644
--- a/dev-python/anyio/anyio-3.1.0.ebuild
+++ b/dev-python/anyio/anyio-3.1.0.ebuild
@@ -18,10 +18,6 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
-# This will pull in dev-python/trio and a whole bunch of other new things
-# And trio does not yet have a release compatible with python3.9.
-RESTRICT="test"
-
RDEPEND="
>=dev-python/idna-2.8[${PYTHON_USEDEP}]
>=dev-python/sniffio-1.1[${PYTHON_USEDEP}]
@@ -40,3 +36,19 @@ distutils_enable_tests --install pytest
distutils_enable_sphinx docs \
dev-python/sphinx_rtd_theme \
dev-python/sphinx-autodoc-typehints
+
+python_prepare_all() {
+ # This will pull in dev-python/trio and a whole bunch of other new
things
+ # And trio does not yet have a release compatible with python3.9.
+ rm tests/test_taskgroups.py || die
+ sed -i -e '/trio/d' tests/conftest.py || die
+ sed -i -e 's/test_cancel_scope_in_asyncgen_fixture/_&/' \
+ -e 's/test_autouse_async_fixture/_&/' \
+ -e 's/test_plugin/_&/' \
+ tests/test_pytest_plugin.py || die
+
+ # skip network test
+ sed -i -e 's/test_getaddrinfo/_&/' tests/test_sockets.py || die
+
+ distutils-r1_python_prepare_all
+}