14
0
forked from pool/python-peewee

Accepting request 1137846 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1137846
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-peewee?expand=0&rev=25
This commit is contained in:
2024-01-10 20:52:26 +00:00
committed by Git OBS Bridge
2 changed files with 19 additions and 6 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jan 9 15:18:54 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>
- Remove unneeded BuildRequires PyMySQL and psycopg2. I checked
that the number of tests that are run are the same.
- Fix shebangs and other rpmlint errors/warnings
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 7 14:21:31 UTC 2023 - Dirk Müller <dmueller@suse.com> Tue Nov 7 14:21:31 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-peewee # spec file for package python-peewee
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -26,13 +26,11 @@ URL: https://github.com/coleifer/peewee
Source: https://github.com/coleifer/peewee/archive/refs/tags/%{version}.tar.gz#/peewee-%{version}.tar.gz Source: https://github.com/coleifer/peewee/archive/refs/tags/%{version}.tar.gz#/peewee-%{version}.tar.gz
BuildRequires: %{python_module Cython} BuildRequires: %{python_module Cython}
BuildRequires: %{python_module Flask} BuildRequires: %{python_module Flask}
BuildRequires: %{python_module PyMySQL}
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > 1500
BuildRequires: %{python_module apsw} BuildRequires: %{python_module apsw}
%endif %endif
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module psycopg2}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: %{pythons} BuildRequires: %{pythons}
@@ -57,7 +55,11 @@ An expressive ORM that supports PostgreSQL, MySQL and SQLite.
%install %install
%pyproject_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pwiz.py %python_clone -a %{buildroot}%{_bindir}/pwiz.py
%python_expand %fdupes %{buildroot}%{$python_sitearch} %{python_expand %fdupes %{buildroot}%{$python_sitearch}
# Remove shebang from non-executable files
sed -i -e '1{\@^#! *%{_bindir}.*python@d}' %{buildroot}%{$python_sitearch}/pwiz.py
}
%check %check
%pytest_arch tests %pytest_arch tests
@@ -71,8 +73,12 @@ An expressive ORM that supports PostgreSQL, MySQL and SQLite.
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc CHANGELOG.md README.rst TODO.rst %doc CHANGELOG.md README.rst TODO.rst
%{_bindir}/pwiz.py-%{python_bin_suffix}
%python_alternative %{_bindir}/pwiz.py %python_alternative %{_bindir}/pwiz.py
%{python_sitearch}/* %{python_sitearch}/peewee-%{version}*-info
%{python_sitearch}/peewee.py
%{python_sitearch}/pwiz.py
%{python_sitearch}/playhouse
%pycache_only %{python_sitearch}/__pycache__/peewee.*.pyc
%pycache_only %{python_sitearch}/__pycache__/pwiz.*.pyc
%changelog %changelog