35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
PORTNAME= caio
|
|
PORTVERSION= 0.12.4
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Asynchronous file IO for Python
|
|
WWW= https://github.com/mosquito/caio/
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
|
|
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anyio>0:devel/py-anyio@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}aiomisc-pytest>0:devel/py-aiomisc-pytest@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pytest-asyncio>0:devel/py-pytest-asyncio@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_PYTHON= pep517 autoplist pytest
|
|
|
|
NO_ARCH= yes
|
|
|
|
post-extract: # is this really needed?
|
|
${CP} ${FILESDIR}/conftest.py ${WRKSRC}/tests/conftest.py
|
|
|
|
TEST_ENV= ${MAKE_ENV}
|
|
TEST_ARGS= --asyncio-mode=auto -p no:aiomisc -p no:relaxed # aiomisc-based tests fail, see https://github.com/mosquito/caio/issues/67
|
|
|
|
# tests as of 0.10.2: 6 passed in 0.60s
|
|
|
|
.include <bsd.port.mk>
|