This is an update for our version of the unittest2 backport, bringing it
up to the newest version from 2015, which some other testing framework
items now specify (including any updates to tox). There were many
fixes between releases, see https://hg.python.org/unittest2

To test this update, you'll want the four new ports I've just sent:
py-argparse, py-fixtures, py-linecache2 and py-traceback2.

6 failed, 381 passed, 3 skipped, 1 warnings in 3.90 seconds

Tested all consumers where possible (py-autobahn's tests are broken;
it wants an outdated version of pytest - this is a test dep only
for autobahn).  Test results are identical except for py-contextlib2,
where this update remedies one failure.


(cc maintainer)

Comments/OKs?




Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/py-unittest2/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile    18 Nov 2019 03:23:00 -0000      1.7
+++ Makefile    20 Dec 2019 04:51:07 -0000
@@ -2,11 +2,12 @@
 
 COMMENT =              backport of new features added to unittest
 
-MODPY_EGG_VERSION =    0.5.1
+MODPY_EGG_VERSION =    1.1.0
 DISTNAME =             unittest2-${MODPY_EGG_VERSION}
 PKGNAME =              py-${DISTNAME}
 CATEGORIES =           devel
-REVISION =             1
+
+HOMEPAGE =             https://hg.python.org/unittest2
 
 MAINTAINER =           frantisek holop <min...@obiit.org>
 
@@ -17,14 +18,17 @@ MODPY_PI =          Yes
 
 MODULES =              lang/python
 MODPY_SETUPTOOLS =     Yes
+MODPY_PYTEST =         Yes
+MODPY_PYTEST_ARGS =    unittest2
+
+BUILD_DEPENDS =                devel/py-argparse \
+                       devel/py-traceback2
 
-TEST_DEPENDS =         devel/py-unittest2
+RUN_DEPENDS =          devel/py-six \
+                       devel/py-traceback2
 
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/unittest2
        ${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/doc/unittest2
-
-do-test:
-       cd ${WRKSRC}/unittest2/test && unit2 discover
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/py-unittest2/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo    12 Mar 2013 10:39:42 -0000      1.1.1.1
+++ distinfo    20 Dec 2019 04:51:07 -0000
@@ -1,2 +1,2 @@
-SHA256 (unittest2-0.5.1.tar.gz) = ql3ozfZU2EM3nJe9HuJA6GNW0zVal7FHpvP00UkkenE=
-SIZE (unittest2-0.5.1.tar.gz) = 62470
+SHA256 (unittest2-1.1.0.tar.gz) = IogqDkGMKE4fcYqCKzsCKUTVPS2QjhaQsxmp0+ssBXk=
+SIZE (unittest2-1.1.0.tar.gz) = 81432
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/py-unittest2/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST   12 Mar 2013 10:39:42 -0000      1.1.1.1
+++ pkg/PLIST   20 Dec 2019 04:51:07 -0000
@@ -1,13 +1,12 @@
-@comment $OpenBSD: PLIST,v 1.1.1.1 2013/03/12 10:39:42 benoit Exp $
+@comment $OpenBSD: PLIST,v$
 bin/unit2
-bin/unit2-${MODPY_VERSION}
-bin/unit2.py
 lib/python${MODPY_VERSION}/site-packages/unittest2/
 
lib/python${MODPY_VERSION}/site-packages/unittest2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
 
lib/python${MODPY_VERSION}/site-packages/unittest2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
 
lib/python${MODPY_VERSION}/site-packages/unittest2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
 
lib/python${MODPY_VERSION}/site-packages/unittest2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
 
lib/python${MODPY_VERSION}/site-packages/unittest2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt
+lib/python${MODPY_VERSION}/site-packages/unittest2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
 
lib/python${MODPY_VERSION}/site-packages/unittest2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
 lib/python${MODPY_VERSION}/site-packages/unittest2/__init__.py
 lib/python${MODPY_VERSION}/site-packages/unittest2/__init__.pyc
@@ -34,6 +33,8 @@ lib/python${MODPY_VERSION}/site-packages
 lib/python${MODPY_VERSION}/site-packages/unittest2/test/
 lib/python${MODPY_VERSION}/site-packages/unittest2/test/__init__.py
 lib/python${MODPY_VERSION}/site-packages/unittest2/test/__init__.pyc
+lib/python${MODPY_VERSION}/site-packages/unittest2/test/_test_unittest2_with.py
+lib/python${MODPY_VERSION}/site-packages/unittest2/test/_test_unittest2_with.pyc
 lib/python${MODPY_VERSION}/site-packages/unittest2/test/dummy.py
 lib/python${MODPY_VERSION}/site-packages/unittest2/test/dummy.pyc
 lib/python${MODPY_VERSION}/site-packages/unittest2/test/support.py

Reply via email to