dev-python/pytest-asyncio: new package, add 0.23.6

Closes: #3526
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
2024-06-26 16:47:57 +02:00
parent c0aa9af2cc
commit e2ad38d0da
4 changed files with 73 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
DIST pytest-asyncio-0.23.6.tar.gz 46203 BLAKE2B 37dd3cafa2c77b0dd04a6f406e9e83705b31a98eb058fef02ad6d917cb291874dac0388a129bce5d80954fe8dd0a28fbe9e2b94dabc2ff59a1a055154b908cce SHA512 24ec7fef2f1db744c743c4da651106320d02e8a83af0a238f6335ef669751e541b7fa787fd007fd7208f1837c1cb684acdecd66ee5e022501a7aad97649fdfbe
EBUILD pytest-asyncio-0.23.6.ebuild 1522 BLAKE2B 01654d949cd919ef3066a4656533277aeebada9c1fc758d348e0b5a7e0ba14c359ef5c4861934cf6bce52dfbc3604bd0ddbb8b5f86b025a4276b493f877559da SHA512 93f08b676cbaf9293771b7c209929bbb251262673bef95bc0f812295e0f8f7e38721ff6ea03573e16dcd3f452a640055a8234d209d4a98834ffdf637cb5e9722
MISC metadata.xml 557 BLAKE2B 28bdae11b19189ed1998ddcfe1ed9dab56722ae774f297fb7981e2deb916f5485747932fd551549e51234bf56000b309af202601aa4fa3559879e3bc4592c3b7 SHA512 776726a9bcd868bc58f48af506c5483c2fb137713178c9be6d131285d430928691157537fc0347572868dca223a0f4b84ead9742d2d17b932642ed1b3d8c0366

View File

@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<upstream>
<remote-id type="pypi">pytest-asyncio</remote-id>
<remote-id type="github">pytest-dev/pytest-asyncio</remote-id>
<maintainer status="unknown">
<email>tinchester@gmail.com</email>
<name>Tin Tvrtković &lt;tinchester@gmail.com&gt;</name>
</maintainer>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,52 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
PYTHON_COMPAT=( python3_{11..13} )
inherit distutils-r1 pypi
DESCRIPTION="Library for testing asyncio code with pytest"
HOMEPAGE="
https://github.com/pytest-dev/pytest-asyncio/
https://pypi.org/project/pytest-asyncio/
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
RDEPEND="
>=dev-python/pytest-5.4.0[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
test? (
>=dev-python/hypothesis-3.64[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_test() {
local EPYTEST_DESELECT=(
# rely on precise warning counts
tests/hypothesis/test_base.py::test_can_use_explicit_event_loop_fixture
tests/modes/test_legacy_mode.py
tests/modes/test_strict_mode.py::test_strict_mode_ignores_unmarked_fixture
tests/test_event_loop_fixture_finalizer.py::test_event_loop_fixture_finalizer_raises_warning_when_fixture_leaves_loop_unclosed
tests/test_event_loop_fixture_finalizer.py::test_event_loop_fixture_finalizer_raises_warning_when_test_leaves_loop_unclosed
tests/test_pytest_min_version_warning.py
tests/trio/test_fixtures.py::test_strict_mode_ignores_trio_fixtures
# TODO
tests/test_is_async_test.py::test_returns_false_for_unmarked_coroutine_item_in_strict_mode
)
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
local -x PYTEST_PLUGINS=pytest_asyncio.plugin,_hypothesis_pytestplugin
epytest
}