From owner-svn-ports-head@freebsd.org Thu Dec 22 23:05:10 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3FEA0C8DA15; Thu, 22 Dec 2016 23:05:10 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1A72E67E; Thu, 22 Dec 2016 23:05:10 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBMN59AE092360; Thu, 22 Dec 2016 23:05:09 GMT (envelope-from feld@FreeBSD.org) Received: (from feld@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBMN59sN092357; Thu, 22 Dec 2016 23:05:09 GMT (envelope-from feld@FreeBSD.org) Message-Id: <201612222305.uBMN59sN092357@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: feld set sender to feld@FreeBSD.org using -f From: Mark Felder Date: Thu, 22 Dec 2016 23:05:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r429200 - in head/devel: . py-unittest2 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2016 23:05:10 -0000 Author: feld Date: Thu Dec 22 23:05:08 2016 New Revision: 429200 URL: https://svnweb.freebsd.org/changeset/ports/429200 Log: devel/py-unittest2: Revive deleted port This port is still of value. The built-in unittest in Python 2.7 is missing features provided by unittest2 which backports from Python 3.x. Example code which produces a failure with 2.7's built-in unittest: import unittest2 import unittest class ExampleUT(unittest.TestCase): def test_unittest(self): for i in [1, 2, 3]: with self.subTest(i=i): self.assertEqual(i, i) class ExampleUT2(unittest2.TestCase): def test_unittest2(self): for i in [1, 2, 3]: with self.subTest(i=i): self.assertEqual(i, i) if __name__ == '__main__': unittest2.main() Added: head/devel/py-unittest2/ - copied from r422767, head/devel/py-unittest2/ Modified: head/devel/Makefile head/devel/py-unittest2/Makefile head/devel/py-unittest2/distinfo Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Thu Dec 22 23:02:32 2016 (r429199) +++ head/devel/Makefile Thu Dec 22 23:05:08 2016 (r429200) @@ -4703,6 +4703,7 @@ SUBDIR += py-uncompyle2 SUBDIR += py-unicodecsv SUBDIR += py-unipath + SUBDIR += py-unittest2 SUBDIR += py-unpaddedbase64 SUBDIR += py-update_checker SUBDIR += py-urlimport Modified: head/devel/py-unittest2/Makefile ============================================================================== --- head/devel/py-unittest2/Makefile Mon Sep 26 07:03:57 2016 (r422767) +++ head/devel/py-unittest2/Makefile Thu Dec 22 23:05:08 2016 (r429200) @@ -1,27 +1,28 @@ # $FreeBSD$ PORTNAME= unittest2 -PORTVERSION= 0.8.0 +PORTVERSION= 1.1.0 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= rm@FreeBSD.org -COMMENT= New features in unittest backported to Python 2.4+ - -DEPRECATED= Was only required for Pythons lesser than 2.7 -EXPIRATION_DATE= 2016-09-21 - -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six +MAINTAINER= feld@FreeBSD.org +COMMENT= New features in unittest backported to Python 2 LICENSE= BSD3CLAUSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}linecache2>0:devel/py-linecache2 \ + ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six \ + ${PYTHON_PKGNAMEPREFIX}traceback2>0:devel/py-traceback2 +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}linecache2>0:devel/py-linecache2 \ + ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six \ + ${PYTHON_PKGNAMEPREFIX}traceback2>0:devel/py-traceback2 + USES= python USE_PYTHON= autoplist distutils post-patch: - @${REINPLACE_CMD} -e "s|'argparse', 'six'|'six'|" \ + @${REINPLACE_CMD} -e "s|'argparse', ||" \ ${WRKSRC}/setup.py .include Modified: head/devel/py-unittest2/distinfo ============================================================================== --- head/devel/py-unittest2/distinfo Mon Sep 26 07:03:57 2016 (r422767) +++ head/devel/py-unittest2/distinfo Thu Dec 22 23:05:08 2016 (r429200) @@ -1,2 +1,3 @@ -SHA256 (unittest2-0.8.0.tar.gz) = bb00b9c261cf3fa6b84cc3e6c3a39edf74b3140345b3f677907635a2738a7e2a -SIZE (unittest2-0.8.0.tar.gz) = 78312 +TIMESTAMP = 1482445517 +SHA256 (unittest2-1.1.0.tar.gz) = 22882a0e418c284e1f718a822b3b022944d53d2d908e1690b319a9d3eb2c0579 +SIZE (unittest2-1.1.0.tar.gz) = 81432