From 496ef6155c315ac3628b472dc9b4146fa2684286 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 11 Jul 2024 12:25:19 +0100 Subject: gentoo auto-resync : 11:07:2024 - 12:25:19 --- dev-python/pytest-twisted/Manifest | 2 + .../pytest-twisted/pytest-twisted-1.14.2.ebuild | 62 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 dev-python/pytest-twisted/pytest-twisted-1.14.2.ebuild (limited to 'dev-python/pytest-twisted') diff --git a/dev-python/pytest-twisted/Manifest b/dev-python/pytest-twisted/Manifest index c34a557575fd..1609014c8fc2 100644 --- a/dev-python/pytest-twisted/Manifest +++ b/dev-python/pytest-twisted/Manifest @@ -1,3 +1,5 @@ DIST pytest-twisted-1.14.1.gh.tar.gz 17114 BLAKE2B 36b851b734acc03919dc03842d942d205468375d9318d4ce4f880532fca29d31354125fd2ab8149a50bcf29e46ec812898b7167e34c0fa1276dcd5c2aa36ccd1 SHA512 d5b6d629ed3cf7ae1537e76494fa7eb4bbb9767cbc50d97a5657c668b381f39236acc6224b3754d62e2cccd4dff7e6161265ddc6a939f0488cef53eeade0eae9 +DIST pytest-twisted-1.14.2.gh.tar.gz 17120 BLAKE2B d12c00c5a01c8219626f5a85d5cee4b2f0fc27d4dbea5c38e4fa7e374d1ca04098b1e8bc453ff1391415b2999eb1bb1f0472cef85bb4b4b2e50a1d2632cb6177 SHA512 51c915dfba829442b68c981f80d42cc22ece12a81388f239211ca73bb76dbfadeec76722df44b2e6b6473a4a3886031846a47b855ef217ed240a7c28d20f6160 EBUILD pytest-twisted-1.14.1.ebuild 1472 BLAKE2B e22906e3e33582187978a04289e63a0036a4bf92a6250b0c1037b3be554692acfe891588d4add8b14a17c229653d5146a4cd3fef4850e709b7c65287337df60e SHA512 eb416f4d78ec5b3ce398c54c4192c2b52dcd6b05bf908f709f953d4a42f9261baf8ff16727339d5727d715eb02c1975619e20f5ff86757803f119f94d6769167 +EBUILD pytest-twisted-1.14.2.ebuild 1474 BLAKE2B ee40f3b9981a71bbf2a35cecc08daf9dacb1bcda5f78c422a31c7e8901acfcdd3a779fc16484f85e46aaaf8e7ee9343652cb4f4de389659593cd83ab94243952 SHA512 5c1114c5e8408d1b6a902fa67c3253f22cf6628c81de102c5a859fdc58f9a07030ff7c0c2fee2f5546c02a6454f0c2d1194e0333d07a8ccf3dd2bf6e6170e0c2 MISC metadata.xml 510 BLAKE2B b0a57f26f53646876843a2d19d2eae54f4ba393afddc58dff646e5aa0a755c0920223d572fd4fcf5d6540c1512e52f798045424d09713aae15e4d4310cc3d10b SHA512 0faeb8637414016721807155ce0546912cc6b9507ad21936491397efa55108e60c5973753941b11d61070f35540113470e533f4e233a1925183d3ae77d2d4949 diff --git a/dev-python/pytest-twisted/pytest-twisted-1.14.2.ebuild b/dev-python/pytest-twisted/pytest-twisted-1.14.2.ebuild new file mode 100644 index 000000000000..7eb7eb429338 --- /dev/null +++ b/dev-python/pytest-twisted/pytest-twisted-1.14.2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 + +DESCRIPTION="A pytest plugin for testing Twisted framework consumers" +HOMEPAGE=" + https://github.com/pytest-dev/pytest-twisted/ + https://pypi.org/project/pytest-twisted/ +" +SRC_URI=" + https://github.com/pytest-dev/pytest-twisted/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +RDEPEND=" + dev-python/decorator[${PYTHON_USEDEP}] + dev-python/greenlet[${PYTHON_USEDEP}] + >=dev-python/pytest-2.3[${PYTHON_USEDEP}] + dev-python/twisted[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # If we let pytest-twisted autoload everywhere, it breaks tests in + # packages that don't expect it. Apply a similar hack as for bug + # #661218. + sed -e 's/"pytest11": \[[^]]*\]//' -i setup.py || die + + # https://github.com/pytest-dev/pytest/issues/9280 + sed -e '/^pytest_plugins =/d' -i testing/conftest.py || die + + distutils-r1_src_prepare +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=pytest_twisted + + local EPYTEST_DESELECT=( + # regression with pytest-8.2 + # https://github.com/pytest-dev/pytest-twisted/issues/176 + testing/test_basic.py::test_async_fixture_module_scope + ) + + epytest -p pytester +} -- cgit v1.2.3