NetBSD Problem Report #47386

From www@NetBSD.org  Mon Dec 31 10:50:08 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id C50B563EA19
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 31 Dec 2012 10:50:08 +0000 (UTC)
Message-Id: <20121231105007.5AAB663EA19@www.NetBSD.org>
Date: Mon, 31 Dec 2012 10:50:07 +0000 (UTC)
From: richard.palo@baou.fr
Reply-To: richard.palo@baou.fr
To: gnats-bugs@NetBSD.org
Subject: add pkgsrc/devel/py-unittest2 0.5.1 supporting up to but not including python3
X-Send-Pr-Version: www-1.0

>Number:         47386
>Category:       pkg
>Synopsis:       add pkgsrc/devel/py-unittest2 0.5.1 supporting up to but not including python3
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 31 10:55:00 +0000 2012
>Last-Modified:  Tue Jan 22 15:25:02 +0000 2013
>Originator:     Richard PALO
>Release:        pkgsrc trunk
>Organization:
>Environment:
SunOS devzoneX 5.11 oi_151a7 i86pc i386 i86pc Solaris

>Description:
http://pypi.python.org/pypi/unittest2
unittest2 is a backport of the new features added to the unittest testing framework in Python 2.7. It is tested to run on Python 2.4 - 2.7.

To use unittest2 instead of unittest simply replace import unittest with import unittest2.
>How-To-Repeat:

>Fix:
cvs diff from pkgsrc/devel/py-unittest2:

