git: 6588d3475a58 - main - devel/py-wheel: Use pytest.mk for testing

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Wed, 23 Sep 2026 16:50:23 UTC
The branch main has been updated by nivit:

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

commit 6588d3475a585b90ca145ef03fcdaf5075eff343
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2026-09-23 16:48:40 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2026-09-23 16:48:40 +0000

    devel/py-wheel: Use pytest.mk for testing
    
    - Don't bump PORTREVISION because nothing changes in the resulting
      package.
---
 devel/py-wheel/Makefile | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/devel/py-wheel/Makefile b/devel/py-wheel/Makefile
index 7dcc15ce2db6..e6c8b0972a4a 100644
--- a/devel/py-wheel/Makefile
+++ b/devel/py-wheel/Makefile
@@ -15,15 +15,13 @@ LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.8:devel/py-flit-core@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}packaging>=24.0:devel/py-packaging@${PY_FLAVOR}
 
-USES=		cpe python
+USES=		cpe pytest python
 CPE_VENDOR=	wheel_project
 USE_PYTHON=	allflavors autoplist concurrent pep517
-# tests: 70 passed
-USE_PYTHON+=	pytest
 
-.if make(test)
+# tests: 70 passed
+PYTEST_ARGS=	--disable-plugin-autoload
 TEST_ENV=	PYTHONPATH="${STAGEDIR}${PYTHON_SITELIBDIR}"
-.endif
 
 NO_ARCH=	yes