pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-unittest2pytest devel/py-unittest2pytest: Imp...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c468c26ebaca
branches:  trunk
changeset: 375896:c468c26ebaca
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sun Feb 25 00:22:53 2018 +0000

description:
devel/py-unittest2pytest: Import version 0.3

unittest2pytest is a tool that helps rewriting Python unittest
test-cases into pytest test-cases. In contrast to other similar tools,
this handles keyword arguments, handles single-line test-cases and
several tests on one line, and uses context-handlers where
appropriate.  This is done by using lib2to3 and Python's mighty
inspect module.

diffstat:

 devel/py-unittest2pytest/ALTERNATIVES |   1 +
 devel/py-unittest2pytest/DESCR        |   6 ++++++
 devel/py-unittest2pytest/Makefile     |  21 +++++++++++++++++++++
 devel/py-unittest2pytest/PLIST        |  25 +++++++++++++++++++++++++
 devel/py-unittest2pytest/distinfo     |   6 ++++++
 5 files changed, 59 insertions(+), 0 deletions(-)

diffs (79 lines):

diff -r c76f6b03c9c9 -r c468c26ebaca devel/py-unittest2pytest/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-unittest2pytest/ALTERNATIVES     Sun Feb 25 00:22:53 2018 +0000
@@ -0,0 +1,1 @@
+bin/unittest2pytest @PREFIX@/bin/unittest2pytest@PYVERSSUFFIX@
diff -r c76f6b03c9c9 -r c468c26ebaca devel/py-unittest2pytest/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-unittest2pytest/DESCR    Sun Feb 25 00:22:53 2018 +0000
@@ -0,0 +1,6 @@
+unittest2pytest is a tool that helps rewriting Python unittest
+test-cases into pytest test-cases. In contrast to other similar tools,
+this handles keyword arguments, handles single-line test-cases and
+several tests on one line, and uses context-handlers where
+appropriate.  This is done by using lib2to3 and Python's mighty
+inspect module.
diff -r c76f6b03c9c9 -r c468c26ebaca devel/py-unittest2pytest/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-unittest2pytest/Makefile Sun Feb 25 00:22:53 2018 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2018/02/25 00:22:53 minskim Exp $
+
+DISTNAME=      unittest2pytest-0.3
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=u/unittest2pytest/}
+
+MAINTAINER=    minskim%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/pytest-dev/unittest2pytest
+COMMENT=       Tool to rewrite Python unittest into pytest test cases
+LICENSE=       gnu-gpl-v3
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/egg.mk"
+
+post-install:
+       ${MV} ${DESTDIR}${PREFIX}/bin/unittest2pytest \
+               ${DESTDIR}${PREFIX}/bin/unittest2pytest${PYVERSSUFFIX}
+
+.include "../../mk/bsd.pkg.mk"
diff -r c76f6b03c9c9 -r c468c26ebaca devel/py-unittest2pytest/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-unittest2pytest/PLIST    Sun Feb 25 00:22:53 2018 +0000
@@ -0,0 +1,25 @@
+@comment $NetBSD: PLIST,v 1.1 2018/02/25 00:22:53 minskim Exp $
+bin/unittest2pytest${PYVERSSUFFIX}
+${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}/unittest2pytest/__init__.py
+${PYSITELIB}/unittest2pytest/__init__.pyc
+${PYSITELIB}/unittest2pytest/__init__.pyo
+${PYSITELIB}/unittest2pytest/__main__.py
+${PYSITELIB}/unittest2pytest/__main__.pyc
+${PYSITELIB}/unittest2pytest/__main__.pyo
+${PYSITELIB}/unittest2pytest/fixes/__init__.py
+${PYSITELIB}/unittest2pytest/fixes/__init__.pyc
+${PYSITELIB}/unittest2pytest/fixes/__init__.pyo
+${PYSITELIB}/unittest2pytest/fixes/fix_remove_class.py
+${PYSITELIB}/unittest2pytest/fixes/fix_remove_class.pyc
+${PYSITELIB}/unittest2pytest/fixes/fix_remove_class.pyo
+${PYSITELIB}/unittest2pytest/fixes/fix_self_assert.py
+${PYSITELIB}/unittest2pytest/fixes/fix_self_assert.pyc
+${PYSITELIB}/unittest2pytest/fixes/fix_self_assert.pyo
+${PYSITELIB}/unittest2pytest/utils.py
+${PYSITELIB}/unittest2pytest/utils.pyc
+${PYSITELIB}/unittest2pytest/utils.pyo
diff -r c76f6b03c9c9 -r c468c26ebaca devel/py-unittest2pytest/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-unittest2pytest/distinfo Sun Feb 25 00:22:53 2018 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2018/02/25 00:22:53 minskim Exp $
+
+SHA1 (unittest2pytest-0.3.tar.gz) = 4d28e60e8a9818d2e4b6c90810a99fc9a9ca8da6
+RMD160 (unittest2pytest-0.3.tar.gz) = 8f623c10d5418c6ec8dea9190919583d48f49c30
+SHA512 (unittest2pytest-0.3.tar.gz) = 169ab92551007fccd369005f59e89b6cd20e2722031ae8dc51604c9131774a006465d350daad90fbce69828cfacae2d0b0d4a27f483ff992da94c3360517dc70
+Size (unittest2pytest-0.3.tar.gz) = 30389 bytes



Home | Main Index | Thread Index | Old Index