From 8872b80be8861d41c904ff8aa9079e3273e19621872a732e62bb412673ccceef Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 9 Jan 2024 23:36:02 +0000 Subject: [PATCH] Accepting request 1137767 from home:alarrosa:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/1137767 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-peewee?expand=0&rev=50 --- python-peewee.changes | 7 +++++++ python-peewee.spec | 18 ++++++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/python-peewee.changes b/python-peewee.changes index 0620cd6..e67c46c 100644 --- a/python-peewee.changes +++ b/python-peewee.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Jan 9 15:18:54 UTC 2024 - Antonio Larrosa + +- 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 diff --git a/python-peewee.spec b/python-peewee.spec index 433f761..76e39f9 100644 --- a/python-peewee.spec +++ b/python-peewee.spec @@ -1,7 +1,7 @@ # # 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 # 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 BuildRequires: %{python_module Cython} BuildRequires: %{python_module Flask} -BuildRequires: %{python_module PyMySQL} %if 0%{?suse_version} > 1500 BuildRequires: %{python_module apsw} %endif BuildRequires: %{python_module devel} BuildRequires: %{python_module pip} -BuildRequires: %{python_module psycopg2} BuildRequires: %{python_module pytest} BuildRequires: %{python_module wheel} BuildRequires: %{pythons} @@ -57,7 +55,11 @@ An expressive ORM that supports PostgreSQL, MySQL and SQLite. %install %pyproject_install %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 %pytest_arch tests @@ -71,8 +73,12 @@ An expressive ORM that supports PostgreSQL, MySQL and SQLite. %files %{python_files} %license LICENSE %doc CHANGELOG.md README.rst TODO.rst -%{_bindir}/pwiz.py-%{python_bin_suffix} %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