17
0

Compare commits

17 Commits

Author SHA256 Message Date
5c657f241d Accepting request 1324689 from devel:languages:python:mailman
OBS-URL: https://build.opensuse.org/request/show/1324689
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-postorius?expand=0&rev=15
2025-12-29 14:17:50 +00:00
ee82c25c21 - If possible build for primary_python (fixes Leap 16.0)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-postorius?expand=0&rev=75
2025-12-29 11:01:30 +00:00
470bce4f21 Accepting request 1323491 from devel:languages:python:mailman
OBS-URL: https://build.opensuse.org/request/show/1323491
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-postorius?expand=0&rev=14
2025-12-18 17:35:52 +00:00
87d7e8a5f8 - Add upstream django52.patch to officially support Django 5.2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-postorius?expand=0&rev=73
2025-12-18 09:26:05 +00:00
ed76205541 cleanup
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-postorius?expand=0&rev=72
2025-07-17 12:51:06 +00:00
475b880029 Accepting request 1252762 from devel:languages:python:mailman
OBS-URL: https://build.opensuse.org/request/show/1252762
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-postorius?expand=0&rev=13
2025-03-13 15:18:12 +00:00
ad3c22cae1 - django still needs the cgi module, add legacy-cgi as BR and Requires
Note: this is a hotfix to fix the build failure for Python 3.13.

While it helps, I'm not sure if I added it at the right place/package or if
it should go somewhere else. So if you don't like this hotfix, feel free to
decline (bonus points if you tell me where the fix should go ;-)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-postorius?expand=0&rev=70
2025-03-13 12:56:53 +00:00
87be876b8a Accepting request 1235241 from devel:languages:python:mailman
OBS-URL: https://build.opensuse.org/request/show/1235241
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-postorius?expand=0&rev=12
2025-01-07 19:53:05 +00:00
bb230f32db Accepting request 1235240 from home:gladiac:mailman
- Add missing python-six BR for running tests

OBS-URL: https://build.opensuse.org/request/show/1235240
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-postorius?expand=0&rev=68
2025-01-06 16:24:09 +00:00
954960494a Accepting request 1224782 from devel:languages:python:mailman
OBS-URL: https://build.opensuse.org/request/show/1224782
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-postorius?expand=0&rev=11
2024-11-18 19:01:46 +00:00
3b3b47553e Accepting request 1224780 from home:mcepl:branches:devel:languages:python:mailman
- %defattr is evil! Rather have a long (and readable) list of
  %attr in front of every line
- one consequence of using %defattr is that we were changing
  ownership of /srv/www, which any individual web server has no
  business to do.

OBS-URL: https://build.opensuse.org/request/show/1224780
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-postorius?expand=0&rev=66
2024-11-18 08:02:29 +00:00
e4efffb4ec - Due to bsc#1231027, add /srv/www to %files.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-postorius?expand=0&rev=65
2024-11-14 03:17:09 +00:00
7030ca148d - Use correct PDM package to build, it's pdm-backend.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-postorius?expand=0&rev=64
2024-11-13 01:19:48 +00:00
ed8ffbcdba Accepting request 1202862 from devel:languages:python:mailman
OBS-URL: https://build.opensuse.org/request/show/1202862
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-postorius?expand=0&rev=10
2024-09-24 15:34:12 +00:00
c2bb63f13d Accepting request 1202326 from home:gladiac:mailman
- Update to version 1.3.13
  * See https://gitlab.com/mailman/postorius/-/blob/v1.3.13/src/postorius/doc/news.rst
    or packaged news.rst file.
- Re-added GPG signature

OBS-URL: https://build.opensuse.org/request/show/1202326
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-postorius?expand=0&rev=62
2024-09-24 09:01:52 +00:00
0d409fe2d1 Accepting request 1201657 from devel:languages:python:mailman
OBS-URL: https://build.opensuse.org/request/show/1201657
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-postorius?expand=0&rev=9
2024-09-18 13:27:08 +00:00
d732cbdd05 Accepting request 1201338 from home:gladiac:mailman
- Update to version 1.3.12
  * See https://gitlab.com/mailman/postorius/-/blob/v1.3.12/src/postorius/doc/news.rst
    or packaged news.rst file.
- Removed GPG signature as the download links don't work
- Update to version 1.3.11
  * See https://gitlab.com/mailman/postorius/-/blob/v1.3.11/src/postorius/doc/news.rst
    or packaged news.rst file.

