From 84df81fd33001a08e9a6ccc2bf072fa088dea706181d64b54bfe86dea9016f2e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 27 Apr 2024 07:47:30 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=202.7.1:=20=20=20*=20Bump=20`py?= =?UTF-8?q?dantic-core`=20to=20`v2.18.2`=20=20=20*=20Ftp=20and=20Websocket?= =?UTF-8?q?=20connection=20strings=20support=20=20=20*=20Use=20field=20des?= =?UTF-8?q?cription=20for=20RootModel=20schema=20description=20when=20=20?= =?UTF-8?q?=20=20=20there=20is=20`=E2=80=A6`=20=20=20*=20Fix=20`validation?= =?UTF-8?q?=5Falias`=20behavior=20with=20`model=5Fconstruct`=20for=20=20?= =?UTF-8?q?=20=20=20`AliasChoices`=20and=20`AliasPath`=20=20=20*=20Revert?= =?UTF-8?q?=20`typing.Literal`=20and=20import=20it=20outside=20the=20=20?= =?UTF-8?q?=20=20=20TYPE=5FCHECKING=20block=20=20=20*=20Fix=20`Secret`=20s?= =?UTF-8?q?erialization=20schema,=20applicable=20for=20unions=20=20=20*=20?= =?UTF-8?q?Fix=20`strict`=20application=20to=20`function-after`=20with=20?= =?UTF-8?q?=20=20=20=20`use=5Fenum=5Fvalues`=20=20=20*=20Address=20case=20?= =?UTF-8?q?where=20`model=5Fconstruct`=20on=20a=20class=20which=20defines?= =?UTF-8?q?=20=20=20=20=20`model=5Fpost=5Finit`=20fails=20with=20`Attribut?= =?UTF-8?q?eError`=20=20=20*=20Fix=20`model=5Fjson=5Fschema`=20with=20conf?= =?UTF-8?q?ig=20types=20=20=20*=20Support=20multiple=20zeros=20as=20an=20`?= =?UTF-8?q?int`=20=20=20*=20Fix=20validation=20of=20`int`s=20with=20leadin?= =?UTF-8?q?g=20unary=20plus=20=20=20*=20Fix=20interaction=20between=20`ext?= =?UTF-8?q?ra=20!=3D=20'ignore'`=20and=20=20=20=20=20`from=5Fattributes=3D?= =?UTF-8?q?True`=20=20=20*=20Handle=20error=20from=20`Enum`'s=20`missing`?= =?UTF-8?q?=20function=20as=20=20=20=20=20`ValidationError`=20=20=20*=20Fi?= =?UTF-8?q?x=20memory=20leak=20with=20`Iterable`=20validation=20=20=20*=20?= =?UTF-8?q?Adopt=20`jiter`=20`v0.2.0`=20=20=20*=20Extract=20attribute=20do?= =?UTF-8?q?cstrings=20from=20`FieldInfo.description`=20=20=20*=20Add=20a?= =?UTF-8?q?=20`with=5Fconfig`=20decorator=20to=20comply=20with=20typing=20?= =?UTF-8?q?spec=20=20=20*=20Allow=20an=20optional=20separator=20splitting?= =?UTF-8?q?=20the=20value=20and=20unit=20of=20=20=20=20=20the=20result=20o?= =?UTF-8?q?f=20`ByteSize.human=5Freadable`=20=20=20*=20Add=20generic=20`Se?= =?UTF-8?q?cret`=20base=20type=20=20=20*=20Make=20use=20of=20`Sphinx`=20in?= =?UTF-8?q?ventories=20for=20cross=20references=20in=20docs=20=20=20*=20Ad?= =?UTF-8?q?d=20environment=20variable=20to=20disable=20plugins?= 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-pydantic?expand=0&rev=49 --- pydantic-2.6.4.tar.gz | 3 --- pydantic-2.7.1.tar.gz | 3 +++ python-pydantic.changes | 50 +++++++++++++++++++++++++++++++++++++++++ python-pydantic.spec | 4 ++-- 4 files changed, 55 insertions(+), 5 deletions(-) delete mode 100644 pydantic-2.6.4.tar.gz create mode 100644 pydantic-2.7.1.tar.gz diff --git a/pydantic-2.6.4.tar.gz b/pydantic-2.6.4.tar.gz deleted file mode 100644 index 87e55f5..0000000 --- a/pydantic-2.6.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3680f26accf05a8f627b95e5a7f036332d2bf9f121852c004bdf66f47494263d -size 2711126 diff --git a/pydantic-2.7.1.tar.gz b/pydantic-2.7.1.tar.gz new file mode 100644 index 0000000..c0c54db --- /dev/null +++ b/pydantic-2.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c23e1eed9c4abcc2f23a82bf8915750a5fffe6e089ca3cd573a47d20a7691c72 +size 2749202 diff --git a/python-pydantic.changes b/python-pydantic.changes index d473755..e56182f 100644 --- a/python-pydantic.changes +++ b/python-pydantic.changes @@ -1,3 +1,53 @@ +------------------------------------------------------------------- +Sat Apr 27 07:45:31 UTC 2024 - Dirk Müller + +- 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 diff --git a/python-pydantic.spec b/python-pydantic.spec index 063fb1a..f427ddd 100644 --- a/python-pydantic.spec +++ b/python-pydantic.spec @@ -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