Date: Mon, 4 Oct 2021 12:06:31 GMT From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 7b513a3d17b3 - main - devel/py-unittest2pytest: add port: Convert unittest test-cases to pytest Message-ID: <202110041206.194C6VvK074735@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=7b513a3d17b357dc24ae1f65828b3fd9f95fe575 commit 7b513a3d17b357dc24ae1f65828b3fd9f95fe575 Author: Dmitry Marakasov <amdmi3@FreeBSD.org> AuthorDate: 2021-09-29 22:59:21 +0000 Commit: Dmitry Marakasov <amdmi3@FreeBSD.org> CommitDate: 2021-10-04 11:58:26 +0000 devel/py-unittest2pytest: add port: Convert unittest test-cases to pytest unittest2pytest is a tool that helps rewriting Python unittest test-cases into pytest test-cases. In contrast to other similar tools, this unittest2pytest * handles keyword arguments, * handles single-line test-cases and several tests on one line, * uses context-handlers where appropriate. This is done by using lib2to3 and Python's mighty inspect module. WWW: https://pypi.org/project/unittest2pytest/ WWW: https://github.com/pytest-dev/unittest2pytest --- devel/Makefile | 1 + devel/py-unittest2pytest/Makefile | 22 ++++++++++++++++++++++ devel/py-unittest2pytest/distinfo | 3 +++ devel/py-unittest2pytest/pkg-descr | 13 +++++++++++++ 4 files changed, 39 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 6671bc68ec53..489ebe535e22 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5297,6 +5297,7 @@ SUBDIR += py-unicodedata2 SUBDIR += py-unipath SUBDIR += py-unittest2 + SUBDIR += py-unittest2pytest SUBDIR += py-unpaddedbase64 SUBDIR += py-update_checker SUBDIR += py-urlimport diff --git a/devel/py-unittest2pytest/Makefile b/devel/py-unittest2pytest/Makefile new file mode 100644 index 000000000000..3da5c7d2d038 --- /dev/null +++ b/devel/py-unittest2pytest/Makefile @@ -0,0 +1,22 @@ +PORTNAME= unittest2pytest +PORTVERSION= 0.4 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Convert unittest test-cases to pytest + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/COPYING-GPLv3.txt + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils +NO_ARCH= yes + +do-test: + @cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs + +.include <bsd.port.mk> diff --git a/devel/py-unittest2pytest/distinfo b/devel/py-unittest2pytest/distinfo new file mode 100644 index 000000000000..0a158296b6cb --- /dev/null +++ b/devel/py-unittest2pytest/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1632956103 +SHA256 (unittest2pytest-0.4.tar.gz) = a909522aa54787e20c1cabda9624bf81edcfe5107dc3c73a478ad2d0cf67c21f +SIZE (unittest2pytest-0.4.tar.gz) = 35465 diff --git a/devel/py-unittest2pytest/pkg-descr b/devel/py-unittest2pytest/pkg-descr new file mode 100644 index 000000000000..8341b36dcf15 --- /dev/null +++ b/devel/py-unittest2pytest/pkg-descr @@ -0,0 +1,13 @@ +unittest2pytest is a tool that helps rewriting Python unittest +test-cases into pytest test-cases. + +In contrast to other similar tools, this unittest2pytest + +* handles keyword arguments, +* handles single-line test-cases and several tests on one line, +* uses context-handlers where appropriate. + +This is done by using lib2to3 and Python's mighty inspect module. + +WWW: https://pypi.org/project/unittest2pytest/ +WWW: https://github.com/pytest-dev/unittest2pytest
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110041206.194C6VvK074735>