From 40ce5e5a2036ad122dfa3efb618c96e78ec7afc975867c66e265a12ca2554a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 2 Nov 2023 12:42:21 +0000 Subject: [PATCH 1/3] Accepting request 1122606 from home:gladiac:mailman - Update to version 1.3.10 * See https://gitlab.com/mailman/postorius/-/blob/v1.3.10/src/postorius/doc/news.rst or the file news.rst in the postorius package OBS-URL: https://build.opensuse.org/request/show/1122606 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-postorius?expand=0&rev=51 --- postorius-1.3.10.tar.gz | 3 +++ postorius-1.3.8.tar.gz | 3 --- python-postorius.changes | 7 +++++++ python-postorius.spec | 6 +++--- 4 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 postorius-1.3.10.tar.gz delete mode 100644 postorius-1.3.8.tar.gz diff --git a/postorius-1.3.10.tar.gz b/postorius-1.3.10.tar.gz new file mode 100644 index 0000000..1be7fa8 --- /dev/null +++ b/postorius-1.3.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a66c8a8efb4dcb81b5312759d34ad5eb60ddedd8c7efcdb7984408a97d35b5a +size 3491545 diff --git a/postorius-1.3.8.tar.gz b/postorius-1.3.8.tar.gz deleted file mode 100644 index 6fe365c..0000000 --- a/postorius-1.3.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d664adf8f571df15090dce49c2b0a62a244d203c1bb238db336162e52833ea1f -size 3222195 diff --git a/python-postorius.changes b/python-postorius.changes index ce18029..915be0a 100644 --- a/python-postorius.changes +++ b/python-postorius.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Nov 2 10:42:19 UTC 2023 - Andreas Schneider + +- Update to version 1.3.10 + * See https://gitlab.com/mailman/postorius/-/blob/v1.3.10/src/postorius/doc/news.rst + or the file news.rst in the postorius package + ------------------------------------------------------------------- Sun Jul 2 06:30:47 UTC 2023 - Andreas Schneider diff --git a/python-postorius.spec b/python-postorius.spec index 2f43f12..911cdb5 100644 --- a/python-postorius.spec +++ b/python-postorius.spec @@ -46,13 +46,13 @@ %endif Name: python-postorius -Version: 1.3.8 +Version: 1.3.10 Release: 0 Summary: A web user interface for GNU Mailman License: GPL-3.0-only URL: https://gitlab.com/mailman/postorius # -Source0: https://files.pythonhosted.org/packages/5b/47/0546fb950c3db35401c02ee77c66da7f78e2e276ee86198d1aa6929f9818/postorius-1.3.8.tar.gz +Source0: https://files.pythonhosted.org/packages/source/p/postorius/postorius-%{version}.tar.gz Source1: python-postorius-rpmlintrc # Source10: postorius-manage.sh @@ -222,7 +222,7 @@ fi %{_sbindir}/postorius-manage migrate --pythonpath /srv/www/webapps/mailman/postorius/ --settings settings %files -n %{postorius_pkgname} -%doc README.rst example_project +%doc README.rst example_project src/postorius/doc/*.rst %license COPYING %{mypython_sitelib}/postorius %{mypython_sitelib}/postorius-%{version}*-info From 569c5c662bee718cb6037228fcfb9d30bd1261b4859d15dbb3844534ecee4ea1 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 6 Nov 2023 08:15:24 +0000 Subject: [PATCH 2/3] 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} From 5e5eb4682e8d9b2ffe1c5e6df14e1f830cd407a59314b0c72ec5654b6a652b89 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 6 Nov 2023 13:52:23 +0000 Subject: [PATCH 3/3] Accepting request 1123578 from openSUSE:infrastructure:mailman3 - make it easy to run a build without testsuite osc build --without=testsuite OBS-URL: https://build.opensuse.org/request/show/1123578 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-postorius?expand=0&rev=53 --- python-postorius.changes | 6 ++++++ python-postorius.spec | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/python-postorius.changes b/python-postorius.changes index d61830c..80627a1 100644 --- a/python-postorius.changes +++ b/python-postorius.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Nov 6 11:47:26 UTC 2023 - Marcus Rueckert + +- make it easy to run a build without testsuite + osc build --without=testsuite + ------------------------------------------------------------------- Mon Nov 6 00:11:33 UTC 2023 - Marcus Rueckert diff --git a/python-postorius.spec b/python-postorius.spec index a4404a2..5ead8d5 100644 --- a/python-postorius.spec +++ b/python-postorius.spec @@ -15,6 +15,8 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%bcond_without testsuite + # keep in sync with setup.py %global django_mailman3_min_version 1.3.10 %global django_min_version 3.2 @@ -36,6 +38,7 @@ %global postorius_logdir %{_localstatedir}/log/postorius %global postorius_datadir %{postorius_libdir}/data +# keep in sync with python-HyperKitty/python-mailman-web %if 0%{?suse_version} >= 1550 # Newest python supported by mailman is Python 3.11 %define pythons python311 @@ -206,6 +209,7 @@ install -m 0750 %{SOURCE10} %{buildroot}%{_sbindir}/postorius-manage install -d -m 0755 %{buildroot}%{_sysconfdir}/uwsgi/vassals install -m 0644 %{SOURCE12} %{buildroot}%{_sysconfdir}/uwsgi/vassals/postorius.ini +%if %{with testsuite} %check export PYTHONPATH="$(pwd):$(pwd)/src" export LANG=C.UTF-8 @@ -213,6 +217,7 @@ export LANG=C.UTF-8 # clean flavored alternatives created by test setup, because we are going to install the example_project as docs rm -rf build/flavorbin rm -rf build/xdgflavorconfig +%endif %pre -n %{postorius_pkgname}-web /usr/sbin/groupadd -r postorius &>/dev/null || :