Skip to content
Snippets Groups Projects
Unverified Commit c361e55d authored by Niclas's avatar Niclas Committed by Muhammad Moinur Rahman
Browse files

www/py-wsaccel: Refactor

- Switch to PEP517 build
- Add test

PR:		283582
parent f4a1a494
No related branches found
No related tags found
No related merge requests found
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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment