git: 63e6be6ab090 - main - devel/py-pylama: add testing support

Dmitry Marakasov amdmi3 at FreeBSD.org
Fri Apr 9 19:38:58 UTC 2021


The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=63e6be6ab090e169170ebacef9764a568058fe1a

commit 63e6be6ab090e169170ebacef9764a568058fe1a
Author:     Dmitry Marakasov <amdmi3 at FreeBSD.org>
AuthorDate: 2021-04-09 19:27:41 +0000
Commit:     Dmitry Marakasov <amdmi3 at FreeBSD.org>
CommitDate: 2021-04-09 19:37:40 +0000

    devel/py-pylama: add testing support
    
    Note that some tests are failing
    
    Approved by:    portmgr blanket
---
 devel/py-pylama/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/devel/py-pylama/Makefile b/devel/py-pylama/Makefile
index ecd79b771605..377dbb214703 100644
--- a/devel/py-pylama/Makefile
+++ b/devel/py-pylama/Makefile
@@ -14,10 +14,16 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mccabe>=0.5.2:devel/py-mccabe@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pycodestyle>=2.3.1:devel/py-pycodestyle@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pydocstyle>=2.0.0:devel/py-pydocstyle@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pyflakes>=1.5.0:devel/py-pyflakes@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mypy>=0:devel/py-mypy@${PY_FLAVOR} \
+		pylint-${PYTHON_PKGNAMESUFFIX}:devel/pylint@${PY_FLAVOR}
 
 USES=		python:3.4+
 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>


More information about the dev-commits-ports-all mailing list