git: 0113ba448f9f - main - devel/py-freebsd: Convert to USE_PYTHON=unittest

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 21 Jun 2022 16:38:01 UTC
The branch main has been updated by sunpoet:

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

commit 0113ba448f9f298bba0e1aa2488f7fa6d5662c8a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-21 16:33:40 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-21 16:36:29 +0000

    devel/py-freebsd: Convert to USE_PYTHON=unittest
---
 devel/py-freebsd/Makefile | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/devel/py-freebsd/Makefile b/devel/py-freebsd/Makefile
index 0e253046cdd0..44bdebf7a4f0 100644
--- a/devel/py-freebsd/Makefile
+++ b/devel/py-freebsd/Makefile
@@ -13,18 +13,16 @@ LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYRIGHT
 
 USES=		python:3.6+
-USE_GITHUB=	yes
-USE_PYTHON=	autoplist distutils
+USE_PYTHON=	autoplist distutils unittest
 
+USE_GITHUB=	yes
 GH_ACCOUNT=	sobomax
-GH_PROJECT=	py-${PORTNAME}
+GH_PROJECT=	py-freebsd
 
 PYDISTUTILS_BUILD_TARGET=build_ext -i
+TEST_ARGS=	discover -s tests
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/freebsd*.so
 
-do-test:
-	@cd ${WRKSRC} && ${PYTHON_CMD} -m unittest discover tests -v
-
 .include <bsd.port.mk>