- fix buildcycle with fastapi
- Initial package for v0.0.22. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlmodel?expand=0&rev=3
This commit is contained in:
parent
29b296dd30
commit
928a3ad6d5
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 29 08:06:12 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- fix buildcycle with fastapi
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 17 13:21:38 UTC 2024 - Aline Werner <aline.werner@suse.com>
|
Tue Sep 17 13:21:38 UTC 2024 - Aline Werner <aline.werner@suse.com>
|
||||||
|
|
||||||
|
@ -16,33 +16,43 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%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-sqlmodel
|
Name: python-sqlmodel%{psuffix}
|
||||||
Version: 0.0.22
|
Version: 0.0.22
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: SQL databases in Python, designed for simplicity, compatibility, and robustness
|
Summary: SQL databases in Python, designed for simplicity, compatibility, and robustness
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/fastapi/sqlmodel
|
URL: https://github.com/fastapi/sqlmodel
|
||||||
Source: https://files.pythonhosted.org/packages/source/s/sqlmodel/sqlmodel-%{version}.tar.gz
|
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}
|
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
|
# SECTION test requirements
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module Jinja2}
|
||||||
BuildRequires: %{python_module black}
|
BuildRequires: %{python_module black}
|
||||||
BuildRequires: %{python_module dirty-equals}
|
BuildRequires: %{python_module dirty-equals}
|
||||||
BuildRequires: %{python_module fastapi}
|
BuildRequires: %{python_module fastapi}
|
||||||
BuildRequires: %{python_module httpx}
|
BuildRequires: %{python_module httpx}
|
||||||
BuildRequires: %{python_module Jinja2}
|
|
||||||
BuildRequires: %{python_module pytest}
|
|
||||||
BuildRequires: %{python_module pytest-cov}
|
BuildRequires: %{python_module pytest-cov}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
%endif
|
||||||
# /SECTION
|
# /SECTION
|
||||||
BuildRequires: fdupes
|
|
||||||
Requires: python-pydantic >= 1.10.13
|
|
||||||
Requires: python-SQLAlchemy >= 2.0.14
|
|
||||||
BuildArch: noarch
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -58,12 +68,16 @@ powered by Pydantic and SQLAlchemy.
|
|||||||
%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
|
||||||
|
%if %{with test}
|
||||||
export PYTHONPATH=$(pwd):$PYTHONPATH
|
export PYTHONPATH=$(pwd):$PYTHONPATH
|
||||||
%pytest -v tests
|
%pytest -v tests
|
||||||
|
%endif
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
Loading…
x
Reference in New Issue
Block a user