forked from pool/python-HyperKitty
Accepting request 882392 from devel:languages:python:mailman
- Update to version 1.3.4 * Sync owners and moderators from Mailman Core for MailingList. (Fixes #302) * Implemented a new HYPERKITTY_JOBS_UPDATE_INDEX_LOCK_LIFE setting to set the lock lifetime for the update_and_clean_index job. (Closes #300) * Implemented a new HYPERKITTY_ALLOW_WEB_POSTING that allows disabling the web posting feature. (Closes #264) * Add the ability to disable Gravatar using HYPERKITTY_ENABLE_GRAVATAR settings. (Closes #303) * Replaced deprecated ugettext functions with gettext. (Closes #310) * Fix export of Email message where the In-Reply-To header doesn’t include the <> brackets. (Closes #331) * We now catch a few more exceptions in hyperkitty_import when getting messages from a mbox. (Closes #313 and #314) * Added a new contrib/check_hk_import script to check mboxes before running hyperkitty_import. * We now ignore a ValueError in hyperkitty_import when trying to replace a Subject: header. (Closes #317) * hyperkitty_import now includes the mbox name in error messages when importing multiple mboxes. (Closes #318) * `` at `` is now only replaced with @ in From: header values when necessary and not unconditionally. (Closes #320) * The wildcard notation for any host '*' is now supported into MAILMAN_ARCHVER_FROM to disable Hyperkitty clients IP checking. * Join the searchbar and search button like it was before bootstrap 4 migration. (See !301) * Use the umd builds for popper.js instead of the regular ones. (See !309) * Exceptions thrown by smtplib in sending replies are now caught and give an appropriate error message. (Closes #309) - Removed hyperkitty-fix-tests.patch - Fixed build on tumbleweed OBS-URL: https://build.opensuse.org/request/show/882392 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-HyperKitty?expand=0&rev=8
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b628d2e45878cce78505a474a64c0960da1be784e9f63456d1aad86a70ca055d
|
||||
size 1936346
|
3
HyperKitty-1.3.4.tar.gz
Normal file
3
HyperKitty-1.3.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f78fe0a89ece0a7b42c0c0f107ba9de40ffdb65b7ad7dd812e745c678c4570d1
|
||||
size 2385311
|
@@ -1,78 +0,0 @@
|
||||
From 0e46371f0f2aab8618aa2852ea6f63c245e16927 Mon Sep 17 00:00:00 2001
|
||||
From: David Runge <dave@sleepmap.de>
|
||||
Date: Sat, 7 Nov 2020 01:14:04 +0000
|
||||
Subject: [PATCH] Make migration compatible with django >= 3.1
|
||||
|
||||
hyperkitty/migrations/0013_mailinglist_id_1.py:
|
||||
With django >= 3.1 the state.models.fields are represented as dicts,
|
||||
while with django < 3.1 they are represented as lists.
|
||||
Accomodate both use-cases by checking the type of the fields before
|
||||
trying to add to them.
|
||||
|
||||
Fixes #329
|
||||
---
|
||||
.../migrations/0013_mailinglist_id_1.py | 33 ++++++++++--
|
||||
setup.py | 2 +-
|
||||
tox.ini | 5 +-
|
||||
4 files changed, 62 insertions(+), 28 deletions(-)
|
||||
|
||||
diff --git a/hyperkitty/migrations/0013_mailinglist_id_1.py b/hyperkitty/migrations/0013_mailinglist_id_1.py
|
||||
index f460daf9..d55afed5 100644
|
||||
--- a/hyperkitty/migrations/0013_mailinglist_id_1.py
|
||||
+++ b/hyperkitty/migrations/0013_mailinglist_id_1.py
|
||||
@@ -16,10 +16,35 @@ class MailingListPrimaryKey(migrations.AlterField):
|
||||
)
|
||||
|
||||
def state_forwards(self, app_label, state):
|
||||
- state.models[app_label, self.model_name_lower].fields.insert(0, (
|
||||
- "id", models.AutoField(
|
||||
- name="id", auto_created=True, primary_key=True, serialize=False,
|
||||
- verbose_name='ID')))
|
||||
+ # django < 3.1
|
||||
+ if type(state.models[app_label, self.model_name_lower].fields) is list:
|
||||
+ state.models[app_label, self.model_name_lower].fields.insert(
|
||||
+ 0,
|
||||
+ (
|
||||
+ "id",
|
||||
+ models.AutoField(
|
||||
+ name="id",
|
||||
+ auto_created=True,
|
||||
+ primary_key=True,
|
||||
+ serialize=False,
|
||||
+ verbose_name='ID'
|
||||
+ )
|
||||
+ )
|
||||
+ )
|
||||
+ # django >= 3.1
|
||||
+ else:
|
||||
+ state.models[app_label, self.model_name_lower].fields.update(
|
||||
+ {
|
||||
+ "id":
|
||||
+ models.AutoField(
|
||||
+ name="id",
|
||||
+ auto_created=True,
|
||||
+ primary_key=True,
|
||||
+ serialize=False,
|
||||
+ verbose_name='ID',
|
||||
+ )
|
||||
+ }
|
||||
+ )
|
||||
super(MailingListPrimaryKey, self).state_forwards(app_label, state)
|
||||
|
||||
def database_forwards(self, app_label, schema_editor, from_state, to_state):
|
||||
diff --git a/setup.py b/setup.py
|
||||
index cb058659..0968c676 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -37,7 +37,7 @@ with open('hyperkitty/__init__.py') as fp:
|
||||
|
||||
# Requirements
|
||||
REQUIRES = [
|
||||
- "Django>=2.0,<3.1",
|
||||
+ "Django>=2.2,<3.2",
|
||||
"django_mailman3>=1.3.3",
|
||||
"django-gravatar2>=1.0.6",
|
||||
"djangorestframework>=3.0.0",
|
||||
--
|
||||
GitLab
|
||||
|
@@ -1,3 +1,37 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 3 12:29:57 UTC 2021 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Update to version 1.3.4
|
||||
* Sync owners and moderators from Mailman Core for MailingList. (Fixes #302)
|
||||
* Implemented a new HYPERKITTY_JOBS_UPDATE_INDEX_LOCK_LIFE setting to set the
|
||||
lock lifetime for the update_and_clean_index job. (Closes #300)
|
||||
* Implemented a new HYPERKITTY_ALLOW_WEB_POSTING that allows disabling the
|
||||
web posting feature. (Closes #264)
|
||||
* Add the ability to disable Gravatar using HYPERKITTY_ENABLE_GRAVATAR
|
||||
settings. (Closes #303)
|
||||
* Replaced deprecated ugettext functions with gettext. (Closes #310)
|
||||
* Fix export of Email message where the In-Reply-To header doesn’t include
|
||||
the <> brackets. (Closes #331)
|
||||
* We now catch a few more exceptions in hyperkitty_import when getting
|
||||
messages from a mbox. (Closes #313 and #314)
|
||||
* Added a new contrib/check_hk_import script to check mboxes before running
|
||||
hyperkitty_import.
|
||||
* We now ignore a ValueError in hyperkitty_import when trying to replace a
|
||||
Subject: header. (Closes #317)
|
||||
* hyperkitty_import now includes the mbox name in error messages when
|
||||
importing multiple mboxes. (Closes #318)
|
||||
* `` at `` is now only replaced with @ in From: header values when necessary
|
||||
and not unconditionally. (Closes #320)
|
||||
* The wildcard notation for any host '*' is now supported into
|
||||
MAILMAN_ARCHVER_FROM to disable Hyperkitty clients IP checking.
|
||||
* Join the searchbar and search button like it was before bootstrap 4
|
||||
migration. (See !301)
|
||||
* Use the umd builds for popper.js instead of the regular ones. (See !309)
|
||||
* Exceptions thrown by smtplib in sending replies are now caught and give an
|
||||
appropriate error message. (Closes #309)
|
||||
- Removed hyperkitty-fix-tests.patch
|
||||
- Fixed build on tumbleweed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 28 08:32:51 UTC 2020 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-HyperKitty
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -33,8 +33,11 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%if 0%{?suse_version} >= 1550
|
||||
%define skip_python36 1
|
||||
%endif
|
||||
Name: python-HyperKitty
|
||||
Version: 1.3.3
|
||||
Version: 1.3.4
|
||||
Release: 0
|
||||
Summary: A web interface to access GNU Mailman v3 archives
|
||||
License: GPL-3.0-only
|
||||
@@ -54,9 +57,6 @@ Source22: hyperkitty-runjob.timer
|
||||
Source30: README.SUSE.md
|
||||
#
|
||||
Patch0: hyperkitty-settings.patch
|
||||
# Make migration compatible with django >= 3.1
|
||||
# https://gitlab.com/mailman/hyperkitty/-/commit/0e46371f0f2aab8618aa2852ea6f63c245e16927.patch
|
||||
Patch1: hyperkitty-fix-tests.patch
|
||||
#
|
||||
BuildRequires: %{python_module django-debug-toolbar >= 2.2}
|
||||
BuildRequires: %{python_module isort}
|
||||
|
Reference in New Issue
Block a user