diff --git a/django52.patch b/django52.patch new file mode 100644 index 0000000..010d062 --- /dev/null +++ b/django52.patch @@ -0,0 +1,28 @@ +From 0468ab0329df85b89e6b5d9f7b4d1805f47450c9 Mon Sep 17 00:00:00 2001 +From: SATOH Fumiyasu +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 + diff --git a/python-postorius.changes b/python-postorius.changes index 6152e90..89a9d51 100644 --- a/python-postorius.changes +++ b/python-postorius.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 17 13:32:04 UTC 2025 - Markéta Machová + +- Add upstream django52.patch to officially support Django 5.2 + ------------------------------------------------------------------- Wed Mar 12 16:36:19 UTC 2025 - Christian Boltz diff --git a/python-postorius.spec b/python-postorius.spec index 78e8e17..b03a7f9 100644 --- a/python-postorius.spec +++ b/python-postorius.spec @@ -1,7 +1,7 @@ # # spec file for package python-postorius # -# Copyright (c) 2025 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,10 +18,10 @@ %bcond_without testsuite -# keep in sync with setup.py +# 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.1 +%global django_max_version 5.3 %global mailmanclient_min_version 3.3.3 %global srv_www_dir /srv/www @@ -67,10 +67,12 @@ 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 pip} BuildRequires: %{python_module pdm-backend} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: acl