1
0

Compare commits

5 Commits

3 changed files with 47 additions and 2 deletions

25
django52.patch Normal file
View File

@@ -0,0 +1,25 @@
From 465c1ffc77556bb8a80a678f53a40f16b9766cc6 Mon Sep 17 00:00:00 2001
From: SATOH Fumiyasu <fumiyas@osstech.co.jp>
Date: Fri, 1 Aug 2025 23:20:24 +0000
Subject: [PATCH] feat: Add Python 3.13 and Django 5.2 (LTS) support
---
.gitlab-ci.yml | 41 ++++++++++++++++++-----------------------
README.rst | 2 ++
pyproject.toml | 2 +-
tox.ini | 8 ++------
4 files changed, 23 insertions(+), 30 deletions(-)
Index: django_mailman3-1.3.14/pyproject.toml
===================================================================
--- django_mailman3-1.3.14.orig/pyproject.toml
+++ django_mailman3-1.3.14/pyproject.toml
@@ -19,7 +19,7 @@ classifiers = [
dependencies = [
"django-allauth[socialaccount,openid]>=0.63",
"django-gravatar2 >= 1.0.6",
- "django>=4.2,<5.1",
+ "django>=4.2,<5.3",
"mailmanclient>=3.3.3",
]
requires-python = ">=3.9"

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri Dec 19 07:26:21 UTC 2025 - Andreas Schneider <asn@cryptomilk.org>
- If possible build for primary_python (fixes Leap 16.0)
-------------------------------------------------------------------
Wed Dec 17 13:42:20 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add upstream django52.patch to officially support Django 5.2
-------------------------------------------------------------------
Tue Jul 2 08:51:37 UTC 2024 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-django-mailman3
#
# 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
@@ -17,13 +17,21 @@
%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 django_allauth_min_version 0.63
%global django_gravatar2_min_version 1.0.6
# 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
%define modname django_mailman3
Name: python-django-mailman3
Version: 1.3.14
Release: 0
@@ -34,6 +42,8 @@ Source0: %{url}/-/releases/v%{version}/downloads/%{modname}-%{version}.ta
Source1: %{url}/-/releases/v%{version}/downloads/%{modname}-%{version}.tar.gz.asc
Source2: %{name}.keyring
Source3: %{url}/-/raw/v%{version}/pytest.ini
# PATCH-FIX-UPSTREAM https://gitlab.com/mailman/django-mailman3/-/commit/465c1ffc77556bb8a80a678f53a40f16b9766cc6 feat: Add Python 3.13 and Django 5.2 (LTS) support
Patch0: django52.patch
BuildRequires: %{python_module pdm}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}