1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/www/py-falcon/Makefile
Einar Bjarni Halldórsson cd6f4e554e www/py-falcon: Update to 3.0.1
PR:		263039
Approved by:	lichray AT gmail DOT com (maintainer)
2022-04-06 20:24:57 -07:00

38 lines
1.3 KiB
Makefile

# Created by: Zhihao Yuan <lichray@gmail.com>
PORTNAME= falcon
PORTVERSION= 3.0.1
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= lichray@gmail.com
COMMENT= High-performance Python framework for building cloud APIs
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-mimeparse>=1.5.2:devel/py-python-mimeparse@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.4.0:devel/py-six@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jsonschema>=0:devel/py-jsonschema@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}msgpack>=0:devel/py-msgpack@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pecan>=0:www/py-pecan@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= distutils autoplist cython
post-install:
@${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/falcon/ -name '*.so' -exec ${STRIP_CMD} {} +
do-test:
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest --ignore=freenit/project/ -v -rs -o addopts= \
--ignore-glob='*test_media_handlers*' \
--ignore-glob='*test_functional*' \
--ignore-glob='*test_cmd_print_api*' \
--ignore-glob='*test_cython*'
.include <bsd.port.mk>