freebsd-ports/devel/py-unittest2pytest/Makefile
Dmitry Marakasov 7b513a3d17 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
2021-10-04 14:58:26 +03:00

22 lines
528 B
Makefile

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>