diff --git a/_multibuild b/_multibuild
new file mode 100644
index 0000000..fcc7b97
--- /dev/null
+++ b/_multibuild
@@ -0,0 +1,3 @@
+
+ test
+
diff --git a/pydantic_settings-2.3.4.tar.gz b/pydantic_settings-2.3.4.tar.gz
deleted file mode 100644
index cb6b4dc..0000000
--- a/pydantic_settings-2.3.4.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:c5802e3d62b78e82522319bbc9b8f8ffb28ad1c988a99311d04f2a6051fca0a7
-size 59231
diff --git a/pydantic_settings-2.4.0.tar.gz b/pydantic_settings-2.4.0.tar.gz
new file mode 100644
index 0000000..5a0e760
--- /dev/null
+++ b/pydantic_settings-2.4.0.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ed81c3a0f46392b4d7c0a565c05884e6e54b3456e6f0fe4d8814981172dc9a88
+size 63033
diff --git a/python-pydantic-settings.changes b/python-pydantic-settings.changes
index e014b5e..030347f 100644
--- a/python-pydantic-settings.changes
+++ b/python-pydantic-settings.changes
@@ -1,3 +1,16 @@
+-------------------------------------------------------------------
+Thu Sep 12 05:57:59 UTC 2024 - Steve Kowalik
+
+- 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
diff --git a/python-pydantic-settings.spec b/python-pydantic-settings.spec
index 7ec5da1..f3fe11d 100644
--- a/python-pydantic-settings.spec
+++ b/python-pydantic-settings.spec
@@ -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}
-Name: python-pydantic-settings
-Version: 2.3.4
+Name: python-pydantic-settings%{psuffix}
+Version: 2.4.0
Release: 0
Summary: Settings management using Pydantic
License: MIT
@@ -30,11 +38,13 @@ BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: python-rpm-macros
# SECTION test requirements
-BuildRequires: %{python_module pydantic >= 2.3.0}
+%if %{with test}
+BuildRequires: %{python_module azure-identity >= 1.16}
+BuildRequires: %{python_module pydantic-settings == %{version}}
BuildRequires: %{python_module pytest-examples}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
-BuildRequires: %{python_module python-dotenv >= 0.21.0}
+%endif
# /SECTION
BuildRequires: fdupes
Requires: python-pydantic >= 2.3.0
@@ -54,16 +64,22 @@ Settings management using Pydantic, this is the new official home of Pydantic's
%pyproject_wheel
%install
+%if !%{with test}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
%check
+%if %{with test}
%pytest
+%endif
+%if !%{with test}
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/pydantic_settings
%{python_sitelib}/pydantic_settings-%{version}.dist-info
+%endif
%changelog