From d9bd1941729e39f951f0e8b12d41d090dafc0d0e93d3b5ed3ccec95beee7222c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 24 Sep 2024 11:09:59 +0000 Subject: [PATCH] - Fix the runtime requires OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-peewee-migrate?expand=0&rev=3 --- python-peewee-migrate.changes | 4 +--- python-peewee-migrate.spec | 12 ++++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/python-peewee-migrate.changes b/python-peewee-migrate.changes index a957525..e985f76 100644 --- a/python-peewee-migrate.changes +++ b/python-peewee-migrate.changes @@ -1,9 +1,7 @@ ------------------------------------------------------------------- Mon Sep 23 07:12:23 UTC 2024 - Simon Lees -- Swap the following to not use macros: - * Requires: %{python_module click} - * Requires: %{python_module peewee} +- Fix the runtime requires ------------------------------------------------------------------- Tue Aug 13 01:16:17 UTC 2024 - Simon Lees diff --git a/python-peewee-migrate.spec b/python-peewee-migrate.spec index 21ed076..6fb49cc 100644 --- a/python-peewee-migrate.spec +++ b/python-peewee-migrate.spec @@ -15,8 +15,8 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # -# mypy on SLE-15 is too old for this test suite -%if 0%{?suse_version} > 1500 + +%if 0%{?suse_version} > 1500 %define run_tests 1 %else %define run_tests 0 @@ -30,20 +30,20 @@ Summary: Support for migrations in Peewee ORM License: MIT URL: https://github.com/klen/peewee_migrate Source: https://files.pythonhosted.org/packages/source/p/peewee-migrate/peewee_migrate-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module pip} BuildRequires: %{python_module poetry-core >= 1.0.0} +BuildRequires: python-rpm-macros %if 0%{?run_tests} # The following are required for the testsuite BuildRequires: %{python_module peewee} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest-mypy} +BuildRequires: %{python_module pytest} %endif BuildRequires: fdupes Requires(post): update-alternatives Requires(postun): update-alternatives -Requires: python-click -Requires: python-peewee +Requires: python-click +Requires: python-peewee BuildArch: noarch %python_subpackages