forked from pool/python-pydantic
- update to 2.7.1:
* Bump `pydantic-core` to `v2.18.2`
* Ftp and Websocket connection strings support
* Use field description for RootModel schema description when
there is `…`
* Fix `validation_alias` behavior with `model_construct` for
`AliasChoices` and `AliasPath`
* Revert `typing.Literal` and import it outside the
TYPE_CHECKING block
* Fix `Secret` serialization schema, applicable for unions
* Fix `strict` application to `function-after` with
`use_enum_values`
* Address case where `model_construct` on a class which defines
`model_post_init` fails with `AttributeError`
* Fix `model_json_schema` with config types
* Support multiple zeros as an `int`
* Fix validation of `int`s with leading unary plus
* Fix interaction between `extra != 'ignore'` and
`from_attributes=True`
* Handle error from `Enum`'s `missing` function as
`ValidationError`
* Fix memory leak with `Iterable` validation
* Adopt `jiter` `v0.2.0`
* Extract attribute docstrings from `FieldInfo.description`
* Add a `with_config` decorator to comply with typing spec
* Allow an optional separator splitting the value and unit of
the result of `ByteSize.human_readable`
* Add generic `Secret` base type
* Make use of `Sphinx` inventories for cross references in docs
* Add environment variable to disable plugins
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic?expand=0&rev=49
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3680f26accf05a8f627b95e5a7f036332d2bf9f121852c004bdf66f47494263d
|
||||
size 2711126
|
||||
3
pydantic-2.7.1.tar.gz
Normal file
3
pydantic-2.7.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c23e1eed9c4abcc2f23a82bf8915750a5fffe6e089ca3cd573a47d20a7691c72
|
||||
size 2749202
|
||||
@@ -1,3 +1,53 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 27 07:45:31 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.7.1:
|
||||
* Bump `pydantic-core` to `v2.18.2`
|
||||
* Ftp and Websocket connection strings support
|
||||
* Use field description for RootModel schema description when
|
||||
there is `…`
|
||||
* Fix `validation_alias` behavior with `model_construct` for
|
||||
`AliasChoices` and `AliasPath`
|
||||
* Revert `typing.Literal` and import it outside the
|
||||
TYPE_CHECKING block
|
||||
* Fix `Secret` serialization schema, applicable for unions
|
||||
* Fix `strict` application to `function-after` with
|
||||
`use_enum_values`
|
||||
* Address case where `model_construct` on a class which defines
|
||||
`model_post_init` fails with `AttributeError`
|
||||
* Fix `model_json_schema` with config types
|
||||
* Support multiple zeros as an `int`
|
||||
* Fix validation of `int`s with leading unary plus
|
||||
* Fix interaction between `extra != 'ignore'` and
|
||||
`from_attributes=True`
|
||||
* Handle error from `Enum`'s `missing` function as
|
||||
`ValidationError`
|
||||
* Fix memory leak with `Iterable` validation
|
||||
* Adopt `jiter` `v0.2.0`
|
||||
* Extract attribute docstrings from `FieldInfo.description`
|
||||
* Add a `with_config` decorator to comply with typing spec
|
||||
* Allow an optional separator splitting the value and unit of
|
||||
the result of `ByteSize.human_readable`
|
||||
* Add generic `Secret` base type
|
||||
* Make use of `Sphinx` inventories for cross references in docs
|
||||
* Add environment variable to disable plugins
|
||||
* Add support for `deprecated` fields
|
||||
* Allow `field_serializer('*')`
|
||||
* Handle a case when `model_config` is defined as a model
|
||||
property
|
||||
* Update `create_model()` to support `typing.Annotated` as
|
||||
input
|
||||
* Add `ClickhouseDsn` support
|
||||
* Add support for `re.Pattern[str]` to `pattern` field
|
||||
* Support for `serialize_as_any` runtime setting
|
||||
* Add support for `typing.Self`
|
||||
* Ability to pass `context` to serialization
|
||||
* Add feedback widget to docs with flarelytics integration
|
||||
* Support for parsing partial JSON strings in Python
|
||||
* Add support for field level number to str coercion option
|
||||
* Update `warnings` parameter for serialization utilities to
|
||||
allow raising a warning
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 16 11:56:01 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-pydantic%{psuffix}
|
||||
Version: 2.6.4
|
||||
Version: 2.7.1
|
||||
Release: 0
|
||||
Summary: Data validation and settings management using python type hinting
|
||||
License: MIT
|
||||
@@ -56,7 +56,7 @@ Requires: python-annotated-types >= 0.4.0
|
||||
%if 0%{?python_version_nodots} < 310
|
||||
Requires: python-eval-type-backport
|
||||
%endif
|
||||
Requires: python-pydantic-core == 2.16.3
|
||||
Requires: python-pydantic-core == 2.18.2
|
||||
Requires: python-typing_extensions >= 4.6.1
|
||||
Suggests: python-email-validator >= 2.0
|
||||
BuildArch: noarch
|
||||
|
||||
Reference in New Issue
Block a user