OBS-URL: https://build.opensuse.org/request/show/1201338
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-postorius?expand=0&rev=60
2024-09-17 15:22:08 +00:00
7 changed files with 143 additions and 45 deletions

28
django52.patch Normal file
View File

@@ -0,0 +1,28 @@
From 0468ab0329df85b89e6b5d9f7b4d1805f47450c9 Mon Sep 17 00:00:00 2001
From: SATOH Fumiyasu <fumiyas@osstech.co.jp>
Date: Tue, 5 Aug 2025 15:16:22 +0000
Subject: [PATCH] feat: Add Python 3.13 and Django 5.2 (LTS) support
---
.gitlab-ci.yml | 40 ++++++++++++++++----------------------
pyproject.toml | 2 +-
src/postorius/doc/news.rst | 2 ++
tox.ini | 8 +++++---
4 files changed, 25 insertions(+), 27 deletions(-)
diff --git a/pyproject.toml b/pyproject.toml
index 83b76d5c..de948694 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -16,7 +16,7 @@ classifiers = [
]
dependencies = [
"django-mailman3>=1.3.13",
- "django>=4.2,<5.1",
+ "django>=4.2,<5.3",
"mailmanclient>=3.3.3",
"readme_renderer[md]",
]
--
GitLab

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1a66c8a8efb4dcb81b5312759d34ad5eb60ddedd8c7efcdb7984408a97d35b5a
size 3491545

View File

@@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEVB6gRIRTOU/3eg7MnZsroGHQpnwFAmU0FPcACgkQnZsroGHQ
pnwAnw/+Iqc/Xw6Y4xug3GGoA5i85HG7Liip8v2ZeRmdarDkqdwkbLpu6n9nonjK
f62zh7YnstzV8hFQde33n2jSuo9IfDh0X7M+sD0JVjZZnoKM5HGA2c+NdsRY6ZIS
aBwMeAsLd03Pzon/3nUMLooQ+QYQfOVhBDEgnPKZMsAZeyY+15Hk/au0Cz2Ssjx2
JMaQKOKpKAiFmy7kbW5/acJSDLHutJiiCLHzSoZtQZikAvHF1siwkPzN5tS2phzz
4AedQnmb6oPzwHfZpDMqKmMuAXgmFVh8ROS/DWr3ZXnZkhC6mXUeUAN12tidhKG4
DEMacMu8/XAd8Am9xnm03Q0JWRGqFlLN4efC4ee4bx5wwTju0JHlNkhNkWMr/NDz
NYYQM9Lf9+JGp1DqZK/znQsYNj0ntERs3hLppXSFFK9ColxFllv+qD0FOcFM4slh
0O06Ziy/A0w9XxljAM46fO2GXmw4whGC9INycKByiwQ2p16MFiCr700gfSFS6W6h
JwSzSnH4rHED0iU3joA8J2NyZr93amLXVkhic16Y8YiAJmkBWt0D76yTcpzbFmGo
WTeIPrdusolKnfplph8Z3xHOPGQ/rHhyBmJIYs6MfJtB1rXwYMZdUU5pZuVYRCL2
1t/0Sy1w/hwWI2Cno0PRmtuxZn4A+WudI2JlKAHFvqSZKymv1XM=
=GWuI
-----END PGP SIGNATURE-----

3
postorius-1.3.13.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:602def5c4852900d49e8ad95196a2334e13c31e49d9c0859324879e7c5131a22
size 3508385

View File

@@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEVB6gRIRTOU/3eg7MnZsroGHQpnwFAmbudAYACgkQnZsroGHQ
pnzlZxAApgSauP24Lb4czStUNVNAz24t/0ibDpwO1ybRnVNz47sVR146W4csI8Op
f1ujcJQLbbRjesrzN06dWCu/J+AbmWjVyCOof8nEH76ahW/98She3YDTzz4ukh+o
saKmdNxqiVTIBjf5xKNL6WaUQ4zUaS/DTlyXGmaTQReluYQ2heVVr75Tcp4zqPBw
kmCaR7Yx8y6pvF8Va8GgVXDZ3oj73zlBXqqeHC2iv0KFV2jl9KaqWei6aWK97QuP
2/vCidDr65FdRUQGJUBk10BaCvjIUo5QL+ZJ0DL1TyqyiykTVYWu+15WBeURmIDV
UwpTsIPhm4DKsgvs4v16QxTaqI6KsC76IY9kwTAl4ba+9piECjamTOL0QIRLA43Q
+x94/bfp9T0n6D2evXUqTGhSqjpGoQhwxC/tCj9cNOLZSbDaEfN4kaiPf06myypz
D7QlzSsAqFPI4U29K/a6azAlBMRzT46cTWShk5vtCDKCr9IRHoSOpBxKRMTg/4V5
7hbWlSfxyGtWOFppoMndoRHGEHM2DQ99ksHDbPOhBcsOSmufPR+YS9DoHTLEgsp6
iyaG9x7EJTdPCACWn+73QKU6rt42qptWCNBnW5q6y0ViAByXJTincHYUCc3nU90v
DxyrhimDJj4HmcaEUoX3DkmjllEknL2kEpakpV5JjpAz6cljVbc=
=PF1U
-----END PGP SIGNATURE-----

