Charlie Li 06a08e69f3
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.

Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
2025-03-07 23:05:21 -05:00

36 lines
1.1 KiB
Makefile

PORTNAME= swagger-spec-validator
DISTVERSIONPREFIX= v
DISTVERSION= 2.7.4
PORTREVISION= 2
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= kai@FreeBSD.org
COMMENT= Validation of Swagger specifications
WWW= https://github.com/Yelp/swagger_spec_validator
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jsonschema>0:devel/py-jsonschema@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
USES= python
USE_GITHUB= yes
GH_ACCOUNT= Yelp
GH_PROJECT= swagger_spec_validator
USE_PYTHON= distutils autoplist
NO_ARCH= yes
# Skip test "test_raise_SwaggerValidationError_on_urlopen_error" as it tries
# to open network connections to non-existent URLs.
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs \
-k 'not test_raise_SwaggerValidationError_on_urlopen_error'
.include <bsd.port.mk>