diff --git a/dev-python/testtools/Manifest b/dev-python/testtools/Manifest index 0aa5f92580c2b..4c1a058ce1248 100644 --- a/dev-python/testtools/Manifest +++ b/dev-python/testtools/Manifest @@ -1,2 +1,4 @@ DIST testtools-2.9.1.tar.gz 221377 BLAKE2B 61684837047dc9ec91a412b22f7423c43f19500062571d0b36f821576503537218f5225c963f603feb142e3f1a5766d825a59df8e6a5da12d739372ae7c55b85 SHA512 68530c96756d383575602c6e3b6d33ca19fec4fe35ac6dba4ada4954be969a31414f930572cebbcbe4008fbdd1904537be793acdb5cce8458e36cdcbbfe719e0 DIST testtools-2.9.1.tar.gz.provenance 9604 BLAKE2B 01f82b392b2dd0226fda576aefd788c388ba50c275740f4adeab5ad2decf56a6a628e911bb8db0423ef047bf845325759f8c5c3135abd8146a33e4e699fa92c6 SHA512 5177b6070f4760baffc1644536abea1de55937e797de08e8d499e7ce07053ce8e0c22d996e9401a53e2ebe2461ce0c32e50732cdd9af0a26e40b3e19aac8891e +DIST testtools-2.9.2.tar.gz 227486 BLAKE2B 53b829af928c449f88e37f1d30c4823f14d1e9e2dcc764b6ad93f3d6025910234a9a5752772a18273a59af3dda94a317a79ebac134e1f665d612704a02bf8053 SHA512 8a8e60acc4d895e427bf384c71a38ec5cb43f5d789f1a42b51c65adf925f1d5b8cd4c3f357936428aef7ac170867701e58b0dc8fd0094d8eeca1df1fb036bf7b +DIST testtools-2.9.2.tar.gz.provenance 9738 BLAKE2B 92f2dce2fa1698194ff9391d527845f4273f83b8ffdf29b87da9fffd577e3e8203d56a972fd18040c08e49b5f3e967b38d5426c9098e28a2f64375fb47f16ded SHA512 60a3b6ce8309f45fdb5d9098d2486728133bf51795affd64d18a29c81db2ebd61e6c1878215f29842e2ddfd89e5f1cc52fee184cab2681b0a9d4b28424e488cd diff --git a/dev-python/testtools/testtools-2.9.2.ebuild b/dev-python/testtools/testtools-2.9.2.ebuild new file mode 100644 index 0000000000000..547aa94f3a890 --- /dev/null +++ b/dev-python/testtools/testtools-2.9.2.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYPI_VERIFY_REPO=https://github.com/testing-cabal/testtools +PYTHON_COMPAT=( python3_{12..15} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 pypi + +DESCRIPTION="Extensions to the Python standard library unit testing framework" +HOMEPAGE=" + https://github.com/testing-cabal/testtools/ + https://pypi.org/project/testtools/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + dev-python/hatch-vcs[${PYTHON_USEDEP}] + test? ( + >=dev-python/fixtures-4.3.2[${PYTHON_USEDEP}] + dev-python/testscenarios[${PYTHON_USEDEP}] + dev-python/testresources[${PYTHON_USEDEP}] + dev-python/twisted[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx doc + +python_test() { + if ! has_version "dev-python/twisted[${PYTHON_USEDEP}]"; then + sed -i -e '/twistedsupport/d' tests/test_suite.py || die + fi + + "${EPYTHON}" -m testtools.run tests.test_suite || + die "tests failed under ${EPYTHON}" +}