From 61b3d78a0192da783c0896c888fe4afe272ff71b8a9aafe95ee0bb5d8f2d6df2 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 10 Nov 2025 08:28:21 +0000 Subject: [PATCH] - update to 0.0.27: * Add support for Python 3.14. PR #1578 by @svlandeg. - update to 0.0.26: * Fix attribute handling in `model_dump` for compatibility with the latest Pydantic versions. PR #1595 by @spazm. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlmodel?expand=0&rev=10 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + _multibuild | 3 ++ python-sqlmodel.changes | 35 ++++++++++++++++ python-sqlmodel.spec | 90 +++++++++++++++++++++++++++++++++++++++++ sqlmodel-0.0.25.tar.gz | 3 ++ sqlmodel-0.0.27.tar.gz | 3 ++ 7 files changed, 158 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _multibuild create mode 100644 python-sqlmodel.changes create mode 100644 python-sqlmodel.spec create mode 100644 sqlmodel-0.0.25.tar.gz create mode 100644 sqlmodel-0.0.27.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc 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/python-sqlmodel.changes b/python-sqlmodel.changes new file mode 100644 index 0000000..5baf9d9 --- /dev/null +++ b/python-sqlmodel.changes @@ -0,0 +1,35 @@ +------------------------------------------------------------------- +Mon Nov 10 08:27:59 UTC 2025 - Dirk Müller + +- update to 0.0.27: + * Add support for Python 3.14. PR #1578 by @svlandeg. +- update to 0.0.26: + * Fix attribute handling in `model_dump` for compatibility + with the latest Pydantic versions. PR #1595 by @spazm. + +------------------------------------------------------------------- +Thu Sep 25 11:32:00 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 0.0.25 + * Add overload for `exec` method to support `insert`, `update`, + `delete` statements. + +------------------------------------------------------------------- +Fri Mar 28 20:55:21 UTC 2025 - Dirk Müller + +- update to 0.0.24: + * Add support for Python 3.13. +- update to 0.0.23: + * Fix type annotation in `Field` constructor. + * Fix Pydantic version check for version 2.10.x onwards. + * Fix typo in `databases.md`. + +------------------------------------------------------------------- +Tue Oct 29 08:06:12 UTC 2024 - Dirk Müller + +- fix buildcycle with fastapi + +------------------------------------------------------------------- +Tue Sep 17 13:21:38 UTC 2024 - Aline Werner + +- Initial package for v0.0.22. diff --git a/python-sqlmodel.spec b/python-sqlmodel.spec new file mode 100644 index 0000000..1e84e61 --- /dev/null +++ b/python-sqlmodel.spec @@ -0,0 +1,90 @@ +# +# spec file for package python-sqlmodel +# +# Copyright (c) 2025 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%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-sqlmodel%{psuffix} +Version: 0.0.27 +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 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 +BuildArch: noarch +# SECTION test requirements +%if %{with test} +BuildRequires: %{python_module Jinja2} +BuildRequires: %{python_module black} +BuildRequires: %{python_module dirty-equals} +BuildRequires: %{python_module fastapi} +BuildRequires: %{python_module httpx} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest} +%endif +# /SECTION +%python_subpackages + +%description +SQLModel is a library for interacting with SQL databases from Python code, +with Python objects. It is designed to be intuitive, easy to use, highly +compatible, and robust. SQLModel is based on Python type annotations, and +powered by Pydantic and SQLAlchemy. + +%prep +%autosetup -p1 -n sqlmodel-%{version} + +%build +%pyproject_wheel + +%install +%if !%{with test} +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%check +%if %{with test} +export PYTHONPATH=$(pwd):$PYTHONPATH +%pytest -v tests +%endif + +%if !%{with test} +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/sqlmodel +%{python_sitelib}/sqlmodel-%{version}.dist-info +%endif + +%changelog diff --git a/sqlmodel-0.0.25.tar.gz b/sqlmodel-0.0.25.tar.gz new file mode 100644 index 0000000..ab310c2 --- /dev/null +++ b/sqlmodel-0.0.25.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56548c2e645975b1ed94d6c53f0d13c85593f57926a575e2bf566650b2243fa4 +size 117075 diff --git a/sqlmodel-0.0.27.tar.gz b/sqlmodel-0.0.27.tar.gz new file mode 100644 index 0000000..4bef45d --- /dev/null +++ b/sqlmodel-0.0.27.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad1227f2014a03905aef32e21428640848ac09ff793047744a73dfdd077ff620 +size 118053