diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-11 00:08:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-11 00:08:05 +0100 |
commit | 65ff3cc3bd9c3f8e718a67dfecf1f8215bf5d1d4 (patch) | |
tree | 541cbae0eb51d2fdb39d64b3d135d1a6f7994dc8 /dev-python/testtools | |
parent | 0aad4cd3e3fe3db90904ffc51b35e4ff160b53c5 (diff) |
gentoo auto-resync : 11:06:2024 - 00:08:04
Diffstat (limited to 'dev-python/testtools')
-rw-r--r-- | dev-python/testtools/Manifest | 2 | ||||
-rw-r--r-- | dev-python/testtools/testtools-2.7.2.ebuild | 46 |
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/testtools/Manifest b/dev-python/testtools/Manifest index d6d24f8e75e3..17843aebc0a2 100644 --- a/dev-python/testtools/Manifest +++ b/dev-python/testtools/Manifest @@ -1,3 +1,5 @@ DIST testtools-2.7.1.tar.gz 200953 BLAKE2B b410735faf153749e3996c8889f56fbffab67a8f49b52f21afa60e72af201a12891d4db00b808324d52159b02e9212b81ab958c1dcf0cae5551471540f8fec0b SHA512 78af1c2af6f93671074dafedeaaf3ddbcc806e78c3153a3b90f88874c967e34a18cb85e5649b08fabb4ba4ae649eeb401e79c77c3b9233d9eee2a3c2267a4596 +DIST testtools-2.7.2.tar.gz 201430 BLAKE2B d827d8e66c85908f4d16aa0762c3b0a454d374a0d23323fc3c123027f55f0e85f4fea9a24b5d1d0279266af2185f08abbcbbdcb785014b237df45a6448587611 SHA512 5815519d2b72d6b1e9f453c02793c70eb7d3b6580a211fb3708cd6121aed3c6100ceb1e35321f481a63b1f999ede030e43f1ae91d3621faf461c1908db767551 EBUILD testtools-2.7.1.ebuild 959 BLAKE2B 2b4e4f056b5f8d49e370d73bc7400e371d89f9760c4e7a9b74f580ae451ea063a8eca2e6c8fdfa52f9ef357c250f6e225bc9aec752661e72c4d7686ff32c5c42 SHA512 6d7268c64886f7aa4b3c790494a476054b97a106e53af40217f61901ec87be68786838966d5cfe48ed2c74d5505b5b83e36ec432910eb533698be737abd23e6e +EBUILD testtools-2.7.2.ebuild 1219 BLAKE2B 7a7f709c548d60ffac6a2ee2492bface40d323193b685d7ee6960eaf90ca53a1660165822f7a24c682d3afd8844097a1f4af0d2406dcedebd3b27e40e49fef23 SHA512 070b54c82daf416d846402a4c8a19e1373767e07f23d568bee28f046e3a7b8b8fde96c28767db035dadd867f2106f4ddac7efe6c599ba9ba1449b2cb0e282271 MISC metadata.xml 580 BLAKE2B 5068f4abc80612e7a92fb65865612d93cc4d4803a9cda3555cee34eab48da20f6fb22734b09adeaa068cff135d592b5fbd607157a60052a68e127750f6082b24 SHA512 5807608ef5c6d3fa1a86c715c59afb7c4f3913f69739a0c4ea9b6cf85976077280da6ce019ec4fda6dd6bd490379ee0570d5c98f9d719c0cdaf60a550e01e555 diff --git a/dev-python/testtools/testtools-2.7.2.ebuild b/dev-python/testtools/testtools-2.7.2.ebuild new file mode 100644 index 000000000000..ff9231e8d803 --- /dev/null +++ b/dev-python/testtools/testtools-2.7.2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{10..13} pypy3 ) +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 ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + dev-python/hatch-vcs[${PYTHON_USEDEP}] + test? ( + >=dev-python/fixtures-2.0.0[${PYTHON_USEDEP}] + dev-python/testscenarios[${PYTHON_USEDEP}] + dev-python/testresources[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/twisted[${PYTHON_USEDEP}] + ' 3.{10..12}) + ) +" + +distutils_enable_sphinx doc + +python_test() { + cp testtools/tests/__init__.py test_suite.py || die + if ! has_version "dev-python/twisted[${PYTHON_USEDEP}]"; then + sed -i -e '/twistedsupport/d' test_suite.py || die + fi + + "${EPYTHON}" -m testtools.run test_suite.test_suite || + die "tests failed under ${EPYTHON}" +} |