databases/py-apsw: Convert to USE_PYTHON=unittest

This commit is contained in:
Po-Chuan Hsieh 2022-06-04 00:57:42 +08:00
parent 4f70a19cea
commit 0f5a1f574d
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B

View File

@ -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>