Hi, In our tree we have an old version of unittest2 (0.5.1 vs 1.1.0). I tried to update it and... well it wants a lot of backports, I stopped creating ports for them after the third one when I saw it wasn't really maintained [0].
[0]: https://github.com/testing-cabal/linecache2/issues/1 AFAICU, unittest2 doesn't have anything more than unittest from stdlib and it was there only for old python version. Currently, it only has TDEP: sqlite> SELECT FULLPKGPATH FROM ports WHERE TEST_DEPENDS like sqlite> '%unitte%'; devel/py-funcsigs devel/py-unittest2 security/py-rsa py-rsa has moved away from unittest2 (see my update pending reviews on ports@). Here's a diff to move devel/py-funcsigs away from unittest2 if needed. With it tests are still okay and devel/py-mock looks the same (fortunately as the patch should only affect make test on py-funcsigs :)). Maybe it can be done more elegantly but I didn't know how. So basically we have something old, not really 'updatable', not really useful... and only little used. What are your opinions? Cheers, Daniel Index: Makefile =================================================================== RCS file: /cvs/ports/devel/py-funcsigs/Makefile,v retrieving revision 1.2 diff -u -p -r1.2 Makefile --- Makefile 7 Jan 2016 21:35:28 -0000 1.2 +++ Makefile 27 Mar 2016 21:28:21 -0000 @@ -6,7 +6,7 @@ MODPY_EGG_VERSION= 0.4 DISTNAME= funcsigs-${MODPY_EGG_VERSION} PKGNAME= py-${DISTNAME} CATEGORIES= devel -REVISION= 0 +REVISION= 1 # MIT PERMIT_PACKAGE_CDROM= Yes @@ -18,8 +18,15 @@ MODPY_SETUPTOOLS= Yes FLAVORS= python3 FLAVOR?= -.if ${FLAVOR} != python3 -TEST_DEPENDS+= devel/py-unittest2 -.endif +post-extract: + sed -i 's,unittest2,,' ${WRKSRC}/setup.py + sed -i 's,unittest2.collector,tests,' ${WRKSRC}/setup.py +.for f in test_formatannotation.py test_funcsigs.py test_inspect.py + sed -i 's,import unittest2 as unittest,import unittest,' \ + ${WRKSRC}/tests/$f +.endfor + +do-test: + cd ${WRKSRC} && ${MODPY_BIN} -m pytest .include <bsd.port.mk>