Update py-unittests to 0.8.0. CHANGELOG 2014/11/05 - 0.8 * Issue #22457: Honour load_tests in the start_dir of discovery. 2014/10/31 - 0.7.1 Fix for 0.7.0 being broken. Also switches from both manual and entrypoint scripts to just entrypoint scripts to reduce the possibility of similar oversights in future. 2014/10/31 - 0.7.0 This release contains backports from cPython 3.5 of all (I think) commits since 2010, as of today. 2014/10/28 - 0.6.0 Many thanks to Mark Roddy and Ezio Melotti who contributed substantially to this release. * Changed supported Python versions to start at 2.6, and include all released 3.x and pypy. (Robert Collins) * Invoking unit2 without args starts test discovery * Added TestCase.assertWarns and TestCase.assertWarnsRegexp context managers * Fix Python issue 9926. TestSuite subclasses that override __call__ are called correctly. * Removed unused maxDiff parameter from TestCase.assertSequenceEqual. * DeprecationWarning for unsupported result objects (missing addSkip method) became RuntimeWarning. * Addition of TestCase.assertWarns as a context manager.diff -r1.2 -r1.3 pkgsrc/devel/py-unittest2/ALTERNATIVES
(obache)
@@ -1,7 +1,6 @@ | @@ -1,7 +1,6 @@ | |||
1 | Unittest2 is a backport of the new features added to the unittest testing | 1 | Unittest2 is a backport of the new features added to the unittest testing | |
2 | framework in Python 2.7. It is tested to run on Python 2.4 - 2.7. | 2 | framework in Python 2.7 and onwards. It is tested to run on Python 2.6, 2.7, | |
3 | 3.2, 3.3, 3.4 and pypy. | |||
3 | 4 | |||
4 | To use unittest2 instead of unittest simply replace import unittest with | 5 | To use unittest2 instead of unittest simply replace ''import unittest'' with | |
5 | import unittest2. | 6 | ''import unittest2''. | |
6 | ||||
7 | This is the version for Python 2.x. |
@@ -1,27 +1,30 @@ | @@ -1,27 +1,30 @@ | |||
1 | # $NetBSD: Makefile,v 1.7 2014/06/23 10:43:45 rodent Exp $ | 1 | # $NetBSD: Makefile,v 1.8 2014/12/13 08:36:03 obache Exp $ | |
2 | 2 | |||
3 | DISTNAME= unittest2-0.5.1 | 3 | DISTNAME= unittest2-0.8.0 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | PKGREVISION= 1 | |||
6 | CATEGORIES= devel python | 5 | CATEGORIES= devel python | |
7 | MASTER_SITES= http://pypi.python.org/packages/source/u/unittest2/ | 6 | MASTER_SITES= http://pypi.python.org/packages/source/u/unittest2/ | |
8 | 7 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://pypi.python.org/pypi/unittest2 | 9 | HOMEPAGE= http://pypi.python.org/pypi/unittest2 | |
11 | COMMENT= Unittest features for Python 2.7 (Python 2.x version) | 10 | COMMENT= New features in unittest backported to Python 2.4+ | |
12 | LICENSE= original-bsd | 11 | LICENSE= original-bsd | |
13 | 12 | |||
13 | DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six | |||
14 | DEPENDS+= ${PYPKGPREFIX}-argparse-[0-9]*:../../devel/py-argparse | |||
15 | ||||
14 | DOCDIR= share/doc/${PKGBASE} | 16 | DOCDIR= share/doc/${PKGBASE} | |
15 | INSTALLATION_DIRS+= ${DOCDIR} | 17 | INSTALLATION_DIRS+= ${DOCDIR} | |
16 | PLIST_SUBST+= DOCDIR=${DOCDIR} | 18 | PLIST_SUBST+= DOCDIR=${DOCDIR} | |
17 | PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} | 19 | PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} | |
18 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # see versioned_dependencies.mk | 20 | ||
21 | SUBST_CLASSES+= multi | |||
22 | SUBST_STAGE.multi= pre-configure | |||
23 | SUBST_FILES.multi= setup.py | |||
24 | SUBST_SED.multi= -e 's,unit2,unit2-${PYVERSSUFFIX},' | |||
19 | 25 | |||
20 | post-install: | 26 | post-install: | |
21 | ${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR}${PREFIX}/${DOCDIR} | 27 | ${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR}${PREFIX}/${DOCDIR} | |
22 | ${RM} ${DESTDIR}${PREFIX}/bin/unit2 | |||
23 | ${MV} ${DESTDIR}${PREFIX}/bin/unit2.py \ | |||
24 | ${DESTDIR}${PREFIX}/bin/unit2-${PYVERSSUFFIX}.py | |||
25 | 28 | |||
26 | .include "../../lang/python/egg.mk" | 29 | .include "../../lang/python/egg.mk" | |
27 | .include "../../mk/bsd.pkg.mk" | 30 | .include "../../mk/bsd.pkg.mk" |
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.3 2014/06/23 10:43:45 rodent Exp $ | 1 | @comment $NetBSD: PLIST,v 1.4 2014/12/13 08:36:03 obache Exp $ | |
2 | bin/unit2-${PYVERSSUFFIX} | 2 | bin/unit2-${PYVERSSUFFIX} | |
3 | bin/unit2-${PYVERSSUFFIX}.py | |||
4 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | 3 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | |
5 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | 4 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | |
6 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | 5 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | |
7 | ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt | 6 | ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt | |
7 | ${PYSITELIB}/${EGG_INFODIR}/requires.txt | |||
8 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | 8 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | |
9 | ${PYSITELIB}/unittest2/__init__.py | 9 | ${PYSITELIB}/unittest2/__init__.py | |
10 | ${PYSITELIB}/unittest2/__init__.pyc | 10 | ${PYSITELIB}/unittest2/__init__.pyc | |
11 | ${PYSITELIB}/unittest2/__init__.pyo | 11 | ${PYSITELIB}/unittest2/__init__.pyo | |
12 | ${PYSITELIB}/unittest2/__main__.py | 12 | ${PYSITELIB}/unittest2/__main__.py | |
13 | ${PYSITELIB}/unittest2/__main__.pyc | 13 | ${PYSITELIB}/unittest2/__main__.pyc | |
14 | ${PYSITELIB}/unittest2/__main__.pyo | 14 | ${PYSITELIB}/unittest2/__main__.pyo | |
15 | ${PYSITELIB}/unittest2/case.py | 15 | ${PYSITELIB}/unittest2/case.py | |
16 | ${PYSITELIB}/unittest2/case.pyc | 16 | ${PYSITELIB}/unittest2/case.pyc | |
17 | ${PYSITELIB}/unittest2/case.pyo | 17 | ${PYSITELIB}/unittest2/case.pyo | |
18 | ${PYSITELIB}/unittest2/collector.py | 18 | ${PYSITELIB}/unittest2/collector.py | |
19 | ${PYSITELIB}/unittest2/collector.pyc | 19 | ${PYSITELIB}/unittest2/collector.pyc | |
20 | ${PYSITELIB}/unittest2/collector.pyo | 20 | ${PYSITELIB}/unittest2/collector.pyo | |
@@ -32,26 +32,29 @@ ${PYSITELIB}/unittest2/result.pyc | @@ -32,26 +32,29 @@ ${PYSITELIB}/unittest2/result.pyc | |||
32 | ${PYSITELIB}/unittest2/result.pyo | 32 | ${PYSITELIB}/unittest2/result.pyo | |
33 | ${PYSITELIB}/unittest2/runner.py | 33 | ${PYSITELIB}/unittest2/runner.py | |
34 | ${PYSITELIB}/unittest2/runner.pyc | 34 | ${PYSITELIB}/unittest2/runner.pyc | |
35 | ${PYSITELIB}/unittest2/runner.pyo | 35 | ${PYSITELIB}/unittest2/runner.pyo | |
36 | ${PYSITELIB}/unittest2/signals.py | 36 | ${PYSITELIB}/unittest2/signals.py | |
37 | ${PYSITELIB}/unittest2/signals.pyc | 37 | ${PYSITELIB}/unittest2/signals.pyc | |
38 | ${PYSITELIB}/unittest2/signals.pyo | 38 | ${PYSITELIB}/unittest2/signals.pyo | |
39 | ${PYSITELIB}/unittest2/suite.py | 39 | ${PYSITELIB}/unittest2/suite.py | |
40 | ${PYSITELIB}/unittest2/suite.pyc | 40 | ${PYSITELIB}/unittest2/suite.pyc | |
41 | ${PYSITELIB}/unittest2/suite.pyo | 41 | ${PYSITELIB}/unittest2/suite.pyo | |
42 | ${PYSITELIB}/unittest2/test/__init__.py | 42 | ${PYSITELIB}/unittest2/test/__init__.py | |
43 | ${PYSITELIB}/unittest2/test/__init__.pyc | 43 | ${PYSITELIB}/unittest2/test/__init__.pyc | |
44 | ${PYSITELIB}/unittest2/test/__init__.pyo | 44 | ${PYSITELIB}/unittest2/test/__init__.pyo | |
45 | ${PYSITELIB}/unittest2/test/_test_unittest2_with.py | |||
46 | ${PYSITELIB}/unittest2/test/_test_unittest2_with.pyc | |||
47 | ${PYSITELIB}/unittest2/test/_test_unittest2_with.pyo | |||
45 | ${PYSITELIB}/unittest2/test/dummy.py | 48 | ${PYSITELIB}/unittest2/test/dummy.py | |
46 | ${PYSITELIB}/unittest2/test/dummy.pyc | 49 | ${PYSITELIB}/unittest2/test/dummy.pyc | |
47 | ${PYSITELIB}/unittest2/test/dummy.pyo | 50 | ${PYSITELIB}/unittest2/test/dummy.pyo | |
48 | ${PYSITELIB}/unittest2/test/support.py | 51 | ${PYSITELIB}/unittest2/test/support.py | |
49 | ${PYSITELIB}/unittest2/test/support.pyc | 52 | ${PYSITELIB}/unittest2/test/support.pyc | |
50 | ${PYSITELIB}/unittest2/test/support.pyo | 53 | ${PYSITELIB}/unittest2/test/support.pyo | |
51 | ${PYSITELIB}/unittest2/test/test_assertions.py | 54 | ${PYSITELIB}/unittest2/test/test_assertions.py | |
52 | ${PYSITELIB}/unittest2/test/test_assertions.pyc | 55 | ${PYSITELIB}/unittest2/test/test_assertions.pyc | |
53 | ${PYSITELIB}/unittest2/test/test_assertions.pyo | 56 | ${PYSITELIB}/unittest2/test/test_assertions.pyo | |
54 | ${PYSITELIB}/unittest2/test/test_break.py | 57 | ${PYSITELIB}/unittest2/test/test_break.py | |
55 | ${PYSITELIB}/unittest2/test/test_break.pyc | 58 | ${PYSITELIB}/unittest2/test/test_break.pyc | |
56 | ${PYSITELIB}/unittest2/test/test_break.pyo | 59 | ${PYSITELIB}/unittest2/test/test_break.pyo | |
57 | ${PYSITELIB}/unittest2/test/test_case.py | 60 | ${PYSITELIB}/unittest2/test/test_case.py |
@@ -1,5 +1,5 @@ | @@ -1,5 +1,5 @@ | |||
1 | $NetBSD: distinfo,v 1.1 2013/07/08 04:52:48 richard Exp $ | 1 | $NetBSD: distinfo,v 1.2 2014/12/13 08:36:03 obache Exp $ | |
2 | 2 | |||
3 | SHA1 (unittest2-0.5.1.tar.gz) = 2299652dc1c0155d67d6574d9f854de45d36a7ce | 3 | SHA1 (unittest2-0.8.0.tar.gz) = 36a3700bde086890bab5aece6c78c8f770c7bb15 | |
4 | RMD160 (unittest2-0.5.1.tar.gz) = aa83b1d6dedaa71a9e6d3bed4028e855bef04821 | 4 | RMD160 (unittest2-0.8.0.tar.gz) = 1e2bf086483d2eb9a74e7e89366d3a7712bf4aa3 | |
5 | Size (unittest2-0.5.1.tar.gz) = 62470 bytes | 5 | Size (unittest2-0.8.0.tar.gz) = 78312 bytes |