14
0

- Update to 2.8.1:

* Fix for init source kwarg alias resolution
  * Revert usage of positional only argument in BaseSettings.__init__
  * Revert use of object instead of Any
  * CLI support for optional and variadic positional args
  * Improve env_prefix config doc
  * Add env_nested_max_split setting
  * Avoid using Any in BaseSettings signature to avoid mypy errors
  * Asynchronous CLI methods in CliApp
  * Don't explode env vars if env_nested_delimiter is empty
- Add patch use-typing_objects.patch:
  * Use typing_inspection.typing_objects rather than isinstance.
- Refreshed patch fix-settings-dump.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic-settings?expand=0&rev=14
This commit is contained in:
2025-04-04 04:54:24 +00:00
committed by Git OBS Bridge
parent 9f0835e209
commit 33cf6e0bdc
6 changed files with 62 additions and 9 deletions

View File

@@ -26,7 +26,7 @@
%endif
%{?sle15_python_module_pythons}
Name: python-pydantic-settings%{psuffix}
Version: 2.7.1
Version: 2.8.1
Release: 0
Summary: Settings management using Pydantic
License: MIT
@@ -34,6 +34,8 @@ URL: https://github.com/pydantic/pydantic-settings
Source: https://files.pythonhosted.org/packages/source/p/pydantic-settings/pydantic_settings-%{version}.tar.gz
# PATCH-FIX-OPENSUSE Support Pydantic 2.10 changes.
Patch0: fix-settings-dump.patch
# PATCH-FIX-OPENSUSE Use typing_inspection.typing_objects (adapted from upstream)
Patch1: use-typing_objects.patch
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: python-rpm-macros
@@ -48,6 +50,7 @@ BuildRequires: %{python_module pytest}
BuildRequires: fdupes
Requires: python-pydantic >= 2.3.0
Requires: python-python-dotenv >= 0.21.0
Requires: python-typing-inspection >= 0.4.0
Suggests: python-pyyaml >= 6.0.1
Suggests: python-tomli >= 2.0.1
BuildArch: noarch
@@ -71,7 +74,7 @@ Settings management using Pydantic, this is the new official home of Pydantic's
%check
%if %{with test}
# This test requires azure
skiptest="test_docs_examples[docs/index.md:1680-1724]"
skiptest="test_docs_examples[docs/index.md:1803-1847]"
%pytest -k "not ($skiptest)"
%endif