Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2022 17:01:42 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 78b6e5f43bec - main - devel/py-python-magic: Convert to USE_PYTHON=pytest
Message-ID:  <202206031701.253H1gPX049983@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

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

commit 78b6e5f43bec39ea965d8772cb619a34fdb402fe
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-03 16:57:21 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-03 16:57:21 +0000

    devel/py-python-magic: Convert to USE_PYTHON=pytest
---
 devel/py-python-magic/Makefile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/devel/py-python-magic/Makefile b/devel/py-python-magic/Makefile
index 19d13c922605..87cc64277f0b 100644
--- a/devel/py-python-magic/Makefile
+++ b/devel/py-python-magic/Makefile
@@ -12,14 +12,12 @@ LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		python:3.6+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent distutils pytest
 
 NO_ARCH=	yes
+TEST_ENV=	LC_ALL=en_US.UTF-8 PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	ahupp
 
-do-test:
-	cd ${WRKSRC} && ${SETENV} LC_ALL=en_US.UTF-8 PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} ${PYTHON_CMD} -m unittest -v
-
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206031701.253H1gPX049983>