From 5cc827077140af4234bcaf61d325d2e71018ecd77d2cdd4847c3a14f4914069c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 27 Sep 2024 07:39:11 +0000 Subject: [PATCH 1/3] Accepting request 1203797 from home:mcalabkova:branches:devel:languages:python - Exclude django tests for non-Factory OBS-URL: https://build.opensuse.org/request/show/1203797 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-core?expand=0&rev=43 --- python-openapi-core.changes | 5 +++++ python-openapi-core.spec | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/python-openapi-core.changes b/python-openapi-core.changes index d2a1fc6..2528849 100644 --- a/python-openapi-core.changes +++ b/python-openapi-core.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 26 10:41:14 UTC 2024 - Markéta Machová + +- Exclude django tests for non-Factory + ------------------------------------------------------------------- Tue Feb 6 20:36:49 UTC 2024 - Ben Greiner diff --git a/python-openapi-core.spec b/python-openapi-core.spec index caed092..7b8897d 100644 --- a/python-openapi-core.spec +++ b/python-openapi-core.spec @@ -31,7 +31,6 @@ BuildRequires: %{python_module poetry-core} BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION test -BuildRequires: %{python_module Django >= 3.0} BuildRequires: %{python_module Flask} BuildRequires: %{python_module WebOb} BuildRequires: %{python_module Werkzeug} @@ -48,6 +47,9 @@ BuildRequires: %{python_module openapi-spec-validator >= 0.7.1 with %python-ope BuildRequires: %{python_module parse} BuildRequires: %{python_module pytest} BuildRequires: %{python_module responses} +%if 0%{suse_version} >= 1699 +BuildRequires: %{python_module Django} +%endif # /SECTION Requires: python-Werkzeug Requires: python-asgiref >= 3.6.0 @@ -81,6 +83,10 @@ done %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +# python-Django is not present in SLE 16 +%if 0%{suse_version} < 1699 +rm tests/unit/contrib/django/test_django.py +%endif %pytest tests/unit -k 'not (test_read_only_properties_invalid or test_write_only_properties_invalid)' %files %{python_files} From bbb7b00729482da3a8dedba4cf877325c60fff85ac409a9a9d82f5ab1266755d Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 27 Sep 2024 07:45:26 +0000 Subject: [PATCH 2/3] =?UTF-8?q?-=20update=20to=200.19.4:=20=20=20*=20Starl?= =?UTF-8?q?ette=200.38.x=20support=20#906=20=20=20*=20Fix=20resolvers=20no?= =?UTF-8?q?t=20updating=20properly=20when=20referencing=20other=20=20=20?= =?UTF-8?q?=20=20files.=20#894=20=20=20*=20Fix=20RequestUnmarshalResult=20?= =?UTF-8?q?body=20type=20#900=20=20=20*=20Fix=20Starlette=20streaming=20re?= =?UTF-8?q?sponse=20for=20HTTPMiddleware=20#906=20-=20update=20to=200.19.3?= =?UTF-8?q?:=20=20=20*=20Fix=20resolver=20for=20jsonschema=20validator=20c?= =?UTF-8?q?reated=20by=20=20=20=20=20SchemaValidatorsFactory=20#853=20=20?= =?UTF-8?q?=20*=20Use=20`base=5Furi`=20from=20schema=20path=20for=20spec?= =?UTF-8?q?=20validation=20#859=20=20=20*=20Openapi=203.0=20unmarshalling?= =?UTF-8?q?=20None=20with=20nullable=20subschema=20fix=20=20=20=20=20#876?= =?UTF-8?q?=20-=20update=20to=200.19.2:=20=20=20*=20Falcon=20multi-value?= =?UTF-8?q?=20query=20parameters=20fix=20#830=20=20=20*=20Fix=20a=20Deprec?= =?UTF-8?q?ationWarning=20from=20aiohttp=20in=20TestPetPhotoView=20=20=20*?= =?UTF-8?q?=20Fix=20hyphen=20characters=20in=20path=20parameters=20#851=20?= =?UTF-8?q?-=20update=20to=200.19.1:=20=20=20*=20Path=20finder=20cls=20con?= =?UTF-8?q?figuration=20#797=20=20=20*=20Invalid=20usage=20of=20super()=20?= =?UTF-8?q?when=20having=20multi-baseclass=20=20=20=20=20inheritance:=20?= =?UTF-8?q?=E2=80=A6=20#802=20=20=20*=20Fix=20content-type=20when=20no=20s?= =?UTF-8?q?pace=20after=20semicolon=20#814=20=20=20*=20Protocols=20body=20?= =?UTF-8?q?and=20data=20attributes=20docstrings=20fix=20#829=20-=20update?= =?UTF-8?q?=20to=200.19.0:=20=20=20*=20FastAPI=20integration=20#738=20=20?= =?UTF-8?q?=20*=20Mimetype=20parameters=20(i.e.=20charset)=20handling=20#6?= =?UTF-8?q?78=20=20=20*=20Parameter=20deserializers=20renamed=20to=20Style?= =?UTF-8?q?=20deserializers=20#676=20=20=20*=20Unmarshalling=20processor?= =?UTF-8?q?=20enhancement=20#625=20=20=20*=20Option=20to=20skip=20response?= =?UTF-8?q?=20validation=20in=20Django,=20Falcon=20and=20=20=20=20=20Flask?= =?UTF-8?q?=20integrations=20#667=20=20=20*=20use=20explicit=20arguments?= =?UTF-8?q?=20(instead=20of=20kwargs)=20in=20Spec.from=5Fdict?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-core?expand=0&rev=44 --- openapi-core-0.18.2-gh.tar.gz | 3 -- openapi-core-0.19.4-gh.tar.gz | 3 ++ python-openapi-core.changes | 59 +++++++++++++++++++++++++++++++++++ python-openapi-core.spec | 13 ++++---- 4 files changed, 68 insertions(+), 10 deletions(-) delete mode 100644 openapi-core-0.18.2-gh.tar.gz create mode 100644 openapi-core-0.19.4-gh.tar.gz diff --git a/openapi-core-0.18.2-gh.tar.gz b/openapi-core-0.18.2-gh.tar.gz deleted file mode 100644 index e15d3bd..0000000 --- a/openapi-core-0.18.2-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:406e231f28c734e76b8f184799e1db04f662848d803f9df4b89e9c0ef07dfbb9 -size 154671 diff --git a/openapi-core-0.19.4-gh.tar.gz b/openapi-core-0.19.4-gh.tar.gz new file mode 100644 index 0000000..2ea57a7 --- /dev/null +++ b/openapi-core-0.19.4-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:84d7260f145d6ec44171884dae7bce10c4b2918132b4b2e67a5558e949005213 +size 182585 diff --git a/python-openapi-core.changes b/python-openapi-core.changes index 2528849..82a1328 100644 --- a/python-openapi-core.changes +++ b/python-openapi-core.changes @@ -1,3 +1,62 @@ +------------------------------------------------------------------- +Fri Sep 27 07:44:25 UTC 2024 - Dirk Müller + +- update to 0.19.4: + * Starlette 0.38.x support #906 + * Fix resolvers not updating properly when referencing other + files. #894 + * Fix RequestUnmarshalResult body type #900 + * Fix Starlette streaming response for HTTPMiddleware #906 +- update to 0.19.3: + * Fix resolver for jsonschema validator created by + SchemaValidatorsFactory #853 + * Use `base_uri` from schema path for spec validation #859 + * Openapi 3.0 unmarshalling None with nullable subschema fix + #876 +- update to 0.19.2: + * Falcon multi-value query parameters fix #830 + * Fix a DeprecationWarning from aiohttp in TestPetPhotoView + * Fix hyphen characters in path parameters #851 +- update to 0.19.1: + * Path finder cls configuration #797 + * Invalid usage of super() when having multi-baseclass + inheritance: … #802 + * Fix content-type when no space after semicolon #814 + * Protocols body and data attributes docstrings fix #829 + +- update to 0.19.0: + * FastAPI integration #738 + * Mimetype parameters (i.e. charset) handling #678 + * Parameter deserializers renamed to Style deserializers #676 + * Unmarshalling processor enhancement #625 + * Option to skip response validation in Django, Falcon and + Flask integrations #667 + * use explicit arguments (instead of kwargs) in Spec.from_dict + and add short note in documentation how to use base_url for + Spec.from_dict + * Parameter and header get value refactor #677 + * Python 3.12 support #684 + * Bump openapi-spec-validator from 0.6.0 to 0.7.0 #685 + * Use openapi-spec-validator spec version finder #691 + * Move to `SchemaPath` from jsonschema-path package #690 + * Specification validation as part of shortcuts #686 + * Style deserializing reimplementation with support for all + styles #694 + * Media type encoding support #646 + * Replace `mimetype` with `content_type` to include content + parameters #699 + * Suport for primitive properties casting of urlencoded + objects. #701 + * Request response binary format support #710 + * Starlette middleware #680 + * OpenAPI app and high level integration #716 + * aiohttp request host_url include scheme #673 + * aiohttp response body check none #674 + * Validate empty request body fix #713 + * Path finder returns default server #648 + * OpenAPI config passed to validators and unmarshallers fix + * milti types schema format unmarshal fix #562 + ------------------------------------------------------------------- Thu Sep 26 10:41:14 UTC 2024 - Markéta Machová diff --git a/python-openapi-core.spec b/python-openapi-core.spec index 7b8897d..f91cc52 100644 --- a/python-openapi-core.spec +++ b/python-openapi-core.spec @@ -16,10 +16,8 @@ # -# jsonschema-spec < 0.3 is not compatible with Python3.12. Waiting for a migration to jsonschema-path -%define skip_python312 1 Name: python-openapi-core -Version: 0.18.2 +Version: 0.19.4 Release: 0 Summary: Client- and server-side support for the OpenAPI Specification v3 License: BSD-3-Clause @@ -39,15 +37,16 @@ BuildRequires: %{python_module asgiref >= 3.6.0} BuildRequires: %{python_module falcon >= 3.0} BuildRequires: %{python_module isodate} BuildRequires: %{python_module jsonschema >= 4.18.0 with %python-jsonschema < 5} -BuildRequires: %{python_module jsonschema-spec >= 0.2.3 with %python-jsonschema-spec < 0.3} +BuildRequires: %{python_module jsonschema-path >= 0.3.1 with %python-jsonschema-path < 0.4} BuildRequires: %{python_module more-itertools} BuildRequires: %{python_module multidict >= 6.0.4} BuildRequires: %{python_module openapi-schema-validator >= 0.6 with %python-openapi-schema-validator < 0.7} BuildRequires: %{python_module openapi-spec-validator >= 0.7.1 with %python-openapi-spec-validator < 0.8} BuildRequires: %{python_module parse} +BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest} BuildRequires: %{python_module responses} -%if 0%{suse_version} >= 1699 +%if 0%{suse_version} > 1600 BuildRequires: %{python_module Django} %endif # /SECTION @@ -57,7 +56,7 @@ Requires: python-isodate Requires: python-more-itertools Requires: python-parse Requires: (python-jsonschema >= 4.18.0 with python-jsonschema < 5) -Requires: (python-jsonschema-spec >= 0.2.3 with python-jsonschema-spec < 0.3) +Requires: (python-jsonschema-path >= 0.3.1 with python-jsonschema-path < 0.4) Requires: (python-openapi-schema-validator >= 0.6 with python-openapi-schema-validator < 0.7) Requires: (python-openapi-spec-validator >= 0.7.1 with python-openapi-spec-validator < 0.8) BuildArch: noarch @@ -85,7 +84,7 @@ done %check # python-Django is not present in SLE 16 %if 0%{suse_version} < 1699 -rm tests/unit/contrib/django/test_django.py +rm -v tests/unit/contrib/django/test_django.py %endif %pytest tests/unit -k 'not (test_read_only_properties_invalid or test_write_only_properties_invalid)' From 77d823c6fac8e267a5aa59b03b15c09b4567c32e10b444c6700d5ccaa323b763 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Fri, 27 Sep 2024 09:11:27 +0000 Subject: [PATCH 3/3] Accepting request 1204083 from home:mcalabkova:branches:devel:languages:python - reformat the django test constraints OBS-URL: https://build.opensuse.org/request/show/1204083 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-core?expand=0&rev=45 --- python-openapi-core.changes | 5 +++++ python-openapi-core.spec | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/python-openapi-core.changes b/python-openapi-core.changes index 82a1328..de33810 100644 --- a/python-openapi-core.changes +++ b/python-openapi-core.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 27 08:15:11 UTC 2024 - Markéta Machová + +- reformat the django test constraints + ------------------------------------------------------------------- Fri Sep 27 07:44:25 UTC 2024 - Dirk Müller diff --git a/python-openapi-core.spec b/python-openapi-core.spec index f91cc52..c648e46 100644 --- a/python-openapi-core.spec +++ b/python-openapi-core.spec @@ -16,6 +16,11 @@ # +# python-Django is not present in SLE 16 +%if 0%{suse_version} >= 1699 +%bcond_without django +%endif + Name: python-openapi-core Version: 0.19.4 Release: 0 @@ -46,7 +51,7 @@ BuildRequires: %{python_module parse} BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest} BuildRequires: %{python_module responses} -%if 0%{suse_version} > 1600 +%if %{with django} BuildRequires: %{python_module Django} %endif # /SECTION @@ -82,8 +87,7 @@ done %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# python-Django is not present in SLE 16 -%if 0%{suse_version} < 1699 +%if !%{with django} rm -v tests/unit/contrib/django/test_django.py %endif %pytest tests/unit -k 'not (test_read_only_properties_invalid or test_write_only_properties_invalid)'