git: 0f5a1f574d03 - main - databases/py-apsw: Convert to USE_PYTHON=unittest

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 03 Jun 2022 17:01:54 UTC
The branch main has been updated by sunpoet:

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

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

    databases/py-apsw: Convert to USE_PYTHON=unittest
---
 databases/py-apsw/Makefile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/databases/py-apsw/Makefile b/databases/py-apsw/Makefile
index 1869c02592e1..1b72b989bb90 100644
--- a/databases/py-apsw/Makefile
+++ b/databases/py-apsw/Makefile
@@ -16,7 +16,9 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 BUILD_DEPENDS=	sqlite3>=${PORTVERSION:R},1:databases/sqlite3
 
 USES=		localbase python:3.7+ sqlite:3 zip
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent distutils unittest
+
+TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
 
 OPTIONS_DEFINE=	EXTENSION
 OPTIONS_DEFAULT=EXTENSION
@@ -28,7 +30,4 @@ EXTENSION_VARS_OFF=	PYDISTUTILS_BUILDARGS+=--omit=load_extension
 post-install:
 	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
 
-do-test:
-	cd ${WRKSRC}/ && ${PYTHON_CMD} setup.py test
-
 .include <bsd.port.mk>