Index: DESCR
===================================================================
RCS file: DESCR
diff -N DESCR
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ DESCR	31 Dec 2012 10:45:32 -0000
@@ -0,0 +1,5 @@
+Unittest2 is a backport of the new features added to the unittest testing
+framework in Python 2.7. It is tested to run on Python 2.4 - 2.7.
+
+To use unittest2 instead of unittest simply replace import unittest with
+import unittest2.
Index: Makefile
===================================================================
RCS file: Makefile
diff -N Makefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Makefile	31 Dec 2012 10:45:32 -0000
@@ -0,0 +1,29 @@
+# $NetBSD$
+
+DISTNAME=		unittest2-0.5.1
+PKGNAME=		${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=		devel python
+MASTER_SITES=	http://pypi.python.org/packages/source/u/unittest2/
+
+MAINTAINER=		pkgsrc-users@NetBSD.org
+HOMEPAGE=		http://pypi.python.org/pypi/unittest2
+COMMENT=		Unittest features for Python 2.7 backported to Python 2.3+
+LICENSE=		original-bsd
+
+PYTHON_VERSIONS_INCLUDE_3X = no
+
+CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q}
+CONFIGURE_ENV+= PYTH_CONFIGDIR=${BUILDLINK_PREFIX.${PYPACKAGE}}/${PYLIB}/config
+INSTALL_TARGET= installshared
+PY_PATCHPLIST=  yes
+PLIST_SUBST+=   PYLIB=${PYLIB:Q} PYPKGPREFIX=${PYPKGPREFIX:Q}
+
+DOCDIR=			${PREFIX}/share/doc/${PYPKGPREFIX}-unittest2
+
+post-install:
+				${INSTALL_DATA_DIR} ${DESTDIR:Q}${DOCDIR}
+				${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR:Q}${DOCDIR}
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
Index: PLIST
===================================================================
RCS file: PLIST
diff -N PLIST
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ PLIST	31 Dec 2012 10:45:32 -0000
@@ -0,0 +1,97 @@
+@comment $NetBSD$
+bin/unit2
+bin/unit2-2.7
+bin/unit2.py
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/unittest2/__init__.py
+${PYSITELIB}/unittest2/__init__.pyc
+${PYSITELIB}/unittest2/__init__.pyo
+${PYSITELIB}/unittest2/__main__.py
+${PYSITELIB}/unittest2/__main__.pyc
+${PYSITELIB}/unittest2/__main__.pyo
+${PYSITELIB}/unittest2/case.py
+${PYSITELIB}/unittest2/case.pyc
+${PYSITELIB}/unittest2/case.pyo
+${PYSITELIB}/unittest2/collector.py
+${PYSITELIB}/unittest2/collector.pyc
+${PYSITELIB}/unittest2/collector.pyo
+${PYSITELIB}/unittest2/compatibility.py
+${PYSITELIB}/unittest2/compatibility.pyc
+${PYSITELIB}/unittest2/compatibility.pyo
+${PYSITELIB}/unittest2/loader.py
+${PYSITELIB}/unittest2/loader.pyc
+${PYSITELIB}/unittest2/loader.pyo
+${PYSITELIB}/unittest2/main.py
+${PYSITELIB}/unittest2/main.pyc
+${PYSITELIB}/unittest2/main.pyo
+${PYSITELIB}/unittest2/result.py
+${PYSITELIB}/unittest2/result.pyc
+${PYSITELIB}/unittest2/result.pyo
+${PYSITELIB}/unittest2/runner.py
+${PYSITELIB}/unittest2/runner.pyc
+${PYSITELIB}/unittest2/runner.pyo
+${PYSITELIB}/unittest2/signals.py
+${PYSITELIB}/unittest2/signals.pyc
+${PYSITELIB}/unittest2/signals.pyo
+${PYSITELIB}/unittest2/suite.py
+${PYSITELIB}/unittest2/suite.pyc
+${PYSITELIB}/unittest2/suite.pyo
+${PYSITELIB}/unittest2/test/__init__.py
+${PYSITELIB}/unittest2/test/__init__.pyc
+${PYSITELIB}/unittest2/test/__init__.pyo
+${PYSITELIB}/unittest2/test/dummy.py
+${PYSITELIB}/unittest2/test/dummy.pyc
+${PYSITELIB}/unittest2/test/dummy.pyo
+${PYSITELIB}/unittest2/test/support.py
+${PYSITELIB}/unittest2/test/support.pyc
+${PYSITELIB}/unittest2/test/support.pyo
+${PYSITELIB}/unittest2/test/test_assertions.py
+${PYSITELIB}/unittest2/test/test_assertions.pyc
+${PYSITELIB}/unittest2/test/test_assertions.pyo
+${PYSITELIB}/unittest2/test/test_break.py
+${PYSITELIB}/unittest2/test/test_break.pyc
+${PYSITELIB}/unittest2/test/test_break.pyo
+${PYSITELIB}/unittest2/test/test_case.py
+${PYSITELIB}/unittest2/test/test_case.pyc
+${PYSITELIB}/unittest2/test/test_case.pyo
+${PYSITELIB}/unittest2/test/test_discovery.py
+${PYSITELIB}/unittest2/test/test_discovery.pyc
+${PYSITELIB}/unittest2/test/test_discovery.pyo
+${PYSITELIB}/unittest2/test/test_functiontestcase.py
+${PYSITELIB}/unittest2/test/test_functiontestcase.pyc
+${PYSITELIB}/unittest2/test/test_functiontestcase.pyo
+${PYSITELIB}/unittest2/test/test_loader.py
+${PYSITELIB}/unittest2/test/test_loader.pyc
+${PYSITELIB}/unittest2/test/test_loader.pyo
+${PYSITELIB}/unittest2/test/test_new_tests.py
+${PYSITELIB}/unittest2/test/test_new_tests.pyc
+${PYSITELIB}/unittest2/test/test_new_tests.pyo
+${PYSITELIB}/unittest2/test/test_program.py
+${PYSITELIB}/unittest2/test/test_program.pyc
+${PYSITELIB}/unittest2/test/test_program.pyo
+${PYSITELIB}/unittest2/test/test_result.py
+${PYSITELIB}/unittest2/test/test_result.pyc
+${PYSITELIB}/unittest2/test/test_result.pyo
+${PYSITELIB}/unittest2/test/test_runner.py
+${PYSITELIB}/unittest2/test/test_runner.pyc
+${PYSITELIB}/unittest2/test/test_runner.pyo
+${PYSITELIB}/unittest2/test/test_setups.py
+${PYSITELIB}/unittest2/test/test_setups.pyc
+${PYSITELIB}/unittest2/test/test_setups.pyo
+${PYSITELIB}/unittest2/test/test_skipping.py
+${PYSITELIB}/unittest2/test/test_skipping.pyc
+${PYSITELIB}/unittest2/test/test_skipping.pyo
+${PYSITELIB}/unittest2/test/test_suite.py
+${PYSITELIB}/unittest2/test/test_suite.pyc
+${PYSITELIB}/unittest2/test/test_suite.pyo
+${PYSITELIB}/unittest2/test/test_unittest2_with.py
+${PYSITELIB}/unittest2/test/test_unittest2_with.pyc
+${PYSITELIB}/unittest2/test/test_unittest2_with.pyo
+${PYSITELIB}/unittest2/util.py
+${PYSITELIB}/unittest2/util.pyc
+${PYSITELIB}/unittest2/util.pyo
+share/doc/${PYPKGPREFIX}-unittest2/README.txt
Index: distinfo
===================================================================
RCS file: distinfo
diff -N distinfo
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ distinfo	31 Dec 2012 10:45:32 -0000
@@ -0,0 +1,5 @@
+$NetBSD$
+
+SHA1 (unittest2-0.5.1.tar.gz) = 2299652dc1c0155d67d6574d9f854de45d36a7ce
+RMD160 (unittest2-0.5.1.tar.gz) = aa83b1d6dedaa71a9e6d3bed4028e855bef04821
+Size (unittest2-0.5.1.tar.gz) = 62470 bytes

