diff options
Diffstat (limited to 'dev-python/unittest2')
-rw-r--r-- | dev-python/unittest2/Manifest | 7 | ||||
-rw-r--r-- | dev-python/unittest2/files/remove-argparse-dependence.patch | 12 | ||||
-rw-r--r-- | dev-python/unittest2/files/unittest2-1.1.0-python3.5-test.patch | 28 | ||||
-rw-r--r-- | dev-python/unittest2/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/unittest2/unittest2-1.1.0.ebuild | 35 |
5 files changed, 94 insertions, 0 deletions
diff --git a/dev-python/unittest2/Manifest b/dev-python/unittest2/Manifest new file mode 100644 index 000000000000..7f2beb34e089 --- /dev/null +++ b/dev-python/unittest2/Manifest @@ -0,0 +1,7 @@ +AUX remove-argparse-dependence.patch 424 SHA256 dc192f334569d47127a7a1f914c7a8f7d42dd6ac3816bee523cb3de6efab39e3 SHA512 e4a7b803ba5e77484f4e800df4c78d5b4d35f2d66e5c416c256bd6e7fa3db193c32aa0a455aac66b34f27c1038accf7949f64d98bf4a31a896a43d790de810f7 WHIRLPOOL 0be02f628d34f1322d6271dff050f51d78d9af361b64234f607f5dac15ceb6472678b0f04b6c8e1c22d7e943cdbfbefdadfe5e3e64f22d9c02c74ca2e1eb5748 +AUX unittest2-1.1.0-python3.5-test.patch 1304 SHA256 37530f7956064d35cd7c1216f9ecdf2f6fb42aed8fdeda7a47291bad353b62f7 SHA512 502a72811581e3551ab8fdd80f0f72ee4f6be9a3b0ce01a131f240f2199babfa115ecb18c5d4efe297521e6951f9371869b9419c829396720623bff548f09398 WHIRLPOOL 3ee09051eb5b230731814e8cab592991c75de45f4e4599f98b717589fa3593fa381608bd4e23ed49a3640e7e0542aa40c24b46cdd1f6224cd02de884f0675db4 +DIST unittest2-1.1.0.tar.gz 81432 SHA256 22882a0e418c284e1f718a822b3b022944d53d2d908e1690b319a9d3eb2c0579 SHA512 3fba15728905f437767416ab4fd3573d3fb2319486ef84c52a9fa930ea84aa1f2ae29d6f58993e3509083625790e17b1ef8d9ac5de0e166c254897a3e7a202fa WHIRLPOOL d375c59aed23e4fce14499df2fb64d185facc1e25378805045c66eef9c2fa14de81d7580020300c374f7842d38aaf6ccb26df4ff9a430f6ad497863e2766dc83 +EBUILD unittest2-1.1.0.ebuild 1029 SHA256 01fdb2c8de9ec4b206f017802e40f79efaf3a35d1897693de518e2d5a539f902 SHA512 1cab06b1d9f7e86313872fe0d34e82ce5d4414cca3265b75f7d53d4f4070504e1990ad5e97414a5a77b7a522c7bbdfff1d496163c25d849808bbebbbfd723eb1 WHIRLPOOL b2f013515f5242e8e2a80ae44398bc8316bab514203ce2057e6cd2fc2d90023731f550b698b35a304ddf056dbc35f5d603da7fa6b290915951e73de51445931b +MISC ChangeLog 7525 SHA256 7da3c85ed292f685320fbf24e5cd83fde1c09595a4d6e2fcb48ad5fb19de2e9b SHA512 2caffdb4fe94abbf973de193ec87d005b0fa87d8cb421a095a3dbb964d9e00e105ede604c085c174154168d31a09e96fbdcef1415531decf16de42982b19cdf7 WHIRLPOOL 3b872750b7ea163b185af113b1bfdfd0b6eae71e71c6c9de8bca7948a70025344eb5fdaa86e6bc3b4c3ff385c8a3606ef5a845f7d695c6fae4588bebc4fb0ecc +MISC ChangeLog-2015 8723 SHA256 d7b6daef11c99c4f462ca7f8b82a8be06b065ef99531140b696178e287a43d02 SHA512 bea4823769b03ed7eeeed096e9fb1f4d7540e4998d9ca00c64fed1da8a247c5a072e1e70f519ae83f92671cbe511d504e569f7023398dcaa20f6bb5296dbca0c WHIRLPOOL 95100ab350ead86cd4a608956cbd246cd2b10d2234c244b7a00e10b7b8a80d559879f8fa3a5b179742c96c0e40fa3f2872e9c4276852c269833e91cea7df1ca4 +MISC metadata.xml 378 SHA256 1bb689893c31f9bee03b10983cd7113af60eff936abccfc55ef6c1b6a751dd41 SHA512 b1db02e32f39f739de9a077d770579cd1adbca7bc7b9c1eb3e5800f5242a1706ec5a61694b98ea7e3e6f6099b128d22e731f4c49cf3c719bb38be52679845d34 WHIRLPOOL 5290b8af20241f80880f592ef04e0423213077a55e30211037c3e32a0a45019a4eb6d3511317123805a0ac7bcf7660854df5aca05e2f2f6fa6630957b01333e0 diff --git a/dev-python/unittest2/files/remove-argparse-dependence.patch b/dev-python/unittest2/files/remove-argparse-dependence.patch new file mode 100644 index 000000000000..36f89fc5f8f6 --- /dev/null +++ b/dev-python/unittest2/files/remove-argparse-dependence.patch @@ -0,0 +1,12 @@ +diff -r 8928fb47c3a9 setup.py +--- a/setup.py Thu Mar 12 15:55:36 2015 +1300 ++++ b/setup.py Sun Apr 05 09:06:44 2015 -0500 +@@ -57,7 +57,7 @@ + # Both install and setup requires - because we read VERSION from within the + # package, and the package also exports all the APIs. + # six for compat helpers +-REQUIRES = ['argparse', 'six>=1.4', 'traceback2'], ++REQUIRES = ['six>=1.4', 'traceback2'], + + params = dict( + name=NAME, diff --git a/dev-python/unittest2/files/unittest2-1.1.0-python3.5-test.patch b/dev-python/unittest2/files/unittest2-1.1.0-python3.5-test.patch new file mode 100644 index 000000000000..4aae9d04b2f8 --- /dev/null +++ b/dev-python/unittest2/files/unittest2-1.1.0-python3.5-test.patch @@ -0,0 +1,28 @@ +diff --git a/unittest2/test/test_loader.py b/unittest2/test/test_loader.py +index 683f662..347eea5 100644 +--- a/unittest2/test/test_loader.py ++++ b/unittest2/test/test_loader.py +@@ -509,6 +509,7 @@ class Test_TestLoader(unittest2.TestCase): + # + # What happens when an impossible name is given, relative to the provided + # `module`? ++ @unittest.skipIf(sys.version_info[:2] >= (3, 5), "python 3.5 has problems here") + def test_loadTestsFromName__relative_malformed_name(self): + loader = unittest.TestLoader() + +@@ -811,6 +812,7 @@ class Test_TestLoader(unittest2.TestCase): + # TestCase or TestSuite instance." + # + # What happens when presented with an impossible module name? ++ @unittest.skipIf(sys.version_info[:2] >= (3, 5), "python 3.5 has problems here") + def test_loadTestsFromNames__malformed_name(self): + loader = unittest2.TestLoader() + +@@ -918,6 +920,7 @@ class Test_TestLoader(unittest2.TestCase): + # "The method optionally resolves name relative to the given module" + # + # What happens when presented with an impossible attribute name? ++ @unittest.skipIf(sys.version_info[:2] >= (3, 5), "python 3.5 has problems here") + def test_loadTestsFromNames__relative_malformed_name(self): + loader = unittest.TestLoader() + diff --git a/dev-python/unittest2/metadata.xml b/dev-python/unittest2/metadata.xml new file mode 100644 index 000000000000..70f1765921a2 --- /dev/null +++ b/dev-python/unittest2/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">unittest2</remote-id> + <remote-id type="github">testing-cabal/unittest-ext</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/unittest2/unittest2-1.1.0.ebuild b/dev-python/unittest2/unittest2-1.1.0.ebuild new file mode 100644 index 000000000000..844474113575 --- /dev/null +++ b/dev-python/unittest2/unittest2-1.1.0.ebuild @@ -0,0 +1,35 @@ +# 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="The new features in unittest backported to Python 2.4+" +HOMEPAGE="https://pypi.python.org/pypi/unittest2 https://github.com/testing-cabal/unittest-ext" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +CDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/linecache2[${PYTHON_USEDEP}] + >=dev-python/six-1.4[${PYTHON_USEDEP}] + dev-python/traceback2[${PYTHON_USEDEP}] +" +DEPEND="${CDEPEND}" +RDEPEND="${CDEPEND}" + +PATCHES=( + "${FILESDIR}"/remove-argparse-dependence.patch + "${FILESDIR}"/${P}-python3.5-test.patch +) + +python_test() { + "${PYTHON}" -m unittest2 discover --verbose || die "tests failed under ${EPYTHON}" +} |