1
0

Compare commits

4 Commits

Author SHA256 Message Date
04e4b83052 Accepting request 1204106 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1204106
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-openapi-core?expand=0&rev=21
2024-09-27 15:11:29 +00:00
4f20442c30 - reformat the django test constraints
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-core?expand=0&rev=45
2024-09-27 09:11:27 +00:00
593bb6a274 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-core?expand=0&rev=44
2024-09-27 07:45:26 +00:00
631ed2915e - Exclude django tests for non-Factory
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-core?expand=0&rev=43
2024-09-27 07:39:11 +00:00
4 changed files with 87 additions and 9 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:406e231f28c734e76b8f184799e1db04f662848d803f9df4b89e9c0ef07dfbb9
size 154671

BIN
openapi-core-0.19.4-gh.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,72 @@
-------------------------------------------------------------------
Fri Sep 27 08:15:11 UTC 2024 - Markéta Machová <mmachova@suse.com>
- reformat the django test constraints
-------------------------------------------------------------------
Fri Sep 27 07:44:25 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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á <mmachova@suse.com>
- Exclude django tests for non-Factory
-------------------------------------------------------------------
Tue Feb 6 20:36:49 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@@ -16,10 +16,13 @@
#
# jsonschema-spec < 0.3 is not compatible with Python3.12. Waiting for a migration to jsonschema-path
%define skip_python312 1
# python-Django is not present in SLE 16
%if 0%{suse_version} >= 1699
%bcond_without django
%endif
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
@@ -31,7 +34,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}
@@ -40,14 +42,18 @@ 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 %{with django}
BuildRequires: %{python_module Django}
%endif
# /SECTION
Requires: python-Werkzeug
Requires: python-asgiref >= 3.6.0
@@ -55,7 +61,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
@@ -81,6 +87,9 @@ done
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%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)'
%files %{python_files}