git: 4267861c1145 - main - devel/py-openapi-spec-validator: Update to 0.5.6
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 27 May 2023 04:27:05 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=4267861c114563cfbc1b39ebe2f0a2a4259f1110 commit 4267861c114563cfbc1b39ebe2f0a2a4259f1110 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-05-27 04:08:48 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-05-27 04:08:48 +0000 devel/py-openapi-spec-validator: Update to 0.5.6 - Update WWW - Convert to USE_PYTHON=pep517 - Add REQUESTS option Changes: https://github.com/python-openapi/openapi-spec-validator/releases --- devel/py-openapi-spec-validator/Makefile | 31 +++++++++++++++------- devel/py-openapi-spec-validator/distinfo | 6 ++--- .../files/patch-pyproject.toml | 11 ++++++++ .../py-openapi-spec-validator/files/patch-setup.py | 11 -------- 4 files changed, 35 insertions(+), 24 deletions(-) diff --git a/devel/py-openapi-spec-validator/Makefile b/devel/py-openapi-spec-validator/Makefile index 23766149214a..a5f92db87851 100644 --- a/devel/py-openapi-spec-validator/Makefile +++ b/devel/py-openapi-spec-validator/Makefile @@ -1,22 +1,22 @@ PORTNAME= openapi-spec-validator -PORTVERSION= 0.5.1 +PORTVERSION= 0.5.6 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= openapi_spec_validator-${PORTVERSION} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Validator for OpenAPI 2.0 and 3.0.0 specification -WWW= https://github.com/p1c2u/openapi-spec-validator +WWW= https://github.com/python-openapi/openapi-spec-validator LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}importlib-resources>=5.4.0<6.0.0:devel/py-importlib-resources@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}jsonschema>=4.0.0<5.0.0:devel/py-jsonschema@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}jsonschema-spec>=0.1.1<0.2.0:devel/py-jsonschema-spec@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}lazy-object-proxy>=1.7.1<2.0.0:devel/py-lazy-object-proxy@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}openapi-schema-validator>=0.3.2<0.4.0:devel/py-openapi-schema-validator@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}yaml>=5.1:devel/py-yaml@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jsonschema>=4.0.0<4.18.0:devel/py-jsonschema@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}jsonschema-spec>=0.1.1<0.2:devel/py-jsonschema-spec@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}lazy-object-proxy>=1.7.1<2:devel/py-lazy-object-proxy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}openapi-schema-validator>=0.4.2<0.5:devel/py-openapi-schema-validator@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \ @@ -24,8 +24,19 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}tox>=0:devel/py-tox@${PY_FLAVOR} USES= python:3.7+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes -.include <bsd.port.mk> +OPTION_DEIFNE= REQUESTS +REQUESTS_DESC= Requests support + +REQUESTS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} + +.include <bsd.port.pre.mk> + +.if ${PYTHON_REL} < 30900 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-resources>=5.4.0<6.0.0:devel/py-importlib-resources@${PY_FLAVOR} +.endif + +.include <bsd.port.post.mk> diff --git a/devel/py-openapi-spec-validator/distinfo b/devel/py-openapi-spec-validator/distinfo index 663e74db143f..7268ed551921 100644 --- a/devel/py-openapi-spec-validator/distinfo +++ b/devel/py-openapi-spec-validator/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1662558044 -SHA256 (openapi-spec-validator-0.5.1.tar.gz) = 8248634bad1f23cac5d5a34e193ab36e23914057ca69e91a1ede5af75552c465 -SIZE (openapi-spec-validator-0.5.1.tar.gz) = 27941 +TIMESTAMP = 1684104436 +SHA256 (openapi_spec_validator-0.5.6.tar.gz) = 1189d0618ae0678ccf6c883cc1266d381454eece6f21fcf330cc7caea5fc25eb +SIZE (openapi_spec_validator-0.5.6.tar.gz) = 33031 diff --git a/devel/py-openapi-spec-validator/files/patch-pyproject.toml b/devel/py-openapi-spec-validator/files/patch-pyproject.toml new file mode 100644 index 000000000000..c995f8e165c2 --- /dev/null +++ b/devel/py-openapi-spec-validator/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2023-03-17 08:40:24 UTC ++++ pyproject.toml +@@ -52,7 +52,7 @@ jsonschema = ">=4.0.0,<4.18.0" + openapi-schema-validator = "^0.4.2" + python = "^3.7.0" + requests = {version = "*", optional = true} +-importlib-resources = {version = "^5.8.0", python = "<3.9" } ++importlib-resources = {version = "^5.4.0", python = "<3.9" } + jsonschema-spec = "^0.1.1" + lazy-object-proxy = "^1.7.1" + sphinx = {version = "^5.3.0", optional = true} diff --git a/devel/py-openapi-spec-validator/files/patch-setup.py b/devel/py-openapi-spec-validator/files/patch-setup.py deleted file mode 100644 index 4e5cbc0e5a53..000000000000 --- a/devel/py-openapi-spec-validator/files/patch-setup.py +++ /dev/null @@ -1,11 +0,0 @@ ---- setup.py.orig 1970-01-01 00:00:00 UTC -+++ setup.py -@@ -15,7 +15,7 @@ package_data = \ - - install_requires = \ - ['PyYAML>=5.1', -- 'importlib-resources>=5.8.0,<6.0.0', -+ 'importlib-resources>=5.4.0,<6.0.0', - 'jsonschema-spec>=0.1.1,<0.2.0', - 'jsonschema>=4.0.0,<5.0.0', - 'lazy-object-proxy>=1.7.1,<2.0.0',