Sync from SUSE:SLFO:Main python-pydantic-settings revision 39cf60410253303b4be4dd509c05153a
This commit is contained in:
parent
c52a9284a9
commit
977360d4ca
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
BIN
pydantic_settings-2.3.4.tar.gz
(Stored with Git LFS)
BIN
pydantic_settings-2.3.4.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
pydantic_settings-2.4.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
pydantic_settings-2.4.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 28 09:52:17 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Remove azure BuildRequires
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 12 05:57:59 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Update to 2.4.0:
|
||||||
|
* Fix regex flags accidentally passed as count
|
||||||
|
* Deprecate read_env_file and move it to DotEnvSettingsSource
|
||||||
|
* Fix a bug when loading empty yaml file
|
||||||
|
* feat: Enable access to the current state in settings sources
|
||||||
|
* Add support for short options
|
||||||
|
* Add Azure Key Vault settings source
|
||||||
|
* Add cli_exit_on_error config option
|
||||||
|
- Add in multibuild.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 1 17:55:58 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Mon Jul 1 17:55:58 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -16,9 +16,17 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pydantic-settings
|
Name: python-pydantic-settings%{psuffix}
|
||||||
Version: 2.3.4
|
Version: 2.4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Settings management using Pydantic
|
Summary: Settings management using Pydantic
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -30,11 +38,12 @@ BuildRequires: %{python_module hatchling}
|
|||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module pydantic >= 2.3.0}
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module pydantic-settings == %{version}}
|
||||||
BuildRequires: %{python_module pytest-examples}
|
BuildRequires: %{python_module pytest-examples}
|
||||||
BuildRequires: %{python_module pytest-mock}
|
BuildRequires: %{python_module pytest-mock}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module python-dotenv >= 0.21.0}
|
%endif
|
||||||
# /SECTION
|
# /SECTION
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
Requires: python-pydantic >= 2.3.0
|
Requires: python-pydantic >= 2.3.0
|
||||||
@ -54,16 +63,26 @@ Settings management using Pydantic, this is the new official home of Pydantic's
|
|||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if !%{with test}
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%if %{with test}
|
||||||
|
# This test requires azure
|
||||||
|
skiptest="test_docs_examples[docs/index.md:1212-1256]"
|
||||||
|
# Failing test, not raising the same warning
|
||||||
|
skiptest+=" or test_protected_namespace_defaults"
|
||||||
|
%pytest -k "not ($skiptest)"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{python_sitelib}/pydantic_settings
|
%{python_sitelib}/pydantic_settings
|
||||||
%{python_sitelib}/pydantic_settings-%{version}.dist-info
|
%{python_sitelib}/pydantic_settings-%{version}.dist-info
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user