diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/testscenarios |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/testscenarios')
-rw-r--r-- | dev-python/testscenarios/Manifest | 7 | ||||
-rw-r--r-- | dev-python/testscenarios/metadata.xml | 27 | ||||
-rw-r--r-- | dev-python/testscenarios/testscenarios-0.4-r5.ebuild | 23 | ||||
-rw-r--r-- | dev-python/testscenarios/testscenarios-0.5.0.ebuild | 31 |
4 files changed, 88 insertions, 0 deletions
diff --git a/dev-python/testscenarios/Manifest b/dev-python/testscenarios/Manifest new file mode 100644 index 000000000000..89d7824cd431 --- /dev/null +++ b/dev-python/testscenarios/Manifest @@ -0,0 +1,7 @@ +DIST testscenarios-0.4.tar.gz 22768 SHA256 4feeee84f7fd8a6258fc00671e1521f80cb68d2fec1e2908b3ab52bcf396e198 SHA512 1b3fbc11b0a6a9cdd4afd569374cde92c291d925f76295e191b91285e88c17a9e693e10972538d146f97c889c5c1fa4545c79b0e6b9d71265abc82cf2700a3f9 WHIRLPOOL fe8769be1ccbeda81dc8f5f19f0e74a1ab616eac1389dca487427d77ddbf25f5c569445fb4e3f3732c117d61b0c22588ae2b8334cfb5b68afa227ee51bf8dc10 +DIST testscenarios-0.5.0.tar.gz 20951 SHA256 c257cb6b90ea7e6f8fef3158121d430543412c9a87df30b5dde6ec8b9b57a2b6 SHA512 f08b868babf504482369c5cb945d3e95bca1cc00f92d5013f6898c488051be0c26dc49aaabcef362aea45450a8d041d9826fb6b5c848beec013fb102d6935521 WHIRLPOOL 7b02c7a61933a8e603074321e0b4357485dad72ccffca5b28fc423da76159e6c8a4d778a431d607bff43563bc6971d66d38d7e3f89973f9c2838e569a947c0c1 +EBUILD testscenarios-0.4-r5.ebuild 673 SHA256 642900d4f0cea120978780efdff20e80f78f62c455d5c20b1378b81dd1c23398 SHA512 ecf770b858f61e5731a2eaa3684442e84c5546f385a264cae25962b43f620d88095b713704f5b958dd52ee4476dd06faf94ce3210a22f10bc31e0029cc9ccb76 WHIRLPOOL 3bb2936513ff5381e70096f7493d689e6903ef686802f0768b2af8277876d8847bc445b38921b5876cca1181ec66c37f83e081b1a298d5777b0807be567a7057 +EBUILD testscenarios-0.5.0.ebuild 860 SHA256 71c45bfdcf50d541974f86899620ee7c88957173c8561712fcdd5ac4f3997a27 SHA512 2b62006aee9536fc3d39ca0f9f0b69054e3dd895f3342ac3d91f7de2c91816bc40fd8679fca6ac5abfaa2a9761f669d81ff95aaa4ccdfad86f38f2f768b4ac97 WHIRLPOOL 1c37828f10b683d85e2621756fefe8f342e52e4319441302aa00ffee871f03618279c12dce9300992d783d1a7971c58a9e114718a5d3c7eb1e82153a93418ee5 +MISC ChangeLog 5856 SHA256 2a534a6e36cc2f5fdbc5d040113a9df3bf95660debac5f159c58cf8c1923482e SHA512 05d3970c9bb22f7ee4eadcb8bcad7f274d74b20ffcf09ce610063a1c46e911ed32e8a2eef4a2575dd3058ba03807e1f78b65aeaeec8fcf69cb37fca3e8e8a58d WHIRLPOOL 7afdca954f9b85266842e108b4ccc53f79f63257d85a76bc19969fc2ce3cb4cb1107ef5965ae4999f6066cc130cf23c573768c43ebe3578f96a3bc030a06c11d +MISC ChangeLog-2015 4278 SHA256 129c9add9f16588f09faacabed567a8160a9412c52fa24f1aa24e80b4ba84891 SHA512 7e8846f1adb6e9fd867843c4bd062d8c95e012209861728a2e7ef27f13b36cf09f6fce13f9c40f38e292f9e17a77238787cef24017232407f50706ee31b26c22 WHIRLPOOL 42f3481366ead6e00820719dfddd8689533024828fb72a45c76ee15e09e03cb3329d0c2085cdcf5edcc5fd922998216364960f33e5647e71af98df359011895a +MISC metadata.xml 979 SHA256 7c7da370944718c6031bbc0af6fae421fb5734cb85ae3507af7a186aeb841c0f SHA512 f043d2244673a34d80a88f07c79ac199ad6b2509c3af7a7e934c94330bf745e2dbfbf78fb7f38508cdb1968a87e30cea3e346aad63eb93f94ca762461b3d20e4 WHIRLPOOL 32988798f086372fcda7a549364b5301dba3bcf7b2397224b54020a35317ecfcf286b08dfaee4999037ef01ed0784f6aadd40aeee85bdd73f89af62e3aafd4b6 diff --git a/dev-python/testscenarios/metadata.xml b/dev-python/testscenarios/metadata.xml new file mode 100644 index 000000000000..bfc47ff6cc1f --- /dev/null +++ b/dev-python/testscenarios/metadata.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/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"> + Testscenarios provides clean dependency injection for + python unittest style tests. This can be used for interface testing + (testing many implementations via a single test suite) or for classic + dependency injection (provide tests with dependencies externally to the + test code itself, allowing easy testing in different situations). + </longdescription> + <upstream> + <remote-id type="pypi">testscenarios</remote-id> + <remote-id type="launchpad">testscenarios</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/testscenarios/testscenarios-0.4-r5.ebuild b/dev-python/testscenarios/testscenarios-0.4-r5.ebuild new file mode 100644 index 000000000000..58a853b74501 --- /dev/null +++ b/dev-python/testscenarios/testscenarios-0.4-r5.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Testscenarios, a pyunit extension for dependency injection" +HOMEPAGE="https://launchpad.net/testscenarios" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux" + +RDEPEND="dev-python/testtools[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +python_test() { + PYTHONPATH=./lib ${EPYTHON} -m testtools.run testscenarios.test_suite +} diff --git a/dev-python/testscenarios/testscenarios-0.5.0.ebuild b/dev-python/testscenarios/testscenarios-0.5.0.ebuild new file mode 100644 index 000000000000..d3b76cd7a886 --- /dev/null +++ b/dev-python/testscenarios/testscenarios-0.5.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A pyunit extension for dependency injection" +HOMEPAGE="https://launchpad.net/testscenarios" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux" + +RDEPEND="dev-python/testtools[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/pbr-0.11[${PYTHON_USEDEP}]" + +python_prepare_all() { + # Remove a faulty file from tests, missing a required attribute + rm ${PN}/tests/test_testcase.py || die + distutils-r1_python_prepare_all +} + +python_test() { + "${PYTHON}" -m unittest discover +} |