diff --git a/python-sqlmodel.changes b/python-sqlmodel.changes index 5baf9d9..48d7daf 100644 --- a/python-sqlmodel.changes +++ b/python-sqlmodel.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Thu Feb 19 04:13:37 UTC 2026 - Steve Kowalik + +- Update to 0.0.34: + * Fix support for Annotated fields with Pydantic 2.12+. + * Drop support for Pydantic v1. + * Drop support for Python 3.8. + * Fix alias support for Pydantic v2. + * Fix RuntimeError: dictionary changed size during iteration in + sqlmodel_update(). + * Add PEP-639 license metadata. + ------------------------------------------------------------------- Mon Nov 10 08:27:59 UTC 2025 - Dirk Müller diff --git a/python-sqlmodel.spec b/python-sqlmodel.spec index 1e84e61..e62d7c8 100644 --- a/python-sqlmodel.spec +++ b/python-sqlmodel.spec @@ -1,7 +1,7 @@ # # spec file for package python-sqlmodel # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,21 +26,19 @@ %endif %{?sle15_python_module_pythons} Name: python-sqlmodel%{psuffix} -Version: 0.0.27 +Version: 0.0.34 Release: 0 Summary: SQL databases in Python, designed for simplicity, compatibility, and robustness License: MIT URL: https://github.com/fastapi/sqlmodel Source: https://files.pythonhosted.org/packages/source/s/sqlmodel/sqlmodel-%{version}.tar.gz -BuildRequires: %{python_module SQLAlchemy >= 2.0.14} +BuildRequires: %{python_module base >= 3.9} BuildRequires: %{python_module pdm-backend} BuildRequires: %{python_module pip} -BuildRequires: %{python_module pydantic >= 1.10.13} -BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-SQLAlchemy >= 2.0.14 -Requires: python-pydantic >= 1.10.13 +Requires: python-pydantic >= 2.11.0 BuildArch: noarch # SECTION test requirements %if %{with test} @@ -51,6 +49,7 @@ BuildRequires: %{python_module fastapi} BuildRequires: %{python_module httpx} BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module sqlmodel = %{version}} %endif # /SECTION %python_subpackages @@ -76,7 +75,8 @@ powered by Pydantic and SQLAlchemy. %check %if %{with test} export PYTHONPATH=$(pwd):$PYTHONPATH -%pytest -v tests +# coverage appears to not a write a file/can't be found +%pytest -v tests -k 'not (test_create_db_and_table and tutorial001)' %endif %if !%{with test} diff --git a/sqlmodel-0.0.27.tar.gz b/sqlmodel-0.0.27.tar.gz deleted file mode 100644 index 4bef45d..0000000 --- a/sqlmodel-0.0.27.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ad1227f2014a03905aef32e21428640848ac09ff793047744a73dfdd077ff620 -size 118053 diff --git a/sqlmodel-0.0.34.tar.gz b/sqlmodel-0.0.34.tar.gz new file mode 100644 index 0000000..baabf9b --- /dev/null +++ b/sqlmodel-0.0.34.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:577e4aae1ba96ee5038e03d8b1404c642dad1a92e628988cdf4ce68d27abe982 +size 96236