2019-12-17 12:16:11 +01:00
|
|
|
PORTNAME= webargs
|
2022-07-16 14:11:00 +02:00
|
|
|
DISTVERSION= 8.2.0
|
2019-12-17 12:16:11 +01:00
|
|
|
CATEGORIES= www devel python
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= meka@tilda.center
|
|
|
|
COMMENT= Python library for parsing and validating HTTP request objects
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://github.com/marshmallow-code/webargs
|
2019-12-17 12:16:11 +01:00
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}marshmallow>2.15.2:devel/py-marshmallow@${PY_FLAVOR}
|
2022-02-05 10:55:51 +01:00
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bottle>0:www/py-bottle@${PY_FLAVOR} \
|
www/py-django32: Switch consumers over to Django 3.2
Django 2.2 became End-of-Life on 11th April 2022 and Django 3.2 is the
new LTS (= Long Term Support) release which will be supported until
April 2024.
* Switch the most ports that use www/py-django22 to www/py-django32
* Switch www/seahub over to www/py-djangorestframework
* Ports that are not yet ready for Django 3.2 (only three so far) or
those that have already been set with an expiration date were not
taken into account.
* Bump PORTREVISION due dependency change where necessary.
PR: 261313
Reviewed by: bofh, dvl, koobs, ultima
Approved by: bofh, dvl, koobs, ultima, sunpoet, Kevin Golding, Ivan Rozhuk,
Alexander Sieg (maintainers)
maintainer timeout (remaining maintainers)
Differential Revision: https://reviews.freebsd.org/D34859
2022-04-28 12:02:15 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}django*>=1.11.16:www/py-django32@${PY_FLAVOR} \
|
2022-02-05 10:55:51 +01:00
|
|
|
${PYTHON_PKGNAMEPREFIX}falcon>=2.0:www/py-falcon@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}Flask>=0.12.2:www/py-flask@${PY_FLAVOR} \
|
2019-12-17 12:16:11 +01:00
|
|
|
${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
|
2022-02-05 10:55:51 +01:00
|
|
|
${PYTHON_PKGNAMEPREFIX}pyramid>0:www/py-pyramid@${PY_FLAVOR} \
|
2019-12-17 12:16:11 +01:00
|
|
|
${PYTHON_PKGNAMEPREFIX}tornado>=4.5.2:www/py-tornado@${PY_FLAVOR} \
|
2022-02-05 10:55:51 +01:00
|
|
|
${PYTHON_PKGNAMEPREFIX}WebTest>0:www/py-WebTest@${PY_FLAVOR}
|
2019-12-17 12:16:11 +01:00
|
|
|
|
2021-10-14 23:30:58 +02:00
|
|
|
USES= cpe python:3.6+
|
|
|
|
CPE_VENDOR= ${PORTNAME}_project
|
2019-12-17 12:16:11 +01:00
|
|
|
USE_GITHUB= yes # tests not packaged with PyPI sdist
|
|
|
|
GH_ACCOUNT= marshmallow-code
|
2022-07-16 14:11:00 +02:00
|
|
|
USE_PYTHON= autoplist concurrent distutils pytest
|
2019-12-17 12:16:11 +01:00
|
|
|
|
|
|
|
TEST_ENV= PYTHONPATH=${WRKSRC}/src
|
|
|
|
|
|
|
|
NO_ARCH= yes
|
|
|
|
|
|
|
|
do-test:
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts= \
|
2020-05-08 14:21:47 +02:00
|
|
|
--ignore-glob='*test_bottleparser*' \
|
2021-01-08 14:19:11 +01:00
|
|
|
--ignore-glob='*test_aiohttpparser*' \
|
|
|
|
--ignore-glob="*test_tornadoparser*"
|
2019-12-17 12:16:11 +01:00
|
|
|
|
2021-01-12 23:03:51 +01:00
|
|
|
.include <bsd.port.mk>
|