git: f635085ab0ac - main - net-mgmt/py-pynetbox: Switch to USES=pytest

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Sat, 30 Apr 2022 09:45:14 UTC
The branch main has been updated by kai:

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

commit f635085ab0acfb44763f4ac41db852e1b54a5627
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2022-04-30 09:37:55 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-04-30 09:42:58 +0000

    net-mgmt/py-pynetbox: Switch to USES=pytest
    
    * Adjust/remove relevant entries that are handled by Uses/pytest.mk.
---
 net-mgmt/py-pynetbox/Makefile | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/net-mgmt/py-pynetbox/Makefile b/net-mgmt/py-pynetbox/Makefile
index d8b411fcb9fe..574012aa72d3 100644
--- a/net-mgmt/py-pynetbox/Makefile
+++ b/net-mgmt/py-pynetbox/Makefile
@@ -13,13 +13,13 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=2.20<3:www/py-requests@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}six>=1.0<2:devel/py-six@${PY_FLAVOR}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
 
-USES=		python:3.6+
+USES=		pytest python:3.6+
 USE_PYTHON=	autoplist concurrent distutils
 
-TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+# Skip integration tests as they require Docker and a checked out git repository
+PYTEST_IGNORED_TESTS=	integration
 
 NO_ARCH=	yes
 PORTDOCS=       *
@@ -35,8 +35,4 @@ post-install-DOCS-on:
 		${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
 			"! -name .buildinfo -and ! -name objects.inv")
 
-# Skip integration tests as they require Docker and a checked out git repository
-do-test:
-	@cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -k 'not integration'
-
 .include <bsd.port.mk>