git: 23bd26df5814 - main - devel/py-pyproject-fmt: Add make test

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 13 Sep 2026 07:14:04 UTC
The branch main has been updated by sunpoet:

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

commit 23bd26df581425eb9abedf6c5bee912670701556
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-09-13 07:04:12 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-09-13 07:04:12 +0000

    devel/py-pyproject-fmt: Add make test
---
 devel/py-pyproject-fmt/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/devel/py-pyproject-fmt/Makefile b/devel/py-pyproject-fmt/Makefile
index f3cde8718ee4..05b223e89cf2 100644
--- a/devel/py-pyproject-fmt/Makefile
+++ b/devel/py-pyproject-fmt/Makefile
@@ -15,13 +15,19 @@ LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}maturin>=1.15:devel/py-maturin@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}covdefaults>=2.3:devel/py-covdefaults@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-cov>=7.1:devel/py-pytest-cov@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-mock>=3.15.1:devel/py-pytest-mock@${PY_FLAVOR} \
+		${PY_TOMLI} \
+		${PYTHON_PKGNAMEPREFIX}trove-classifiers>=2026.6.1.19:devel/py-trove-classifiers@${PY_FLAVOR}
 
 USES=		cargo python
-USE_PYTHON=	autoplist concurrent pep517
+USE_PYTHON=	autoplist concurrent pep517 pytest
 
 CARGO_BUILD=	no
 CARGO_INSTALL=	no
 CARGO_TEST=	no
+TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
 WRKSRC=		${WRKDIR}/pyproject_fmt-${PORTVERSION}
 
 .include <bsd.port.mk>