dev-python/zope-testing: Bump to 6.1

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-12-18 07:51:08 +01:00
parent f77ce0e2b2
commit 6a400dd316
2 changed files with 42 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST zope_testing-6.0.tar.gz 42462 BLAKE2B 8ea0b46417d1227a5a13fd782ebbd497dc208441ebb224d621c560d658dff50e3af74175cb4b339c5c53cb14c9e5a99146b1aa262488380429ed2c3269a372c4 SHA512 a2fe987a308075e611d585e3cba1d62ada883be2e44fccb59fbd4aa04095dd1774f8589f7a2f76211ffe3058da01799e105c53a7fe9d1bbba0bf88e85b85587a
DIST zope_testing-6.1.tar.gz 47548 BLAKE2B affcefda88062da4e6ce4c3636f12ed785791f8a857f5a11f4298d3f5b9814de86395c163a184dc4ba52b5f8d59e0e61040e0aa89f1d82305a987897b2b04965 SHA512 23fb69240adf9a8ec8b5aecaa6cb828992b4bc9cba8478066ac3018b4e151a6055d58b7c3f727cc44d0608c17d3a47ec399dfa17fb30b80de96b2ad687326908

View File

@@ -0,0 +1,41 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYPI_PN=${PN/-/.}
PYTHON_TESTED=( python3_{11..14} python3_{13..14}t pypy3_11 )
PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" )
inherit distutils-r1 pypi
DESCRIPTION="Zope testing helpers"
HOMEPAGE="
https://pypi.org/project/zope.testing/
https://github.com/zopefoundation/zope.testing/
"
LICENSE="ZPL"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
distutils_enable_tests unittest
python_test() {
if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then
einfo "Skipping tests on ${EPYTHON}"
return
fi
"${EPYTHON}" - <<-EOF || die
import sys
import unittest
from zope.testing.tests import test_suite
runner = unittest.TextTestRunner(verbosity=2)
result = runner.run(test_suite())
sys.exit(0 if result.wasSuccessful() else 1)
EOF
}