diff --git a/HyperKitty-1.3.1.tar.gz b/HyperKitty-1.3.1.tar.gz deleted file mode 100644 index 908b05c..0000000 --- a/HyperKitty-1.3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c62b7b69ca4e4384e5916343128a8b8b36494b23c51ad7a33cf87916e168f829 -size 1375006 diff --git a/HyperKitty-1.3.2.tar.gz b/HyperKitty-1.3.2.tar.gz new file mode 100644 index 0000000..77d656c --- /dev/null +++ b/HyperKitty-1.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08ad1dbd619c957eddc2aa46eea229adb00213ac00f33e867cbb38dfc19e4e24 +size 1472683 diff --git a/python-HyperKitty-remove-legacy-use-of-available_attrs.patch b/python-HyperKitty-remove-legacy-use-of-available_attrs.patch new file mode 100644 index 0000000..b2aa17c --- /dev/null +++ b/python-HyperKitty-remove-legacy-use-of-available_attrs.patch @@ -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"] + diff --git a/python-HyperKitty.changes b/python-HyperKitty.changes index 9ead8ee..d7ac114 100644 --- a/python-HyperKitty.changes +++ b/python-HyperKitty.changes @@ -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 diff --git a/python-HyperKitty.spec b/python-HyperKitty.spec index 1b5062a..03f25ea 100644 --- a/python-HyperKitty.spec +++ b/python-HyperKitty.spec @@ -19,12 +19,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-HyperKitty -Version: 1.3.1 +Version: 1.3.2 Release: 0 Summary: A web interface to access GNU Mailman v3 archives License: GPL-3.0-only URL: https://gitlab.com/mailman/hyperkitty 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 setuptools} 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-q >= 1.0.0} BuildRequires: %{python_module djangorestframework >= 3.0.0} +BuildRequires: %{python_module elasticsearch} BuildRequires: %{python_module flufl.lock} BuildRequires: %{python_module mailmanclient >= 3.1.1} BuildRequires: %{python_module mock} @@ -73,6 +76,7 @@ A web interface to access GNU Mailman v3 archives. %prep %setup -q -n HyperKitty-%{version} +%patch0 -p1 %build %python_build