View File

@@ -1,3 +1,61 @@
-------------------------------------------------------------------
Fri Dec 19 07:18:04 UTC 2025 - Andreas Schneider <asn@cryptomilk.org>
- If possible build for primary_python (fixes Leap 16.0)
-------------------------------------------------------------------
Wed Dec 17 13:32:04 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add upstream django52.patch to officially support Django 5.2
-------------------------------------------------------------------
Wed Mar 12 16:36:19 UTC 2025 - Christian Boltz <suse-beta@cboltz.de>
- django still needs the cgi module, add legacy-cgi as BR and Requires
-------------------------------------------------------------------
Mon Jan 6 16:09:18 UTC 2025 - Andreas Schneider <asn@cryptomilk.org>
- Add missing python-six BR for running tests
-------------------------------------------------------------------
Mon Nov 18 07:23:45 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- %defattr is evil! Rather have a long (and readable) list of
%attr in front of every line
- one consequence of using %defattr is that we were changing
ownership of /srv/www, which any individual web server has no
business to do.
-------------------------------------------------------------------
Thu Nov 14 03:16:20 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Use correct PDM package to build, it's pdm-backend.
- Due to bsc#1231027, add /srv/www to %files.
-------------------------------------------------------------------
Sat Sep 21 07:30:43 UTC 2024 - Andreas Schneider <asn@cryptomilk.org>
- Update to version 1.3.13
* See https://gitlab.com/mailman/postorius/-/blob/v1.3.13/src/postorius/doc/news.rst
or packaged news.rst file.
- Re-added GPG signature
-------------------------------------------------------------------
Sun Sep 15 20:19:37 UTC 2024 - Andreas Schneider <asn@cryptomilk.org>
- Update to version 1.3.12
* See https://gitlab.com/mailman/postorius/-/blob/v1.3.12/src/postorius/doc/news.rst
or packaged news.rst file.
- Removed GPG signature as the download links don't work
-------------------------------------------------------------------
Sun Jun 23 08:40:28 UTC 2024 - Andreas Schneider <asn@cryptomilk.org>
- Update to version 1.3.11
* See https://gitlab.com/mailman/postorius/-/blob/v1.3.11/src/postorius/doc/news.rst
or packaged news.rst file.
-------------------------------------------------------------------
Thu Mar 7 09:40:26 UTC 2024 - Andreas Schneider <asn@cryptomilk.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-postorius
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,13 +18,14 @@
%bcond_without testsuite
# 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
# keep in sync with pyproject.toml
%global django_mailman3_min_version 1.3.13
%global django_min_version 4.2
%global django_max_version 5.3
%global mailmanclient_min_version 3.3.3
%global webapps_dir /srv/www/webapps
%global srv_www_dir /srv/www
%global webapps_dir %{srv_www_dir}/webapps
%global postorius_pkgname postorius
@@ -38,18 +39,20 @@
%global postorius_datadir %{postorius_libdir}/data
# keep in sync with python-HyperKitty/python-mailman-web
# Always only build one flavor: primary python for TW, python311 from the SLE15 python module for 15.x
%if 0%{?suse_version} >= 1550
%define pythons python3
%else
# Always only build one flavor
%if 0%{?sle_version} && 0%{?sle_version} < 160000
%{?sle15_python_module_pythons}
%elif %{defined primary_python}
%define pythons %{primary_python}
%else
%define pythons python3
%endif
%global mypython %pythons
%global mypython_sitelib %{expand:%%{%{mypython}_sitelib}}
%global __mypython %{expand:%%{__%{mypython}}}
Name: python-postorius
Version: 1.3.10
Version: 1.3.13
Release: 0
Summary: A web user interface for GNU Mailman
License: GPL-3.0-only
@@ -66,7 +69,11 @@ Source12: postorius.uwsgi
Source20: README.SUSE.md
#
Patch0: postorius-settings.patch
# PATCH-FIX-UPSTREAM https://gitlab.com/mailman/postorius/-/commit/0468ab0329df85b89e6b5d9f7b4d1805f47450c9 feat: Add Python 3.13 and Django 5.2 (LTS) support
Patch1: django52.patch
#
BuildRequires: %{python_module legacy-cgi}
BuildRequires: %{python_module pdm-backend}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
@@ -83,7 +90,7 @@ BuildRequires: python3-packaging
%endif
# SECTION test requirements
BuildRequires: mailman3 >= 3.3.5
BuildRequires: %{python_module Django >= %{django_min_version}}
BuildRequires: %{python_module Django >= %{django_min_version} with %python-Django < %{django_max_version}}
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module cmarkgfm}
BuildRequires: %{python_module django-debug-toolbar >= 2.2}
@@ -94,6 +101,7 @@ BuildRequires: %{python_module mailmanclient >= %{mailmanclient_min_version}}
BuildRequires: %{python_module pytest-django}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module readme_renderer}
BuildRequires: %{python_module six}
BuildRequires: %{python_module vcrpy}
# /SECTION
%python_subpackages
@@ -106,6 +114,7 @@ Summary: A web user interface for GNU Mailman
Requires: %{mypython}-django-debug-toolbar >= 2.2.0
Requires: %{mypython}-django-mailman3 >= %{django_mailman3_min_version}
Requires: %{mypython}-django-requests-debug-toolbar >= 0.0.3
Requires: %{mypython}-legacy-cgi
Requires: %{mypython}-mailmanclient >= %{mailmanclient_min_version}
Requires: %{mypython}-readme_renderer
Requires: (%{mypython}-Django >= %{django_min_version} with %{mypython}-Django < %{django_max_version})
@@ -205,8 +214,11 @@ rsync -a build_static_files/static %{buildroot}%{postorius_basedir}
rsync -a example_project/* %{buildroot}%{postorius_basedir}
chmod -x %{buildroot}%{postorius_basedir}/wsgi.py
%python_expand rm -rf %{buildroot}%{$python_sitelib}/example_project
rm -f %{buildroot}%{postorius_basedir}/README.rst
rm -f %{buildroot}%{postorius_basedir}/mailman.cfg
rm -f %{buildroot}%{postorius_basedir}/logs/.keep
# Create an empty settings_local.py. This will be filled with a SECRET_KEY in post
install -m 0644 settings_local.py %{buildroot}%{postorius_etcdir}/settings_local.py
@@ -262,21 +274,21 @@ fi
%dir %{webapps_dir}
%dir %{webapps_dir}/mailman
%defattr(-,root,postorius)
%dir %{postorius_basedir}
%{postorius_basedir}/__init__.py
%{postorius_basedir}/manage.py
%{postorius_basedir}/settings.py
%{postorius_basedir}/settings_local.py
%{postorius_basedir}/test_settings.py
%{postorius_basedir}/urls.py
%{postorius_basedir}/wsgi.py
%dir %{srv_www_dir}
%attr(-,root,postorius) %dir %{postorius_basedir}
%attr(-,root,postorius) %{postorius_basedir}/__init__.py
%attr(-,root,postorius) %{postorius_basedir}/manage.py
%attr(-,root,postorius) %{postorius_basedir}/settings.py
%attr(-,root,postorius) %{postorius_basedir}/settings_local.py
%attr(-,root,postorius) %{postorius_basedir}/test_settings.py
%attr(-,root,postorius) %{postorius_basedir}/urls.py
%attr(-,root,postorius) %{postorius_basedir}/wsgi.py
%dir %{postorius_basedir}/static
%{postorius_basedir}/static/admin
%{postorius_basedir}/static/django-mailman3
%{postorius_basedir}/static/postorius
%{postorius_basedir}/static/debug_toolbar
%attr(-,root,postorius) %dir %{postorius_basedir}/static
%attr(-,root,postorius) %{postorius_basedir}/static/admin
%attr(-,root,postorius) %{postorius_basedir}/static/django-mailman3
%attr(-,root,postorius) %{postorius_basedir}/static/postorius
%attr(-,root,postorius) %{postorius_basedir}/static/debug_toolbar
%attr(750,root,postorius) %dir %{postorius_etcdir}
%attr(640,root,postorius) %config(noreplace) %{postorius_etcdir}/settings_local.py