>Audit-Trail:
From: Richard PALO <richard.palo@baou.fr>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47386: add pkgsrc/devel/py-unittest2 0.5.1 supporting up
 to but not including python3
Date: Tue, 22 Jan 2013 16:22:11 +0100

 This is a multi-part message in MIME format.
 --------------060502050102010201030902
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit

 Attached is a Makefile cleaned up a bit as well as an updated PLIST

 --------------060502050102010201030902
 Content-Type: text/plain; charset=UTF-8;
  name="Makefile"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="Makefile"

 # $NetBSD$

 DISTNAME=		unittest2-0.5.1
 PKGNAME=		${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=		devel python
 MASTER_SITES=	http://pypi.python.org/packages/source/u/unittest2/

 MAINTAINER=		pkgsrc-users@NetBSD.org
 HOMEPAGE=		http://pypi.python.org/pypi/unittest2
 COMMENT=		Unittest features for Python 2.7 backported to Python 2.3+
 LICENSE=		original-bsd

 PYTHON_VERSIONS_INCLUDE_3X = no

 DOCDIR=			share/doc/${PKGBASE}
 INSTALLATION_DIRS+=	${DOCDIR}
 PLIST_SUBST+=		DOCDIR=${DOCDIR}

 post-install:
 				${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR}${PREFIX}/${DOCDIR}

 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"

 --------------060502050102010201030902
 Content-Type: text/plain; charset=UTF-8;
  name="PLIST"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="PLIST"

 @comment $NetBSD$
 bin/unit2
 bin/unit2-2.7
 bin/unit2.py
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
 ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/unittest2/__init__.py
 ${PYSITELIB}/unittest2/__init__.pyc
 ${PYSITELIB}/unittest2/__init__.pyo
 ${PYSITELIB}/unittest2/__main__.py
 ${PYSITELIB}/unittest2/__main__.pyc
 ${PYSITELIB}/unittest2/__main__.pyo
 ${PYSITELIB}/unittest2/case.py
 ${PYSITELIB}/unittest2/case.pyc
 ${PYSITELIB}/unittest2/case.pyo
 ${PYSITELIB}/unittest2/collector.py
 ${PYSITELIB}/unittest2/collector.pyc
 ${PYSITELIB}/unittest2/collector.pyo
 ${PYSITELIB}/unittest2/compatibility.py
 ${PYSITELIB}/unittest2/compatibility.pyc
 ${PYSITELIB}/unittest2/compatibility.pyo
 ${PYSITELIB}/unittest2/loader.py
 ${PYSITELIB}/unittest2/loader.pyc
 ${PYSITELIB}/unittest2/loader.pyo
 ${PYSITELIB}/unittest2/main.py
 ${PYSITELIB}/unittest2/main.pyc
 ${PYSITELIB}/unittest2/main.pyo
 ${PYSITELIB}/unittest2/result.py
 ${PYSITELIB}/unittest2/result.pyc
 ${PYSITELIB}/unittest2/result.pyo
 ${PYSITELIB}/unittest2/runner.py
 ${PYSITELIB}/unittest2/runner.pyc
 ${PYSITELIB}/unittest2/runner.pyo
 ${PYSITELIB}/unittest2/signals.py
 ${PYSITELIB}/unittest2/signals.pyc
 ${PYSITELIB}/unittest2/signals.pyo
 ${PYSITELIB}/unittest2/suite.py
 ${PYSITELIB}/unittest2/suite.pyc
 ${PYSITELIB}/unittest2/suite.pyo
 ${PYSITELIB}/unittest2/test/__init__.py
 ${PYSITELIB}/unittest2/test/__init__.pyc
 ${PYSITELIB}/unittest2/test/__init__.pyo
 ${PYSITELIB}/unittest2/test/dummy.py
 ${PYSITELIB}/unittest2/test/dummy.pyc
 ${PYSITELIB}/unittest2/test/dummy.pyo
 ${PYSITELIB}/unittest2/test/support.py
 ${PYSITELIB}/unittest2/test/support.pyc
 ${PYSITELIB}/unittest2/test/support.pyo
 ${PYSITELIB}/unittest2/test/test_assertions.py
 ${PYSITELIB}/unittest2/test/test_assertions.pyc
 ${PYSITELIB}/unittest2/test/test_assertions.pyo
 ${PYSITELIB}/unittest2/test/test_break.py
 ${PYSITELIB}/unittest2/test/test_break.pyc
 ${PYSITELIB}/unittest2/test/test_break.pyo
 ${PYSITELIB}/unittest2/test/test_case.py
 ${PYSITELIB}/unittest2/test/test_case.pyc
 ${PYSITELIB}/unittest2/test/test_case.pyo
 ${PYSITELIB}/unittest2/test/test_discovery.py
 ${PYSITELIB}/unittest2/test/test_discovery.pyc
 ${PYSITELIB}/unittest2/test/test_discovery.pyo
 ${PYSITELIB}/unittest2/test/test_functiontestcase.py
 ${PYSITELIB}/unittest2/test/test_functiontestcase.pyc
 ${PYSITELIB}/unittest2/test/test_functiontestcase.pyo
 ${PYSITELIB}/unittest2/test/test_loader.py
 ${PYSITELIB}/unittest2/test/test_loader.pyc
 ${PYSITELIB}/unittest2/test/test_loader.pyo
 ${PYSITELIB}/unittest2/test/test_new_tests.py
 ${PYSITELIB}/unittest2/test/test_new_tests.pyc
 ${PYSITELIB}/unittest2/test/test_new_tests.pyo
 ${PYSITELIB}/unittest2/test/test_program.py
 ${PYSITELIB}/unittest2/test/test_program.pyc
 ${PYSITELIB}/unittest2/test/test_program.pyo
 ${PYSITELIB}/unittest2/test/test_result.py
 ${PYSITELIB}/unittest2/test/test_result.pyc
 ${PYSITELIB}/unittest2/test/test_result.pyo
 ${PYSITELIB}/unittest2/test/test_runner.py
 ${PYSITELIB}/unittest2/test/test_runner.pyc
 ${PYSITELIB}/unittest2/test/test_runner.pyo
 ${PYSITELIB}/unittest2/test/test_setups.py
 ${PYSITELIB}/unittest2/test/test_setups.pyc
 ${PYSITELIB}/unittest2/test/test_setups.pyo
 ${PYSITELIB}/unittest2/test/test_skipping.py
 ${PYSITELIB}/unittest2/test/test_skipping.pyc
 ${PYSITELIB}/unittest2/test/test_skipping.pyo
 ${PYSITELIB}/unittest2/test/test_suite.py
 ${PYSITELIB}/unittest2/test/test_suite.pyc
 ${PYSITELIB}/unittest2/test/test_suite.pyo
 ${PYSITELIB}/unittest2/test/test_unittest2_with.py
 ${PYSITELIB}/unittest2/test/test_unittest2_with.pyc
 ${PYSITELIB}/unittest2/test/test_unittest2_with.pyo
 ${PYSITELIB}/unittest2/util.py
 ${PYSITELIB}/unittest2/util.pyc
 ${PYSITELIB}/unittest2/util.pyo
 ${DOCDIR}/README.txt

 --------------060502050102010201030902--

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.