Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Dec 2016 23:05:09 +0000 (UTC)
From:      Mark Felder <feld@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r429200 - in head/devel: . py-unittest2
Message-ID:  <201612222305.uBMN59sN092357@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612222305.uBMN59sN092357>