29 lines
782 B
Makefile
29 lines
782 B
Makefile
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
|
|
PORTNAME= sniffio
|
|
PORTVERSION= 1.2.0
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Sniff out which async library your code is running under
|
|
|
|
LICENSE= APACHE20 MIT
|
|
LICENSE_COMB= dual
|
|
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.APACHE2
|
|
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE.MIT
|
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}curio>=0:devel/py-curio@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR}
|
|
|
|
USES= python:3.7+
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
|
|
NO_ARCH= yes
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
|
|
|
|
.include <bsd.port.mk>
|