forked from pool/python-postorius
Compare commits
17 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 066738d833 | |||
| 90c5400e6c | |||
| b7684271da | |||
| ca6b0d8c1f | |||
| 60db315592 | |||
| 0e2d10202b | |||
| 4b8e32f4a6 | |||
| 768b116d3b | |||
| 1d5a19261b | |||
| e1d84223c1 | |||
| dd68d5e8b7 | |||
| 2b75c35837 | |||
| 5308866e11 | |||
| 3112e522a3 | |||
| 9f3cc96b49 | |||
| 02f1cccab7 | |||
| 18f2368f6c |
28
django52.patch
Normal file
28
django52.patch
Normal 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
|
||||||
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:1a66c8a8efb4dcb81b5312759d34ad5eb60ddedd8c7efcdb7984408a97d35b5a
|
|
||||||
size 3491545
|
|
||||||
@@ -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
3
postorius-1.3.13.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:602def5c4852900d49e8ad95196a2334e13c31e49d9c0859324879e7c5131a22
|
||||||
|
size 3508385
|
||||||
16
postorius-1.3.13.tar.gz.asc
Normal file
16
postorius-1.3.13.tar.gz.asc
Normal 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-----
|
||||||
@@ -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>
|
Thu Mar 7 09:40:26 UTC 2024 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-postorius
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,13 +18,14 @@
|
|||||||
|
|
||||||
%bcond_without testsuite
|
%bcond_without testsuite
|
||||||
|
|
||||||
# keep in sync with setup.py
|
# keep in sync with pyproject.toml
|
||||||
%global django_mailman3_min_version 1.3.10
|
%global django_mailman3_min_version 1.3.13
|
||||||
%global django_min_version 3.2
|
%global django_min_version 4.2
|
||||||
%global django_max_version 4.3
|
%global django_max_version 5.3
|
||||||
%global mailmanclient_min_version 3.3.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
|
%global postorius_pkgname postorius
|
||||||
|
|
||||||
@@ -38,18 +39,20 @@
|
|||||||
%global postorius_datadir %{postorius_libdir}/data
|
%global postorius_datadir %{postorius_libdir}/data
|
||||||
|
|
||||||
# keep in sync with python-HyperKitty/python-mailman-web
|
# 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
|
# Always only build one flavor
|
||||||
%if 0%{?suse_version} >= 1550
|
%if 0%{?sle_version} && 0%{?sle_version} < 160000
|
||||||
%define pythons python3
|
|
||||||
%else
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
|
%elif %{defined primary_python}
|
||||||
|
%define pythons %{primary_python}
|
||||||
|
%else
|
||||||
|
%define pythons python3
|
||||||
%endif
|
%endif
|
||||||
%global mypython %pythons
|
%global mypython %pythons
|
||||||
%global mypython_sitelib %{expand:%%{%{mypython}_sitelib}}
|
%global mypython_sitelib %{expand:%%{%{mypython}_sitelib}}
|
||||||
%global __mypython %{expand:%%{__%{mypython}}}
|
%global __mypython %{expand:%%{__%{mypython}}}
|
||||||
|
|
||||||
Name: python-postorius
|
Name: python-postorius
|
||||||
Version: 1.3.10
|
Version: 1.3.13
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A web user interface for GNU Mailman
|
Summary: A web user interface for GNU Mailman
|
||||||
License: GPL-3.0-only
|
License: GPL-3.0-only
|
||||||
@@ -66,7 +69,11 @@ Source12: postorius.uwsgi
|
|||||||
Source20: README.SUSE.md
|
Source20: README.SUSE.md
|
||||||
#
|
#
|
||||||
Patch0: postorius-settings.patch
|
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 pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
@@ -83,7 +90,7 @@ BuildRequires: python3-packaging
|
|||||||
%endif
|
%endif
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: mailman3 >= 3.3.5
|
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 beautifulsoup4}
|
||||||
BuildRequires: %{python_module cmarkgfm}
|
BuildRequires: %{python_module cmarkgfm}
|
||||||
BuildRequires: %{python_module django-debug-toolbar >= 2.2}
|
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-django}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module readme_renderer}
|
BuildRequires: %{python_module readme_renderer}
|
||||||
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: %{python_module vcrpy}
|
BuildRequires: %{python_module vcrpy}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%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-debug-toolbar >= 2.2.0
|
||||||
Requires: %{mypython}-django-mailman3 >= %{django_mailman3_min_version}
|
Requires: %{mypython}-django-mailman3 >= %{django_mailman3_min_version}
|
||||||
Requires: %{mypython}-django-requests-debug-toolbar >= 0.0.3
|
Requires: %{mypython}-django-requests-debug-toolbar >= 0.0.3
|
||||||
|
Requires: %{mypython}-legacy-cgi
|
||||||
Requires: %{mypython}-mailmanclient >= %{mailmanclient_min_version}
|
Requires: %{mypython}-mailmanclient >= %{mailmanclient_min_version}
|
||||||
Requires: %{mypython}-readme_renderer
|
Requires: %{mypython}-readme_renderer
|
||||||
Requires: (%{mypython}-Django >= %{django_min_version} with %{mypython}-Django < %{django_max_version})
|
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}
|
rsync -a example_project/* %{buildroot}%{postorius_basedir}
|
||||||
chmod -x %{buildroot}%{postorius_basedir}/wsgi.py
|
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}/README.rst
|
||||||
rm -f %{buildroot}%{postorius_basedir}/mailman.cfg
|
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
|
# 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
|
install -m 0644 settings_local.py %{buildroot}%{postorius_etcdir}/settings_local.py
|
||||||
@@ -262,21 +274,21 @@ fi
|
|||||||
%dir %{webapps_dir}
|
%dir %{webapps_dir}
|
||||||
%dir %{webapps_dir}/mailman
|
%dir %{webapps_dir}/mailman
|
||||||
|
|
||||||
%defattr(-,root,postorius)
|
%dir %{srv_www_dir}
|
||||||
%dir %{postorius_basedir}
|
%attr(-,root,postorius) %dir %{postorius_basedir}
|
||||||
%{postorius_basedir}/__init__.py
|
%attr(-,root,postorius) %{postorius_basedir}/__init__.py
|
||||||
%{postorius_basedir}/manage.py
|
%attr(-,root,postorius) %{postorius_basedir}/manage.py
|
||||||
%{postorius_basedir}/settings.py
|
%attr(-,root,postorius) %{postorius_basedir}/settings.py
|
||||||
%{postorius_basedir}/settings_local.py
|
%attr(-,root,postorius) %{postorius_basedir}/settings_local.py
|
||||||
%{postorius_basedir}/test_settings.py
|
%attr(-,root,postorius) %{postorius_basedir}/test_settings.py
|
||||||
%{postorius_basedir}/urls.py
|
%attr(-,root,postorius) %{postorius_basedir}/urls.py
|
||||||
%{postorius_basedir}/wsgi.py
|
%attr(-,root,postorius) %{postorius_basedir}/wsgi.py
|
||||||
|
|
||||||
%dir %{postorius_basedir}/static
|
%attr(-,root,postorius) %dir %{postorius_basedir}/static
|
||||||
%{postorius_basedir}/static/admin
|
%attr(-,root,postorius) %{postorius_basedir}/static/admin
|
||||||
%{postorius_basedir}/static/django-mailman3
|
%attr(-,root,postorius) %{postorius_basedir}/static/django-mailman3
|
||||||
%{postorius_basedir}/static/postorius
|
%attr(-,root,postorius) %{postorius_basedir}/static/postorius
|
||||||
%{postorius_basedir}/static/debug_toolbar
|
%attr(-,root,postorius) %{postorius_basedir}/static/debug_toolbar
|
||||||
|
|
||||||
%attr(750,root,postorius) %dir %{postorius_etcdir}
|
%attr(750,root,postorius) %dir %{postorius_etcdir}
|
||||||
%attr(640,root,postorius) %config(noreplace) %{postorius_etcdir}/settings_local.py
|
%attr(640,root,postorius) %config(noreplace) %{postorius_etcdir}/settings_local.py
|
||||||
|
|||||||
Reference in New Issue
Block a user