From 569c5c662bee718cb6037228fcfb9d30bd1261b4859d15dbb3844534ecee4ea1 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 6 Nov 2023 08:15:24 +0000 Subject: [PATCH] Accepting request 1123461 from home:darix:branches:devel:languages:python:mailman - make it easier to notice to keep buildrequires and runtime requires version limits in sync. This will also help us to notice early when the version of other libraries do not match the requires encoded in the source code. OBS-URL: https://build.opensuse.org/request/show/1123461 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-postorius?expand=0&rev=52 --- python-postorius.changes | 8 ++++++++ python-postorius.spec | 17 +++++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/python-postorius.changes b/python-postorius.changes index 915be0a..d61830c 100644 --- a/python-postorius.changes +++ b/python-postorius.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Nov 6 00:11:33 UTC 2023 - Marcus Rueckert + +- make it easier to notice to keep buildrequires and runtime + requires version limits in sync. This will also help us to notice + early when the version of other libraries do not match the + requires encoded in the source code. + ------------------------------------------------------------------- Thu Nov 2 10:42:19 UTC 2023 - Andreas Schneider diff --git a/python-postorius.spec b/python-postorius.spec index 911cdb5..a4404a2 100644 --- a/python-postorius.spec +++ b/python-postorius.spec @@ -15,6 +15,11 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # +# keep in sync with setup.py +%global django_mailman3_min_version 1.3.10 +%global django_min_version 3.2 +%global django_max_version 4.3 +%global mailmanclient_min_version 3.3.3 %{?sle15_python_module_pythons} @@ -77,14 +82,14 @@ BuildRequires: python3-packaging %endif # SECTION test requirements BuildRequires: mailman3 >= 3.3.5 -BuildRequires: %{python_module Django >= 2.2} +BuildRequires: %{python_module Django >= %{django_min_version}} BuildRequires: %{python_module beautifulsoup4} BuildRequires: %{python_module cmarkgfm} BuildRequires: %{python_module django-debug-toolbar >= 2.2} -BuildRequires: %{python_module django-mailman3 >= 1.3.7} +BuildRequires: %{python_module django-mailman3 >= %{django_mailman3_min_version}} BuildRequires: %{python_module django-requests-debug-toolbar >= 0.0.3} BuildRequires: %{python_module isort} -BuildRequires: %{python_module mailmanclient >= 3.3.3} +BuildRequires: %{python_module mailmanclient >= %{mailmanclient_min_version}} BuildRequires: %{python_module pytest-django} BuildRequires: %{python_module pytest} BuildRequires: %{python_module readme_renderer} @@ -97,11 +102,11 @@ A web user interface for GNU Mailman %package -n %{postorius_pkgname} Summary: A web user interface for GNU Mailman -Requires: %{mypython}-Django >= 1.11 +Requires: (%{mypython}-Django >= %{django_min_version} with %{mypython}-Django < %{django_max_version}) Requires: %{mypython}-django-debug-toolbar >= 2.2.0 -Requires: %{mypython}-django-mailman3 >= 1.3.7 +Requires: %{mypython}-django-mailman3 >= %{django_mailman3_min_version} Requires: %{mypython}-django-requests-debug-toolbar >= 0.0.3 -Requires: %{mypython}-mailmanclient >= 3.3.2 +Requires: %{mypython}-mailmanclient >= %{mailmanclient_min_version} Requires: %{mypython}-readme_renderer %if "%{expand:%%%{mypython}_provides}" == "python3" Provides: python3-%{postorius_pkgname} = %{version}-%{release}