diff options
Diffstat (limited to 'dev-python/testresources')
| -rw-r--r-- | dev-python/testresources/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/testresources/metadata.xml | 27 | ||||
| -rw-r--r-- | dev-python/testresources/testresources-2.1.2.ebuild | 36 |
3 files changed, 65 insertions, 0 deletions
diff --git a/dev-python/testresources/Manifest b/dev-python/testresources/Manifest new file mode 100644 index 000000000000..6e614375e86f --- /dev/null +++ b/dev-python/testresources/Manifest @@ -0,0 +1,2 @@ +DIST testresources-2.1.2.tar.gz 37654 BLAKE2B cc5a11f2c1faf6e1ba3e0af1feea5ddc9eb1c60fd010bfea689d59a82c3e628c3dfceab4d7e832662d8495dfb0dab2172b957069163b9e001bc8c633289dc9fa SHA512 b0ab838f7e18a14daa3499f2b19e0470f242c22a1870da62d1193de4d1cc80f9a6fa706fc70fba93227102578c20ca2327af3595474856415d961f04b2fd8e78 +DIST testresources-2.1.2.tar.gz.provenance 9897 BLAKE2B a8ab3081b6ef9068341d51b0eb3f37b113ebb532800078d6b6a63bbaf46f7bc0d4d7690197c1de18a2abd7d606844dc037b878ca097d503cbd54637a3bacfb45 SHA512 ef89da8fa42165cf2e9666d541fa6de36140cf3af7a2766033a7dd4a02bf9bc01144b230d589a1972e5ded035c34296abaf872e18110a64f255f0591110eb48f diff --git a/dev-python/testresources/metadata.xml b/dev-python/testresources/metadata.xml new file mode 100644 index 000000000000..10e199d86901 --- /dev/null +++ b/dev-python/testresources/metadata.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>prometheanfire@gentoo.org</email> + <name>Matthew Thode</name> + </maintainer> + <maintainer type="project"> + <email>openstack@gentoo.org</email> + <name>Openstack</name> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription lang="en"> + Testresources extends unittest with a clean and simple api to provide test + optimisation where expensive common resources are needed for test cases + for example sample working trees for VCS systems, reference databases for + enterprise applications, or web servers ... let imagination run wild. + </longdescription> + <stabilize-allarches /> + <upstream> + <remote-id type="launchpad">testresources</remote-id> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-python/testresources/testresources-2.1.2.ebuild b/dev-python/testresources/testresources-2.1.2.ebuild new file mode 100644 index 000000000000..37d0357b7a13 --- /dev/null +++ b/dev-python/testresources/testresources-2.1.2.ebuild @@ -0,0 +1,36 @@ +# 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/testresources +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A pyunit extension for managing expensive test resources" +HOMEPAGE=" + https://launchpad.net/testresources/ + https://github.com/testing-cabal/testresources/ + https://pypi.org/project/testresources/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + dev-python/hatch-vcs[${PYTHON_USEDEP}] + test? ( + dev-python/testtools[${PYTHON_USEDEP}] + dev-python/fixtures[${PYTHON_USEDEP}] + ) +" + +python_test() { + "${EPYTHON}" -m testtools.run -v tests.test_suite || + die "Tests failed with ${EPYTHON}" +} |
