git: c93832241d43 - main - security/py-tuf: switch to USES=pytest, document failing tests

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Wed, 27 Apr 2022 11:42:30 UTC
The branch main has been updated by amdmi3:

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

commit c93832241d436ee5965175151f85ee21768823a2
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-04-26 16:35:00 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-04-27 11:42:14 +0000

    security/py-tuf: switch to USES=pytest, document failing tests
    
    Reported by:    reprise
    Approved by:    portmgr blanket
---
 security/py-tuf/Makefile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/security/py-tuf/Makefile b/security/py-tuf/Makefile
index 57f05f9dafea..a8fdebc1f620 100644
--- a/security/py-tuf/Makefile
+++ b/security/py-tuf/Makefile
@@ -16,14 +16,13 @@ LICENSE_FILE_MIT=	${WRKSRC}/LICENSE-MIT
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=2.19.1:www/py-requests@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}securesystemslib>=0.22.0:security/py-securesystemslib@${PY_FLAVOR}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
 
-USES=		python:3.7+
+USES=		python:3.7+ pytest
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
-do-test:
-	@cd ${WRKSRC}/tests && ${PYTHON_CMD} -m pytest -v -rs
+PYTEST_BROKEN_TESTS=	test_cleanup \
+			TestRepoExamples  # uses files missing from pypi distribution
 
 .include <bsd.port.mk>