bump(dev-python/unittest2): sync with upstream

This commit is contained in:
David Michael 2017-05-03 20:25:59 -07:00
parent cad70ed41b
commit e3c7e4c52d
13 changed files with 151 additions and 289 deletions

View File

@ -1,127 +0,0 @@
# ChangeLog for dev-python/unittest2
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/unittest2/ChangeLog,v 1.33 2013/08/04 11:39:55 ago Exp $
04 Aug 2013; Agostino Sarubbo <ago@gentoo.org> unittest2-0.5.1-r1.ebuild:
Stable for ia64, wrt bug #477360
03 Aug 2013; Agostino Sarubbo <ago@gentoo.org> unittest2-0.5.1-r1.ebuild:
Stable for sparc, wrt bug #477360
30 Jul 2013; Agostino Sarubbo <ago@gentoo.org> unittest2-0.5.1-r1.ebuild:
Stable for alpha, wrt bug #477360
23 Jul 2013; Agostino Sarubbo <ago@gentoo.org> unittest2-0.5.1-r1.ebuild:
Stable for arm, wrt bug #477360
22 Jul 2013; Agostino Sarubbo <ago@gentoo.org> unittest2-0.5.1-r1.ebuild:
Stable for ppc64, wrt bug #477360
22 Jul 2013; Agostino Sarubbo <ago@gentoo.org> unittest2-0.5.1-r1.ebuild:
Stable for ppc, wrt bug #477360
21 Jul 2013; Agostino Sarubbo <ago@gentoo.org> unittest2-0.5.1-r1.ebuild:
Stable for amd64, wrt bug #477360
19 Jul 2013; Jeroen Roovers <jer@gentoo.org> unittest2-0.5.1-r1.ebuild:
Stable for HPPA (bug #477360).
28 Jan 2013; Alexis Ballier <aballier@gentoo.org> unittest2-0.5.1-r1.ebuild:
keyword ~amd64-fbsd, bug #453136
*unittest2-0.5.1-r1 (07 Jan 2013)
07 Jan 2013; Michał Górny <mgorny@gentoo.org> +unittest2-0.5.1-r1.ebuild:
Migrate to distutils-r1.
12 Sep 2011; Dirkjan Ochtman <djc@gentoo.org> metadata.xml:
Remove myself as a maintainer.
26 Jul 2011; Jesus Rivero <neurogeek@gentoo.org> unittest2-0.5.1.ebuild:
Restrict tests for Python 2.4.
http://hg.python.org/unittest2/rev/d2be68aedc8e
29 Apr 2011; Samuli Suominen <ssuominen@gentoo.org> unittest2-0.5.1.ebuild:
ppc64 stable wrt #361985
23 Apr 2011; Raúl Porcel <armin76@gentoo.org> unittest2-0.5.1.ebuild:
alpha/arm/ia64/s390/sh/sparc stable wrt #361985
04 Apr 2011; Jeroen Roovers <jer@gentoo.org> unittest2-0.5.1.ebuild:
Stable for HPPA (bug #361985).
26 Mar 2011; Tobias Klausmann <klausman@gentoo.org> unittest2-0.5.1.ebuild:
Keyworded on alpha, bug #357577
13 Mar 2011; Markus Meier <maekke@gentoo.org> unittest2-0.5.1.ebuild:
add ~arm, bug #357577
08 Mar 2011; Jeroen Roovers <jer@gentoo.org> unittest2-0.5.1.ebuild:
Marked ~hppa (bug #357577).
07 Jan 2011; Brent Baude <ranger@gentoo.org> unittest2-0.5.1.ebuild:
Marking unittest2-0.5.1 ppc for bug 345487
24 Dec 2010; Fabian Groffen <grobian@gentoo.org> unittest2-0.5.1.ebuild:
Added Prefix keywords, bug #339072
07 Dec 2010; Markos Chandras <hwoarang@gentoo.org> unittest2-0.5.1.ebuild:
Stable on amd64 wrt bug #345487
06 Dec 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
unittest2-0.5.1.ebuild:
Support Python 3.
16 Nov 2010; Thomas Kahle <tomka@gentoo.org> unittest2-0.5.1.ebuild:
x86 stable per bug 345487
24 Oct 2010; Samuli Suominen <ssuominen@gentoo.org>
unittest2-0.5.1.ebuild:
Keyword ~ppc64 wrt #339072
24 Oct 2010; Raúl Porcel <armin76@gentoo.org> unittest2-0.5.1.ebuild:
Add ~ia64/~s390/~sparc wrt #339072
20 Oct 2010; Brent Baude <ranger@gentoo.org> unittest2-0.5.1.ebuild:
Marking unittest2-0.5.1 ~ppc for bug 339072
*unittest2-0.5.1 (12 Jul 2010)
12 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-unittest2-0.4.2.ebuild, -unittest2-0.5.0.ebuild, +unittest2-0.5.1.ebuild:
Version bump.
*unittest2-0.5.0 (11 Jul 2010)
11 Jul 2010; Dirkjan Ochtman <djc@gentoo.org> +unittest2-0.5.0.ebuild:
Version bump to 0.5.0.
*unittest2-0.4.2 (06 Jun 2010)
06 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-unittest2-0.4.1.ebuild, +unittest2-0.4.2.ebuild:
Version bump.
*unittest2-0.4.1 (05 Jun 2010)
05 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-unittest2-0.4.0.ebuild, +unittest2-0.4.1.ebuild:
Version bump.
*unittest2-0.4.0 (09 Apr 2010)
09 Apr 2010; Dirkjan Ochtman <djc@gentoo.org> -unittest2-0.3.0.ebuild,
+unittest2-0.4.0.ebuild:
Version bump to 0.4, fix tests.
*unittest2-0.3.0 (26 Mar 2010)
26 Mar 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-unittest2-0.2.0.ebuild, +unittest2-0.3.0.ebuild:
Version bump.
*unittest2-0.2.0 (16 Mar 2010)
16 Mar 2010; Dirkjan Ochtman <djc@gentoo.org> +unittest2-0.2.0.ebuild,
+metadata.xml:
Initial version 0.2.0.

View File

@ -1,26 +1,7 @@
-----BEGIN PGP SIGNED MESSAGE----- AUX remove-argparse-dependence.patch 424 SHA256 dc192f334569d47127a7a1f914c7a8f7d42dd6ac3816bee523cb3de6efab39e3 SHA512 e4a7b803ba5e77484f4e800df4c78d5b4d35f2d66e5c416c256bd6e7fa3db193c32aa0a455aac66b34f27c1038accf7949f64d98bf4a31a896a43d790de810f7 WHIRLPOOL 0be02f628d34f1322d6271dff050f51d78d9af361b64234f607f5dac15ceb6472678b0f04b6c8e1c22d7e943cdbfbefdadfe5e3e64f22d9c02c74ca2e1eb5748
Hash: SHA512 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
DIST unittest2-0.5.1.tar.gz 62470 SHA256 aa5de8cdf654d843379c97bd1ee240e86356d3355a97b147a6f3f4d149247a71 SHA512 3979d94fd4e1038ec134dd2342d614766383177eadd0cc3c38b964528157fbbe466800d1a7422cf647500784af8e0c2caa750a364a33c9f761dca37d7bbb598f WHIRLPOOL d66d0b37c1646280e81035fde287f14c042fb2820434b27490aca49b265340ec76636315bfc9aa413a4c1f2d3be90a9e86da54f1149425ef09f7366d295f50b4 EBUILD unittest2-1.1.0.ebuild 1030 SHA256 40c1b7f21122d174c7817f24e263f3f5db89cf593fa0fbceac78efed5bae7585 SHA512 000d61879f259527d09a37e080ed93a86abc5ec8e440364e15daa947906b8305c3433ca5db0f16763f0ca11ede73ede703fe482e71e27c33e29152b93533fae2 WHIRLPOOL f1066e39436be680607f3142a2b0eecd39096c00c75ab6c6cf85a1be50182e877003983c1fe4accfbcf3a45739c107a01ce94dd43a84ff73809c2e0e852bab48
DIST unittest2py3k-0.5.1.tar.gz 55493 SHA256 78249c5f1ac508a34d9d131d43a89d77bf154186f3ea5f7a6b993d3f3535d403 SHA512 d56a416355abd905f22f5bdceab8305f8f2e28b17dd1250d4c2ab637e20745836a8bc0c8ba1356122b355ba6ad43c9a7b4284699a8b54fe6d8612b9c4565be2b WHIRLPOOL 526ae793735aa5c5eaa490d3a5fbd2a11ffe9e83d22fd246dd165891c4f03733484e3bb38b68d07ec12379298f19b358181feb2ef584db9e421ed6dcbfc367cd MISC ChangeLog 7525 SHA256 7da3c85ed292f685320fbf24e5cd83fde1c09595a4d6e2fcb48ad5fb19de2e9b SHA512 2caffdb4fe94abbf973de193ec87d005b0fa87d8cb421a095a3dbb964d9e00e105ede604c085c174154168d31a09e96fbdcef1415531decf16de42982b19cdf7 WHIRLPOOL 3b872750b7ea163b185af113b1bfdfd0b6eae71e71c6c9de8bca7948a70025344eb5fdaa86e6bc3b4c3ff385c8a3606ef5a845f7d695c6fae4588bebc4fb0ecc
EBUILD unittest2-0.5.1-r1.ebuild 1642 SHA256 1bdcd84a34e2524547e132aadecea2cff8cc30602216eab89b561a62d7e28d20 SHA512 bcdc0af3461e9079d087838c77e6163d76d93e6fe64103f40559ed5984312261c60beead7183daf94eab818f642220695de79467f0037482384156949b914a66 WHIRLPOOL 1fa94b77e26c3e5c031f529f5e808f377c9f503b18c0ea74c4c3602dbca15d5548af603df23c19822bb6ff7471f8435fab868e2d2237a2bf7a933a5c6f7df2ee MISC ChangeLog-2015 8723 SHA256 d7b6daef11c99c4f462ca7f8b82a8be06b065ef99531140b696178e287a43d02 SHA512 bea4823769b03ed7eeeed096e9fb1f4d7540e4998d9ca00c64fed1da8a247c5a072e1e70f519ae83f92671cbe511d504e569f7023398dcaa20f6bb5296dbca0c WHIRLPOOL 95100ab350ead86cd4a608956cbd246cd2b10d2234c244b7a00e10b7b8a80d559879f8fa3a5b179742c96c0e40fa3f2872e9c4276852c269833e91cea7df1ca4
EBUILD unittest2-0.5.1.ebuild 1523 SHA256 9a408ac145edf55e127b7bdb4bfbec21063b80aee8578f90af50968670f0b526 SHA512 02a84be01a982f98d5e1595a5c5f23942eb9cd79b261d65126fed3ac97e10dceec249d516e915a59b8cb5f24129ffbdc20b4a4e51c141da144e0f42bab738ce0 WHIRLPOOL 3afa6b1a6cc8fbb807e4c56112ca2c34777e3ad917fa867dddf17d6b19af6f62ffec2c883bfb81ff0cd895e1291debef610fae0255fa7e03cfb9b40558b3929c MISC metadata.xml 378 SHA256 1bb689893c31f9bee03b10983cd7113af60eff936abccfc55ef6c1b6a751dd41 SHA512 b1db02e32f39f739de9a077d770579cd1adbca7bc7b9c1eb3e5800f5242a1706ec5a61694b98ea7e3e6f6099b128d22e731f4c49cf3c719bb38be52679845d34 WHIRLPOOL 5290b8af20241f80880f592ef04e0423213077a55e30211037c3e32a0a45019a4eb6d3511317123805a0ac7bcf7660854df5aca05e2f2f6fa6630957b01333e0
MISC ChangeLog 4330 SHA256 bc9ed0674ca2918d39a0a7e8dd5d1c1cded2e8c617663ac65ddbcab2572408bd SHA512 716953e6d1a52d9ea1d48c9d2b5fd51b48d652011bb7d25e01d052b71648def78c118800313ac1752de468a75af73429de8d88f14e9a3ee593af88e216576958 WHIRLPOOL 96c871f6ab850a93cb97ba00879cc6b5841a3a47e7add2bb9cf690bf4b7938ebacf2ae1ab0eb6b441c693dbb7f485df1646a3c72b6d46aa7c235c3d8be25d173
MISC metadata.xml 232 SHA256 4a79028f179736bb77b3a063b34361732f0b9c13ee8fe972ecef8904bc2119a0 SHA512 d676b7510152db66389f8ee2f36d05ad5957b7ddc74be65b25831dff1a38708b0a9e1b84e6710a83a3a6a7c69d2d2c1939e5f57da94fef6e900063ac04e69ebc WHIRLPOOL 584c77c8d653b036b4962cf263f9766c475b79a9c97aed42e7f78b7500dc08e05ea62beb29fac68103dff9175183eed65473a9df769e34afdc4b7a9499c0f879
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
iQIcBAEBCgAGBQJR/jzMAAoJELp701BxlEWfFuEP/RSs3dsh9D8TOL/EuRQYZvv3
ehtO0E+TN3F0SDRMLEJF5NmbltAb7FSTSk+bmP4Kavz1lZV/1AjEuMIetHPu/GBM
+dioNc6BeP8vfQf2wPT80FcdVKVeoOi7HfDiUSoOREza1tTyPAOX7nqx7A2ch0em
lAKd8unmR/32hI81ok5LdjrpAEvCISPKWprKTgQCzkpuBhdyP51L9jLe+J1ane/J
yQxlfgTGz4Rhm84wBY+XEMKbQi/aKGvDvoLsSAzQFTkA5/ck9xutj7kFp9VqSYrH
RlWfCqNQ7c9FJrVbOiKIqE8TPqsqCNa+M5GdiIWyvy6qB3h9j9xsZ1dZHM3PbO8i
LGSS2ceEHgjX8P/vYMe6Pln/A92ZzHCSOTf59Y2Y+IhVxA3RzovxSA88TiC1TlvK
mItK3bCeDm3Yz+fQPfjOnIZfIKmUOuZ8iHb32FAAF3YFiwxjsZWy65R+9GyN100x
njYhsPRNbzlahTdrODdC44A4DxYvs2hMdeb64HuRR9n9mIYDr0zTIlUUlYO7tCO9
Jyj5zi65EWdByv6i78UD+ULGzbN7wG42q1TDxC1C0VmL2dvSTu600iNWkXPmtzSs
SDqIZ6h/fQmjKq4MFpe4AL+SvgobAy5XNx6YVn7KhLkIGgmKl+lVs7fB904lMylW
w9/rqJbE61G4DlixoAbu
=/Qdg
-----END PGP SIGNATURE-----

View File

@ -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,

View File

@ -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()

View File

@ -1,8 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata> <pkgmetadata>
<herd>python</herd> <maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<upstream> <upstream>
<remote-id type="pypi">unittest2</remote-id> <remote-id type="pypi">unittest2</remote-id>
<remote-id type="github">testing-cabal/unittest-ext</remote-id>
</upstream> </upstream>
</pkgmetadata> </pkgmetadata>

View File

@ -1,61 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/unittest2/unittest2-0.5.1-r1.ebuild,v 1.10 2013/08/04 11:39:55 ago Exp $
EAPI=5
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} )
inherit distutils-r1
PY3_P=${PN}py3k-${PV}
DESCRIPTION="The new features in unittest for Python 2.7 backported to Python 2.4+"
HOMEPAGE="http://pypi.python.org/pypi/unittest2
http://pypi.python.org/pypi/unittest2py3k http://code.google.com/p/unittest-ext/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
mirror://pypi/${PN:0:1}/${PN}/${PY3_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc ~x86 ~amd64-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
python_prepare_all() {
# Disable versioning of unit2 script to avoid collision with versioning performed by distutils_src_install().
sed -i -e "/'%s = unittest2:main_' % SCRIPT2,/d" setup.py || die
distutils-r1_python_prepare_all
}
select_source() {
if [[ ${EPYTHON} == python3* ]]; then
cd "${WORKDIR}"/${PY3_P} || die
else
cd "${S}" || die
fi
}
python_compile() {
select_source
distutils-r1_python_compile
}
src_test() {
# multiprocessing causes test failure with signals
local DISTUTILS_NO_PARALLEL_BUILD=1
distutils-r1_src_test
}
python_test() {
cd "${BUILD_DIR}" || die
scripts/unit2 discover -s lib || die "Tests fail with ${EPYTHON}"
}
python_install() {
select_source
distutils-r1_python_install
}

View File

@ -1,48 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/unittest2/unittest2-0.5.1.ebuild,v 1.18 2011/07/26 16:26:56 neurogeek Exp $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
# http://hg.python.org/unittest2/rev/d2be68aedc8e
PYTHON_TESTS_RESTRICTED_ABIS="2.4"
inherit distutils
DESCRIPTION="The new features in unittest for Python 2.7 backported to Python 2.4+."
HOMEPAGE="http://pypi.python.org/pypi/unittest2 http://pypi.python.org/pypi/unittest2py3k http://code.google.com/p/unittest-ext/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
mirror://pypi/${PN:0:1}/${PN}py3k/${PN}py3k-${PV}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE=""
DEPEND="dev-python/setuptools"
RDEPEND="${DEPEND}"
DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
DOCS="README.txt"
src_prepare() {
preparation() {
if [[ "${PYTHON_ABI}" == 3.* ]]; then
cp -pr "${WORKDIR}/${PN}py3k-${PV}" "${S}-${PYTHON_ABI}" || return 1
else
cp -pr "${S}" "${S}-${PYTHON_ABI}" || return 1
fi
# Disable versioning of unit2 script to avoid collision with versioning performed by distutils_src_install().
sed -e "/'%s = unittest2:main_' % SCRIPT2,/d" -i "${S}-${PYTHON_ABI}/setup.py" || return 1
}
python_execute_function -q preparation
}
src_test() {
testing() {
./unit2 discover
}
python_execute_function -s testing
}

View File

@ -0,0 +1,36 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 python3_4 pypy )
inherit distutils-r1
DESCRIPTION="The new features in unittest for Python 2.7 backported to Python 2.4+"
HOMEPAGE="https://pypi.python.org/pypi/unittest2"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc64 ~sparc"
IUSE=""
CDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/traceback2[${PYTHON_USEDEP}]
"
DEPEND="${CDEPEND}"
RDEPEND="${CDEPEND}"
python_prepare_all() {
local PATCHES=(
"${FILESDIR}"/remove-argparse-dependence.patch
)
distutils-r1_python_prepare_all
}
python_test() {
"${PYTHON}" -m unittest2 discover || die "tests failed under ${EPYTHON}"
}

