git: c361e55d7aec - main - www/py-wsaccel: Refactor
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Jan 2025 12:53:52 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c361e55d7aec4a0a4758b01a931e8b5bd7ffd384
commit c361e55d7aec4a0a4758b01a931e8b5bd7ffd384
Author: Niclas <n_carlsson@outlook.com>
AuthorDate: 2025-01-07 12:52:18 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-01-07 12:53:33 +0000
www/py-wsaccel: Refactor
- Switch to PEP517 build
- Add test
PR: 283582
---
www/py-wsaccel/Makefile | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/www/py-wsaccel/Makefile b/www/py-wsaccel/Makefile
index 213ca0ba600b..68ecb5d2032f 100644
--- a/www/py-wsaccel/Makefile
+++ b/www/py-wsaccel/Makefile
@@ -1,5 +1,6 @@
PORTNAME= wsaccel
DISTVERSION= 0.6.7
+PORTREVISION= 1
CATEGORIES= www python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -13,11 +14,21 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
DEPRECATED= Upstream ceased development
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}cython3>=3.0.11:lang/cython3@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
USES= python
-USE_PYTHON= autoplist distutils pytest
+USE_PYTHON= autoplist pep517 pytest
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/utf8validator*.so
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/xormask*.so
+do-test:
+ @(cd ${TEST_WRKSRC} && ${SETENVI} ${WRK_ENV} ${TEST_ENV} pytest \
+ -k '${_PYTEST_FILTER_EXPRESSION}' \
+ -v -rs -o addopts= \
+ ${PYTEST_ARGS})
+
.include <bsd.port.mk>