From 06500e7f53a9c8868a1cb28a8cf47b12602a6bf6f182ff59f24011b70719a8a6 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 1 Jul 2024 18:05:23 +0000 Subject: [PATCH] - update to 2.3.4: * add in-place reloading in docs * Nested pydantic dataclasses and doc fixes. * Remove leftover docstring causing warning on `pydantic` docs build - update to 2.3.3: * Fix an intriduced bug in parsing json field with discriminated union * Add CliSettingsSource alias handling for AliasChoices and AliasPath. - update to 2.3.2: * Initialize CLI source on demand. * Fix command line help from `argparse` formatting problem * Fix issue with nested model uppercase field name in case insensitive mode - update to 2.3.1: * Fix a regression in parsing env value for nested dict - update to 2.3.0: * Add environment parsing support for enums. * Improve `explode_env_vars` for better dict handling * add `PyprojectTomlConfigSettingsSource` * Fix broken link in AliasChoices class * Update Pydantic * fix: superfluous deep env conflicts with non-dict model leaf * fix: a second level of environment nesting expected a dict * Fix an issue when inner types of a discriminated union with a callable discriminator were not correctly identified as complex. * Fix a bug when we have case insentive field in nested model * Add CLI Settings Source OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic-settings?expand=0&rev=5 --- clear-environment.patch | 18 ++++++++-------- pydantic_settings-2.2.1.tar.gz | 3 --- pydantic_settings-2.3.4.tar.gz | 3 +++ python-pydantic-settings.changes | 36 +++++++++++++++++++++++++++++++- python-pydantic-settings.spec | 2 +- 5 files changed, 48 insertions(+), 14 deletions(-) delete mode 100644 pydantic_settings-2.2.1.tar.gz create mode 100644 pydantic_settings-2.3.4.tar.gz diff --git a/clear-environment.patch b/clear-environment.patch index 78af894..2b50784 100644 --- a/clear-environment.patch +++ b/clear-environment.patch @@ -1,16 +1,16 @@ -Index: pydantic_settings-2.2.1/tests/test_settings.py +Index: pydantic_settings-2.3.4/tests/test_settings.py =================================================================== ---- pydantic_settings-2.2.1.orig/tests/test_settings.py -+++ pydantic_settings-2.2.1/tests/test_settings.py -@@ -6,6 +6,7 @@ import uuid - from datetime import datetime, timezone +--- pydantic_settings-2.3.4.orig/tests/test_settings.py ++++ pydantic_settings-2.3.4/tests/test_settings.py +@@ -10,6 +10,7 @@ from datetime import datetime, timezone + from enum import IntEnum from pathlib import Path - from typing import Any, Callable, Dict, Generic, List, Optional, Set, Tuple, Type, TypeVar, Union + from typing import Any, Callable, Dict, Generic, Hashable, List, Optional, Set, Tuple, Type, TypeVar, Union +from unittest import mock import pytest - from annotated_types import MinLen -@@ -1050,7 +1051,8 @@ def test_multiple_env_file(tmp_path): + import typing_extensions +@@ -1116,7 +1117,8 @@ def test_multiple_env_file(tmp_path): model_config = SettingsConfigDict(env_file=[base_env, prod_env]) @@ -20,7 +20,7 @@ Index: pydantic_settings-2.2.1/tests/test_settings.py assert s.debug_mode is False assert s.host == 'https://example.com/services' assert s.port == 8000 -@@ -1069,7 +1071,8 @@ def test_model_env_file_override_model_c +@@ -1135,7 +1137,8 @@ def test_model_env_file_override_model_c model_config = SettingsConfigDict(env_file=prod_env) diff --git a/pydantic_settings-2.2.1.tar.gz b/pydantic_settings-2.2.1.tar.gz deleted file mode 100644 index d075812..0000000 --- a/pydantic_settings-2.2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:00b9f6a5e95553590434c0fa01ead0b216c3e10bc54ae02e37f359948643c5ed -size 35495 diff --git a/pydantic_settings-2.3.4.tar.gz b/pydantic_settings-2.3.4.tar.gz new file mode 100644 index 0000000..cb6b4dc --- /dev/null +++ b/pydantic_settings-2.3.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5802e3d62b78e82522319bbc9b8f8ffb28ad1c988a99311d04f2a6051fca0a7 +size 59231 diff --git a/python-pydantic-settings.changes b/python-pydantic-settings.changes index d4f9243..e014b5e 100644 --- a/python-pydantic-settings.changes +++ b/python-pydantic-settings.changes @@ -1,3 +1,37 @@ +------------------------------------------------------------------- +Mon Jul 1 17:55:58 UTC 2024 - Dirk Müller + +- update to 2.3.4: + * add in-place reloading in docs + * Nested pydantic dataclasses and doc fixes. + * Remove leftover docstring causing warning on `pydantic` docs + build +- update to 2.3.3: + * Fix an intriduced bug in parsing json field with + discriminated union + * Add CliSettingsSource alias handling for AliasChoices and + AliasPath. +- update to 2.3.2: + * Initialize CLI source on demand. + * Fix command line help from `argparse` formatting problem + * Fix issue with nested model uppercase field name in case + insensitive mode +- update to 2.3.1: + * Fix a regression in parsing env value for nested dict +- update to 2.3.0: + * Add environment parsing support for enums. + * Improve `explode_env_vars` for better dict handling + * add `PyprojectTomlConfigSettingsSource` + * Fix broken link in AliasChoices class + * Update Pydantic + * fix: superfluous deep env conflicts with non-dict model leaf + * fix: a second level of environment nesting expected a dict + * Fix an issue when inner types of a discriminated union with a + callable discriminator were not correctly identified as + complex. + * Fix a bug when we have case insentive field in nested model + * Add CLI Settings Source + ------------------------------------------------------------------- Wed Mar 27 15:37:56 UTC 2024 - ecsos @@ -6,4 +40,4 @@ Wed Mar 27 15:37:56 UTC 2024 - ecsos ------------------------------------------------------------------- Mon Mar 11 03:19:14 UTC 2024 - Steve Kowalik -- Initial release of 2.2.1 +- Initial release of 2.2.1 diff --git a/python-pydantic-settings.spec b/python-pydantic-settings.spec index 2d2a985..7ec5da1 100644 --- a/python-pydantic-settings.spec +++ b/python-pydantic-settings.spec @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-pydantic-settings -Version: 2.2.1 +Version: 2.3.4 Release: 0 Summary: Settings management using Pydantic License: MIT