View File

@ -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}"
}

View File

@ -1,12 +0,0 @@
DEFINED_PHASES=compile install postinst postrm prepare test
DEPEND=dev-python/setuptools dev-lang/python
DESCRIPTION=The new features in unittest for Python 2.7 backported to Python 2.4+.
EAPI=3
HOMEPAGE=http://pypi.python.org/pypi/unittest2 http://pypi.python.org/pypi/unittest2py3k http://code.google.com/p/unittest-ext/
KEYWORDS=alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos
LICENSE=BSD
RDEPEND=dev-python/setuptools dev-lang/python
SLOT=0
SRC_URI=mirror://pypi/u/unittest2/unittest2-0.5.1.tar.gz mirror://pypi/u/unittest2py3k/unittest2py3k-0.5.1.tar.gz
_eclasses_=distutils ad9e4720eb3e69090dd968b152fc611b multilib 165fc17c38d1b11dac2008280dab6e80 python efc1c55fc44c5b7272fc2ffba73c3e6f toolchain-funcs 1b1da0c45c555989dc5d832b54880783
_md5_=f775e38fde93c1eec34679112538040a

View File

@ -1,14 +0,0 @@
DEFINED_PHASES=compile configure install prepare test
DEPEND=dev-python/setuptools[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-)]
DESCRIPTION=The new features in unittest for Python 2.7 backported to Python 2.4+
EAPI=5
HOMEPAGE=http://pypi.python.org/pypi/unittest2 http://pypi.python.org/pypi/unittest2py3k http://code.google.com/p/unittest-ext/
IUSE=python_targets_python2_7
KEYWORDS=alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc ~x86 ~amd64-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos
LICENSE=BSD
RDEPEND=dev-python/setuptools[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-)]
REQUIRED_USE=|| ( python_targets_python2_7 )
SLOT=0
SRC_URI=mirror://pypi/u/unittest2/unittest2-0.5.1.tar.gz mirror://pypi/u/unittest2/unittest2py3k-0.5.1.tar.gz
_eclasses_=distutils-r1 f1707af2d2ad4cf700a9e690de6ed855 eutils ea170b525f6a38a006be05c9d9429f13 multibuild 742139c87a9fa3766f0c2b155e5522bf multilib 165fc17c38d1b11dac2008280dab6e80 multiprocessing eb9be4b678c4e71f3f530a767df31912 python-r1 dcd61d7a5c283f18cfe763552b09eb88 python-utils-r1 d275302cd06aedef2ba08f81f3104206 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 xdg-utils e2b2bd56125ce8cf59ce30c642b59d48
_md5_=a0f511c99ac5040db8fed83ecc13c61d

