forked from pool/python-HyperKitty
Accepting request 805605 from devel:languages:python:mailman
- version update to 1.3.2
- Remove support for Django 1.11. (Closes #273)
- Skip ``Thread.DoesNotExist`` exception when raised within
``rebuild_thread_cache_votes``. (Closes #245)
- Send 400 status code for ``ValueError`` when archiving. (Closes #271)
- Fix a bug where exception for elasticsearch backend would not be caught. (Closes #263)
- added patches
03c99ad5be
+ python-HyperKitty-remove-legacy-use-of-available_attrs.patch
OBS-URL: https://build.opensuse.org/request/show/805605
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-HyperKitty?expand=0&rev=3
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c62b7b69ca4e4384e5916343128a8b8b36494b23c51ad7a33cf87916e168f829
|
|
||||||
size 1375006
|
|
3
HyperKitty-1.3.2.tar.gz
Normal file
3
HyperKitty-1.3.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:08ad1dbd619c957eddc2aa46eea229adb00213ac00f33e867cbb38dfc19e4e24
|
||||||
|
size 1472683
|
22
python-HyperKitty-remove-legacy-use-of-available_attrs.patch
Normal file
22
python-HyperKitty-remove-legacy-use-of-available_attrs.patch
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
diff --git a/hyperkitty/lib/view_helpers.py b/hyperkitty/lib/view_helpers.py
|
||||||
|
index 4e19e7c01d03cd3f52f8edb06876f135d59b284b..9094d2183a3eb650c33127270ec2e783f61b3a23 100644
|
||||||
|
--- a/hyperkitty/lib/view_helpers.py
|
||||||
|
+++ b/hyperkitty/lib/view_helpers.py
|
||||||
|
@@ -25,7 +25,6 @@ from functools import wraps
|
||||||
|
|
||||||
|
from django.http import Http404
|
||||||
|
from django.shortcuts import render
|
||||||
|
-from django.utils.decorators import available_attrs
|
||||||
|
from django.utils.timezone import utc
|
||||||
|
|
||||||
|
from django_mailman3.lib.mailman import get_subscriptions
|
||||||
|
@@ -117,7 +116,7 @@ def get_category_widget(request, current_category=None):
|
||||||
|
|
||||||
|
# View decorator: check that the list is authorized
|
||||||
|
def check_mlist_private(func):
|
||||||
|
- @wraps(func, assigned=available_attrs(func))
|
||||||
|
+ @wraps(func)
|
||||||
|
def inner(request, *args, **kwargs):
|
||||||
|
if "mlist_fqdn" in kwargs:
|
||||||
|
mlist_fqdn = kwargs["mlist_fqdn"]
|
||||||
|
|
@@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 14 12:57:07 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- version update to 1.3.2
|
||||||
|
- Remove support for Django 1.11. (Closes #273)
|
||||||
|
- Skip ``Thread.DoesNotExist`` exception when raised within
|
||||||
|
``rebuild_thread_cache_votes``. (Closes #245)
|
||||||
|
- Send 400 status code for ``ValueError`` when archiving. (Closes #271)
|
||||||
|
- Fix a bug where exception for elasticsearch backend would not be caught. (Closes #263)
|
||||||
|
- added patches
|
||||||
|
https://gitlab.com/mailman/hyperkitty/-/commit/03c99ad5beefeac4474b5a00c840fd9debccba02
|
||||||
|
+ python-HyperKitty-remove-legacy-use-of-available_attrs.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 10 12:30:33 UTC 2020 - pgajdos@suse.com
|
Fri Jan 10 12:30:33 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@@ -19,12 +19,14 @@
|
|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-HyperKitty
|
Name: python-HyperKitty
|
||||||
Version: 1.3.1
|
Version: 1.3.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A web interface to access GNU Mailman v3 archives
|
Summary: A web interface to access GNU Mailman v3 archives
|
||||||
License: GPL-3.0-only
|
License: GPL-3.0-only
|
||||||
URL: https://gitlab.com/mailman/hyperkitty
|
URL: https://gitlab.com/mailman/hyperkitty
|
||||||
Source: https://files.pythonhosted.org/packages/source/H/HyperKitty/HyperKitty-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/H/HyperKitty/HyperKitty-%{version}.tar.gz
|
||||||
|
# https://gitlab.com/mailman/hyperkitty/-/commit/03c99ad5beefeac4474b5a00c840fd9debccba02
|
||||||
|
Patch0: python-HyperKitty-remove-legacy-use-of-available_attrs.patch
|
||||||
BuildRequires: %{python_module isort}
|
BuildRequires: %{python_module isort}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@@ -56,6 +58,7 @@ BuildRequires: %{python_module django-haystack >= 2.8.0}
|
|||||||
BuildRequires: %{python_module django-mailman3 >= 1.2.0}
|
BuildRequires: %{python_module django-mailman3 >= 1.2.0}
|
||||||
BuildRequires: %{python_module django-q >= 1.0.0}
|
BuildRequires: %{python_module django-q >= 1.0.0}
|
||||||
BuildRequires: %{python_module djangorestframework >= 3.0.0}
|
BuildRequires: %{python_module djangorestframework >= 3.0.0}
|
||||||
|
BuildRequires: %{python_module elasticsearch}
|
||||||
BuildRequires: %{python_module flufl.lock}
|
BuildRequires: %{python_module flufl.lock}
|
||||||
BuildRequires: %{python_module mailmanclient >= 3.1.1}
|
BuildRequires: %{python_module mailmanclient >= 3.1.1}
|
||||||
BuildRequires: %{python_module mock}
|
BuildRequires: %{python_module mock}
|
||||||
@@ -73,6 +76,7 @@ A web interface to access GNU Mailman v3 archives.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n HyperKitty-%{version}
|
%setup -q -n HyperKitty-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
Reference in New Issue
Block a user