From 0ae12b676d7dcdb03a387f822f02418b9d83fdb646e291fe5658413f1c7c2eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 18 Sep 2024 09:49:39 +0000 Subject: [PATCH] needed for the AI project OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlmodel?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + python-sqlmodel.changes | 4 +++ python-sqlmodel.spec | 74 +++++++++++++++++++++++++++++++++++++++++ sqlmodel-0.0.22.tar.gz | 3 ++ 5 files changed, 105 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-sqlmodel.changes create mode 100644 python-sqlmodel.spec create mode 100644 sqlmodel-0.0.22.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/python-sqlmodel.changes b/python-sqlmodel.changes new file mode 100644 index 0000000..10734bf --- /dev/null +++ b/python-sqlmodel.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +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..b5eba0f --- /dev/null +++ b/python-sqlmodel.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-sqlmodel +# +# Copyright (c) 2024 SUSE LLC +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-sqlmodel +Version: 0.0.22 +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-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pdm-backend} +BuildRequires: %{python_module pydantic >= 1.10.13} +BuildRequires: %{python_module SQLAlchemy >= 2.0.14} +# SECTION test requirements +BuildRequires: %{python_module black} +BuildRequires: %{python_module dirty-equals} +BuildRequires: %{python_module fastapi} +BuildRequires: %{python_module httpx} +BuildRequires: %{python_module Jinja2} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-cov} +# /SECTION +BuildRequires: fdupes +Requires: python-pydantic >= 1.10.13 +Requires: python-SQLAlchemy >= 2.0.14 +BuildArch: noarch +%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 +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export PYTHONPATH=$(pwd):$PYTHONPATH +%pytest -v tests + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/sqlmodel +%{python_sitelib}/sqlmodel-%{version}.dist-info + +%changelog diff --git a/sqlmodel-0.0.22.tar.gz b/sqlmodel-0.0.22.tar.gz new file mode 100644 index 0000000..1177e4c --- /dev/null +++ b/sqlmodel-0.0.22.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d37c882a30c43464d143e35e9ecaf945d88035e20117bf5ec2834a23cbe505e +size 116392