View File

@ -0,0 +1,14 @@
DEFINED_PHASES=compile configure install prepare test
DEPEND=dev-python/setuptools[python_targets_pypy(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,-python_single_target_pypy(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-)] dev-python/six[python_targets_pypy(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,-python_single_target_pypy(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-)] dev-python/traceback2[python_targets_pypy(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,-python_single_target_pypy(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-)] python_targets_pypy? ( >=virtual/pypy-5:0= ) python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) python_targets_python3_4? ( dev-lang/python:3.4 ) >=dev-lang/python-exec-2:=[python_targets_pypy(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,-python_single_target_pypy(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-)]
DESCRIPTION=The new features in unittest for Python 2.7 backported to Python 2.4+
EAPI=5
HOMEPAGE=https://pypi.python.org/pypi/unittest2
IUSE=python_targets_pypy python_targets_python2_7 python_targets_python3_4
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ppc64 ~sparc
LICENSE=BSD
RDEPEND=dev-python/setuptools[python_targets_pypy(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,-python_single_target_pypy(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-)] dev-python/six[python_targets_pypy(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,-python_single_target_pypy(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-)] dev-python/traceback2[python_targets_pypy(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,-python_single_target_pypy(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-)] python_targets_pypy? ( >=virtual/pypy-5:0= ) python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) python_targets_python3_4? ( dev-lang/python:3.4 ) >=dev-lang/python-exec-2:=[python_targets_pypy(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,-python_single_target_pypy(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-)]
REQUIRED_USE=|| ( python_targets_pypy python_targets_python2_7 python_targets_python3_4 )
SLOT=0
SRC_URI=mirror://pypi/u/unittest2/unittest2-1.0.1.tar.gz
_eclasses_=distutils-r1 039ba10839816478cfb070fdeb053906 epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea ltprune 2770eed66a9b8ef944714cd0e968182e multibuild 72647e255187a1fadc81097b3657e5c3 multilib 0236be304ee52e7f179ed2f337075515 multiprocessing 284a473719153462f3e974d86c8cb81c python-r1 0c067f080a047742ffac024b16895b45 python-utils-r1 c11fc374357e6ad9ddfe2e9f931e4d29 toolchain-funcs 6eb35f81556258a4bc9182ad3dfd58ee xdg-utils b9389dfad0ee8f8e0b2a41b79fcf7120
_md5_=fd99e48d2f99a195d1242bb3e11c9e86

View File

@ -0,0 +1,14 @@
DEFINED_PHASES=compile configure install prepare test
DEPEND=dev-python/setuptools[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-)] dev-python/linecache2[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-)] >=dev-python/six-1.4[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-)] dev-python/traceback2[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-)] python_targets_pypy? ( >=virtual/pypy-5:0= ) python_targets_pypy3? ( >=virtual/pypy3-5:0= ) python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) python_targets_python3_4? ( dev-lang/python:3.4 ) python_targets_python3_5? ( dev-lang/python:3.5 ) python_targets_python3_6? ( dev-lang/python:3.6 ) >=dev-lang/python-exec-2:=[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-)]
DESCRIPTION=The new features in unittest backported to Python 2.4+
EAPI=5
HOMEPAGE=https://pypi.python.org/pypi/unittest2 https://github.com/testing-cabal/unittest-ext
IUSE=python_targets_pypy python_targets_pypy3 python_targets_python2_7 python_targets_python3_4 python_targets_python3_5 python_targets_python3_6
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
LICENSE=BSD
RDEPEND=dev-python/setuptools[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-)] dev-python/linecache2[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-)] >=dev-python/six-1.4[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-)] dev-python/traceback2[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-)] python_targets_pypy? ( >=virtual/pypy-5:0= ) python_targets_pypy3? ( >=virtual/pypy3-5:0= ) python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) python_targets_python3_4? ( dev-lang/python:3.4 ) python_targets_python3_5? ( dev-lang/python:3.5 ) python_targets_python3_6? ( dev-lang/python:3.6 ) >=dev-lang/python-exec-2:=[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-)]
REQUIRED_USE=|| ( python_targets_pypy python_targets_pypy3 python_targets_python2_7 python_targets_python3_4 python_targets_python3_5 python_targets_python3_6 )
SLOT=0
SRC_URI=mirror://pypi/u/unittest2/unittest2-1.1.0.tar.gz
_eclasses_=distutils-r1 039ba10839816478cfb070fdeb053906 epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea ltprune 2770eed66a9b8ef944714cd0e968182e multibuild 72647e255187a1fadc81097b3657e5c3 multilib 0236be304ee52e7f179ed2f337075515 multiprocessing 284a473719153462f3e974d86c8cb81c python-r1 0c067f080a047742ffac024b16895b45 python-utils-r1 c11fc374357e6ad9ddfe2e9f931e4d29 toolchain-funcs 6eb35f81556258a4bc9182ad3dfd58ee xdg-utils b9389dfad0ee8f8e0b2a41b79fcf7120
_md5_=9b759e26a1653e92798bfd31af54c677