pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/py-openapi-core py-openapi-core: updated to 0...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5ea2e8fba57b
branches:  trunk
changeset: 387362:5ea2e8fba57b
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Oct 28 09:43:22 2022 +0000

description:
py-openapi-core: updated to 0.16.1

0.16.1
lists as additional properties fix
x-model extension optional

0.16.0
Switch to jsonschema-spec
Use auto-detect validator proxy
OpenAPI 3.1 support + Auto-detect proxies and request / response validator protocols
Add py.typed to mark package as supporting typing
Refuse to cast str or bytes to array
x-model extension import model class
Add deepObject support
Add anyOf support
Separate werkzeug support
Starlette support

0.15.0
Parameter deserialize complex scenario support
Response headers support
Response headers support for contrib
Drop python 2.7 support
Drop python 3.5 support
Drop python 3.6 support
Add python 3.10 support
Falcon2 support drop
Django2 support drop
Support basic re_path for Django integration
unused NoValue type removed
attrs remove and use dataclasses backport for python 3.6
Request validation parameters dataclass
Handle missing MIME type in MediaTypeFinder
Limit openapi dependencies upper bounds
switch to pathable
Get rid of create_spec shortcut
Request and Response protocols
validator factories removed from validation shortcuts
Predefined openapi validators
Customization refactor
Static types with mypy

diffstat:

 textproc/py-openapi-core/Makefile |   19 ++---
 textproc/py-openapi-core/PLIST    |  130 +++++++++++++++++++++++++------------
 textproc/py-openapi-core/distinfo |    8 +-
 3 files changed, 98 insertions(+), 59 deletions(-)

diffs (truncated from 355 to 300 lines):

diff -r 1da8d714b942 -r 5ea2e8fba57b textproc/py-openapi-core/Makefile
--- a/textproc/py-openapi-core/Makefile Fri Oct 28 09:34:16 2022 +0000
+++ b/textproc/py-openapi-core/Makefile Fri Oct 28 09:43:22 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2022/01/04 20:55:00 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2022/10/28 09:43:22 adam Exp $
 
-DISTNAME=      openapi-core-0.14.2
+DISTNAME=      openapi-core-0.16.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    textproc www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=o/openapi-core/}
 
@@ -11,16 +10,14 @@
 COMMENT=       Client-side and server-side support for the OpenAPI Specification v3
 LICENSE=       modified-bsd
 
-DEPENDS+=      ${PYPKGPREFIX}-attrs-[0-9]*:../../devel/py-attrs
-DEPENDS+=      ${PYPKGPREFIX}-dictpath-[0-9]*:../../devel/py-dictpath
 DEPENDS+=      ${PYPKGPREFIX}-isodate-[0-9]*:../../time/py-isodate
-DEPENDS+=      ${PYPKGPREFIX}-jsonschema-[0-9]*:../../textproc/py-jsonschema
+DEPENDS+=      ${PYPKGPREFIX}-jsonschema>=0.1.1:../../textproc/py-jsonschema
 DEPENDS+=      ${PYPKGPREFIX}-lazy-object-proxy-[0-9]*:../../devel/py-lazy-object-proxy
 DEPENDS+=      ${PYPKGPREFIX}-more-itertools-[0-9]*:../../devel/py-more-itertools
-DEPENDS+=      ${PYPKGPREFIX}-openapi-schema-validator-[0-9]*:../../textproc/py-openapi-schema-validator
-DEPENDS+=      ${PYPKGPREFIX}-openapi-spec-validator-[0-9]*:../../textproc/py-openapi-spec-validator
+DEPENDS+=      ${PYPKGPREFIX}-openapi-schema-validator>=0.3.0:../../textproc/py-openapi-schema-validator
+DEPENDS+=      ${PYPKGPREFIX}-openapi-spec-validator>=0.5.0:../../textproc/py-openapi-spec-validator
 DEPENDS+=      ${PYPKGPREFIX}-parse-[0-9]*:../../textproc/py-parse
-DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=4.3.0:../../devel/py-typing-extensions
 DEPENDS+=      ${PYPKGPREFIX}-werkzeug-[0-9]*:../../www/py-werkzeug
 TEST_DEPENDS+= ${PYPKGPREFIX}-WebOb-[0-9]*:../../www/py-WebOb
 TEST_DEPENDS+= ${PYPKGPREFIX}-falcon-[0-9]*:../../devel/py-falcon
@@ -30,9 +27,9 @@
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8
 
-PYTHON_VERSIONS_INCOMPATIBLE=  27 # py-parse
+USE_LANGUAGES= # none
 
-USE_LANGUAGES= # none
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 TEST_ENV+=     PYTHONPATH=${WRKSRC}/build/lib
 
diff -r 1da8d714b942 -r 5ea2e8fba57b textproc/py-openapi-core/PLIST
--- a/textproc/py-openapi-core/PLIST    Fri Oct 28 09:34:16 2022 +0000
+++ b/textproc/py-openapi-core/PLIST    Fri Oct 28 09:43:22 2022 +0000
@@ -1,8 +1,7 @@
-@comment $NetBSD: PLIST,v 1.1 2021/11/23 12:45:01 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2022/10/28 09:43:22 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
 ${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/openapi_core/__init__.py
@@ -17,30 +16,27 @@
 ${PYSITELIB}/openapi_core/casting/schemas/casters.py
 ${PYSITELIB}/openapi_core/casting/schemas/casters.pyc
 ${PYSITELIB}/openapi_core/casting/schemas/casters.pyo
+${PYSITELIB}/openapi_core/casting/schemas/datatypes.py
+${PYSITELIB}/openapi_core/casting/schemas/datatypes.pyc
+${PYSITELIB}/openapi_core/casting/schemas/datatypes.pyo
 ${PYSITELIB}/openapi_core/casting/schemas/exceptions.py
 ${PYSITELIB}/openapi_core/casting/schemas/exceptions.pyc
 ${PYSITELIB}/openapi_core/casting/schemas/exceptions.pyo
 ${PYSITELIB}/openapi_core/casting/schemas/factories.py
 ${PYSITELIB}/openapi_core/casting/schemas/factories.pyc
 ${PYSITELIB}/openapi_core/casting/schemas/factories.pyo
-${PYSITELIB}/openapi_core/casting/schemas/util.py
-${PYSITELIB}/openapi_core/casting/schemas/util.pyc
-${PYSITELIB}/openapi_core/casting/schemas/util.pyo
-${PYSITELIB}/openapi_core/compat.py
-${PYSITELIB}/openapi_core/compat.pyc
-${PYSITELIB}/openapi_core/compat.pyo
 ${PYSITELIB}/openapi_core/contrib/__init__.py
 ${PYSITELIB}/openapi_core/contrib/__init__.pyc
 ${PYSITELIB}/openapi_core/contrib/__init__.pyo
 ${PYSITELIB}/openapi_core/contrib/django/__init__.py
 ${PYSITELIB}/openapi_core/contrib/django/__init__.pyc
 ${PYSITELIB}/openapi_core/contrib/django/__init__.pyo
-${PYSITELIB}/openapi_core/contrib/django/backports.py
-${PYSITELIB}/openapi_core/contrib/django/backports.pyc
-${PYSITELIB}/openapi_core/contrib/django/backports.pyo
-${PYSITELIB}/openapi_core/contrib/django/compat.py
-${PYSITELIB}/openapi_core/contrib/django/compat.pyc
-${PYSITELIB}/openapi_core/contrib/django/compat.pyo
+${PYSITELIB}/openapi_core/contrib/django/handlers.py
+${PYSITELIB}/openapi_core/contrib/django/handlers.pyc
+${PYSITELIB}/openapi_core/contrib/django/handlers.pyo
+${PYSITELIB}/openapi_core/contrib/django/middlewares.py
+${PYSITELIB}/openapi_core/contrib/django/middlewares.pyc
+${PYSITELIB}/openapi_core/contrib/django/middlewares.pyo
 ${PYSITELIB}/openapi_core/contrib/django/requests.py
 ${PYSITELIB}/openapi_core/contrib/django/requests.pyc
 ${PYSITELIB}/openapi_core/contrib/django/requests.pyo
@@ -50,9 +46,6 @@
 ${PYSITELIB}/openapi_core/contrib/falcon/__init__.py
 ${PYSITELIB}/openapi_core/contrib/falcon/__init__.pyc
 ${PYSITELIB}/openapi_core/contrib/falcon/__init__.pyo
-${PYSITELIB}/openapi_core/contrib/falcon/compat.py
-${PYSITELIB}/openapi_core/contrib/falcon/compat.pyc
-${PYSITELIB}/openapi_core/contrib/falcon/compat.pyo
 ${PYSITELIB}/openapi_core/contrib/falcon/handlers.py
 ${PYSITELIB}/openapi_core/contrib/falcon/handlers.pyc
 ${PYSITELIB}/openapi_core/contrib/falcon/handlers.pyo
@@ -92,12 +85,33 @@
 ${PYSITELIB}/openapi_core/contrib/requests/__init__.py
 ${PYSITELIB}/openapi_core/contrib/requests/__init__.pyc
 ${PYSITELIB}/openapi_core/contrib/requests/__init__.pyo
+${PYSITELIB}/openapi_core/contrib/requests/protocols.py
+${PYSITELIB}/openapi_core/contrib/requests/protocols.pyc
+${PYSITELIB}/openapi_core/contrib/requests/protocols.pyo
 ${PYSITELIB}/openapi_core/contrib/requests/requests.py
 ${PYSITELIB}/openapi_core/contrib/requests/requests.pyc
 ${PYSITELIB}/openapi_core/contrib/requests/requests.pyo
 ${PYSITELIB}/openapi_core/contrib/requests/responses.py
 ${PYSITELIB}/openapi_core/contrib/requests/responses.pyc
 ${PYSITELIB}/openapi_core/contrib/requests/responses.pyo
+${PYSITELIB}/openapi_core/contrib/starlette/__init__.py
+${PYSITELIB}/openapi_core/contrib/starlette/__init__.pyc
+${PYSITELIB}/openapi_core/contrib/starlette/__init__.pyo
+${PYSITELIB}/openapi_core/contrib/starlette/requests.py
+${PYSITELIB}/openapi_core/contrib/starlette/requests.pyc
+${PYSITELIB}/openapi_core/contrib/starlette/requests.pyo
+${PYSITELIB}/openapi_core/contrib/starlette/responses.py
+${PYSITELIB}/openapi_core/contrib/starlette/responses.pyc
+${PYSITELIB}/openapi_core/contrib/starlette/responses.pyo
+${PYSITELIB}/openapi_core/contrib/werkzeug/__init__.py
+${PYSITELIB}/openapi_core/contrib/werkzeug/__init__.pyc
+${PYSITELIB}/openapi_core/contrib/werkzeug/__init__.pyo
+${PYSITELIB}/openapi_core/contrib/werkzeug/requests.py
+${PYSITELIB}/openapi_core/contrib/werkzeug/requests.pyc
+${PYSITELIB}/openapi_core/contrib/werkzeug/requests.pyo
+${PYSITELIB}/openapi_core/contrib/werkzeug/responses.py
+${PYSITELIB}/openapi_core/contrib/werkzeug/responses.pyc
+${PYSITELIB}/openapi_core/contrib/werkzeug/responses.pyo
 ${PYSITELIB}/openapi_core/deserializing/__init__.py
 ${PYSITELIB}/openapi_core/deserializing/__init__.pyc
 ${PYSITELIB}/openapi_core/deserializing/__init__.pyo
@@ -107,9 +121,15 @@
 ${PYSITELIB}/openapi_core/deserializing/media_types/__init__.py
 ${PYSITELIB}/openapi_core/deserializing/media_types/__init__.pyc
 ${PYSITELIB}/openapi_core/deserializing/media_types/__init__.pyo
+${PYSITELIB}/openapi_core/deserializing/media_types/datatypes.py
+${PYSITELIB}/openapi_core/deserializing/media_types/datatypes.pyc
+${PYSITELIB}/openapi_core/deserializing/media_types/datatypes.pyo
 ${PYSITELIB}/openapi_core/deserializing/media_types/deserializers.py
 ${PYSITELIB}/openapi_core/deserializing/media_types/deserializers.pyc
 ${PYSITELIB}/openapi_core/deserializing/media_types/deserializers.pyo
+${PYSITELIB}/openapi_core/deserializing/media_types/exceptions.py
+${PYSITELIB}/openapi_core/deserializing/media_types/exceptions.pyc
+${PYSITELIB}/openapi_core/deserializing/media_types/exceptions.pyo
 ${PYSITELIB}/openapi_core/deserializing/media_types/factories.py
 ${PYSITELIB}/openapi_core/deserializing/media_types/factories.pyc
 ${PYSITELIB}/openapi_core/deserializing/media_types/factories.pyo
@@ -119,6 +139,9 @@
 ${PYSITELIB}/openapi_core/deserializing/parameters/__init__.py
 ${PYSITELIB}/openapi_core/deserializing/parameters/__init__.pyc
 ${PYSITELIB}/openapi_core/deserializing/parameters/__init__.pyo
+${PYSITELIB}/openapi_core/deserializing/parameters/datatypes.py
+${PYSITELIB}/openapi_core/deserializing/parameters/datatypes.pyc
+${PYSITELIB}/openapi_core/deserializing/parameters/datatypes.pyo
 ${PYSITELIB}/openapi_core/deserializing/parameters/deserializers.py
 ${PYSITELIB}/openapi_core/deserializing/parameters/deserializers.pyc
 ${PYSITELIB}/openapi_core/deserializing/parameters/deserializers.pyo
@@ -128,6 +151,9 @@
 ${PYSITELIB}/openapi_core/deserializing/parameters/factories.py
 ${PYSITELIB}/openapi_core/deserializing/parameters/factories.pyc
 ${PYSITELIB}/openapi_core/deserializing/parameters/factories.pyo
+${PYSITELIB}/openapi_core/deserializing/parameters/util.py
+${PYSITELIB}/openapi_core/deserializing/parameters/util.pyc
+${PYSITELIB}/openapi_core/deserializing/parameters/util.pyo
 ${PYSITELIB}/openapi_core/exceptions.py
 ${PYSITELIB}/openapi_core/exceptions.pyc
 ${PYSITELIB}/openapi_core/exceptions.pyo
@@ -140,15 +166,19 @@
 ${PYSITELIB}/openapi_core/extensions/models/factories.py
 ${PYSITELIB}/openapi_core/extensions/models/factories.pyc
 ${PYSITELIB}/openapi_core/extensions/models/factories.pyo
-${PYSITELIB}/openapi_core/extensions/models/models.py
-${PYSITELIB}/openapi_core/extensions/models/models.pyc
-${PYSITELIB}/openapi_core/extensions/models/models.pyo
+${PYSITELIB}/openapi_core/extensions/models/types.py
+${PYSITELIB}/openapi_core/extensions/models/types.pyc
+${PYSITELIB}/openapi_core/extensions/models/types.pyo
+${PYSITELIB}/openapi_core/py.typed
 ${PYSITELIB}/openapi_core/schema/__init__.py
 ${PYSITELIB}/openapi_core/schema/__init__.pyc
 ${PYSITELIB}/openapi_core/schema/__init__.pyo
 ${PYSITELIB}/openapi_core/schema/parameters.py
 ${PYSITELIB}/openapi_core/schema/parameters.pyc
 ${PYSITELIB}/openapi_core/schema/parameters.pyo
+${PYSITELIB}/openapi_core/schema/protocols.py
+${PYSITELIB}/openapi_core/schema/protocols.pyc
+${PYSITELIB}/openapi_core/schema/protocols.pyo
 ${PYSITELIB}/openapi_core/schema/schemas.py
 ${PYSITELIB}/openapi_core/schema/schemas.pyc
 ${PYSITELIB}/openapi_core/schema/schemas.pyo
@@ -170,15 +200,9 @@
 ${PYSITELIB}/openapi_core/security/providers.py
 ${PYSITELIB}/openapi_core/security/providers.pyc
 ${PYSITELIB}/openapi_core/security/providers.pyo
-${PYSITELIB}/openapi_core/shortcuts.py
-${PYSITELIB}/openapi_core/shortcuts.pyc
-${PYSITELIB}/openapi_core/shortcuts.pyo
 ${PYSITELIB}/openapi_core/spec/__init__.py
 ${PYSITELIB}/openapi_core/spec/__init__.pyc
 ${PYSITELIB}/openapi_core/spec/__init__.pyo
-${PYSITELIB}/openapi_core/spec/accessors.py
-${PYSITELIB}/openapi_core/spec/accessors.pyc
-${PYSITELIB}/openapi_core/spec/accessors.pyo
 ${PYSITELIB}/openapi_core/spec/paths.py
 ${PYSITELIB}/openapi_core/spec/paths.pyc
 ${PYSITELIB}/openapi_core/spec/paths.pyo
@@ -194,6 +218,9 @@
 ${PYSITELIB}/openapi_core/templating/media_types/__init__.py
 ${PYSITELIB}/openapi_core/templating/media_types/__init__.pyc
 ${PYSITELIB}/openapi_core/templating/media_types/__init__.pyo
+${PYSITELIB}/openapi_core/templating/media_types/datatypes.py
+${PYSITELIB}/openapi_core/templating/media_types/datatypes.pyc
+${PYSITELIB}/openapi_core/templating/media_types/datatypes.pyo
 ${PYSITELIB}/openapi_core/templating/media_types/exceptions.py
 ${PYSITELIB}/openapi_core/templating/media_types/exceptions.pyc
 ${PYSITELIB}/openapi_core/templating/media_types/exceptions.pyo
@@ -203,12 +230,18 @@
 ${PYSITELIB}/openapi_core/templating/paths/__init__.py
 ${PYSITELIB}/openapi_core/templating/paths/__init__.pyc
 ${PYSITELIB}/openapi_core/templating/paths/__init__.pyo
+${PYSITELIB}/openapi_core/templating/paths/datatypes.py
+${PYSITELIB}/openapi_core/templating/paths/datatypes.pyc
+${PYSITELIB}/openapi_core/templating/paths/datatypes.pyo
 ${PYSITELIB}/openapi_core/templating/paths/exceptions.py
 ${PYSITELIB}/openapi_core/templating/paths/exceptions.pyc
 ${PYSITELIB}/openapi_core/templating/paths/exceptions.pyo
 ${PYSITELIB}/openapi_core/templating/paths/finders.py
 ${PYSITELIB}/openapi_core/templating/paths/finders.pyc
 ${PYSITELIB}/openapi_core/templating/paths/finders.pyo
+${PYSITELIB}/openapi_core/templating/paths/util.py
+${PYSITELIB}/openapi_core/templating/paths/util.pyc
+${PYSITELIB}/openapi_core/templating/paths/util.pyo
 ${PYSITELIB}/openapi_core/templating/responses/__init__.py
 ${PYSITELIB}/openapi_core/templating/responses/__init__.pyc
 ${PYSITELIB}/openapi_core/templating/responses/__init__.pyo
@@ -227,27 +260,21 @@
 ${PYSITELIB}/openapi_core/testing/datatypes.py
 ${PYSITELIB}/openapi_core/testing/datatypes.pyc
 ${PYSITELIB}/openapi_core/testing/datatypes.pyo
-${PYSITELIB}/openapi_core/testing/factories.py
-${PYSITELIB}/openapi_core/testing/factories.pyc
-${PYSITELIB}/openapi_core/testing/factories.pyo
-${PYSITELIB}/openapi_core/testing/mock.py
-${PYSITELIB}/openapi_core/testing/mock.pyc
-${PYSITELIB}/openapi_core/testing/mock.pyo
 ${PYSITELIB}/openapi_core/testing/requests.py
 ${PYSITELIB}/openapi_core/testing/requests.pyc
 ${PYSITELIB}/openapi_core/testing/requests.pyo
 ${PYSITELIB}/openapi_core/testing/responses.py
 ${PYSITELIB}/openapi_core/testing/responses.pyc
 ${PYSITELIB}/openapi_core/testing/responses.pyo
-${PYSITELIB}/openapi_core/types.py
-${PYSITELIB}/openapi_core/types.pyc
-${PYSITELIB}/openapi_core/types.pyo
 ${PYSITELIB}/openapi_core/unmarshalling/__init__.py
 ${PYSITELIB}/openapi_core/unmarshalling/__init__.pyc
 ${PYSITELIB}/openapi_core/unmarshalling/__init__.pyo
 ${PYSITELIB}/openapi_core/unmarshalling/schemas/__init__.py
 ${PYSITELIB}/openapi_core/unmarshalling/schemas/__init__.pyc
 ${PYSITELIB}/openapi_core/unmarshalling/schemas/__init__.pyo
+${PYSITELIB}/openapi_core/unmarshalling/schemas/datatypes.py
+${PYSITELIB}/openapi_core/unmarshalling/schemas/datatypes.pyc
+${PYSITELIB}/openapi_core/unmarshalling/schemas/datatypes.pyo
 ${PYSITELIB}/openapi_core/unmarshalling/schemas/enums.py
 ${PYSITELIB}/openapi_core/unmarshalling/schemas/enums.pyc
 ${PYSITELIB}/openapi_core/unmarshalling/schemas/enums.pyo
@@ -266,15 +293,15 @@
 ${PYSITELIB}/openapi_core/unmarshalling/schemas/util.py
 ${PYSITELIB}/openapi_core/unmarshalling/schemas/util.pyc
 ${PYSITELIB}/openapi_core/unmarshalling/schemas/util.pyo
+${PYSITELIB}/openapi_core/util.py
+${PYSITELIB}/openapi_core/util.pyc
+${PYSITELIB}/openapi_core/util.pyo
 ${PYSITELIB}/openapi_core/validation/__init__.py
 ${PYSITELIB}/openapi_core/validation/__init__.pyc
 ${PYSITELIB}/openapi_core/validation/__init__.pyo
 ${PYSITELIB}/openapi_core/validation/datatypes.py
 ${PYSITELIB}/openapi_core/validation/datatypes.pyc
 ${PYSITELIB}/openapi_core/validation/datatypes.pyo
-${PYSITELIB}/openapi_core/validation/decorators.py
-${PYSITELIB}/openapi_core/validation/decorators.pyc
-${PYSITELIB}/openapi_core/validation/decorators.pyo
 ${PYSITELIB}/openapi_core/validation/exceptions.py
 ${PYSITELIB}/openapi_core/validation/exceptions.pyc
 ${PYSITELIB}/openapi_core/validation/exceptions.pyo
@@ -287,9 +314,15 @@
 ${PYSITELIB}/openapi_core/validation/request/datatypes.py



Home | Main Index | Thread Index | Old Index