From bdee20f7d2cd65785779924e20160ecc27b5158df2f7cd1a99ef7edf33e1bb30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 25 Jun 2024 08:48:49 +0000 Subject: [PATCH] Accepting request 1182957 from home:gladiac:mailman - Update to version 1.3.14 * See https://gitlab.com/mailman/django-mailman3/-/blob/v1.3.14/README.rst or the packaged README.rst. - Update to version 1.3.13 * See https://gitlab.com/mailman/django-mailman3/-/blob/v1.3.13/README.rst or the packaged README.rst. - Update to version 1.3.12 * See https://gitlab.com/mailman/django-mailman3/-/blob/v1.3.12/README.rst or README.rst packaged in this file. - Added pytest.ini OBS-URL: https://build.opensuse.org/request/show/1182957 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-django-mailman3?expand=0&rev=35 --- .gitattributes | 23 +++++ .gitignore | 1 + django_mailman3-1.3.14.tar.gz | 3 + django_mailman3-1.3.14.tar.gz.asc | 16 ++++ pytest.ini | 3 + python-django-mailman3.changes | 153 ++++++++++++++++++++++++++++++ python-django-mailman3.keyring | 90 ++++++++++++++++++ python-django-mailman3.spec | 93 ++++++++++++++++++ 8 files changed, 382 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 django_mailman3-1.3.14.tar.gz create mode 100644 django_mailman3-1.3.14.tar.gz.asc create mode 100644 pytest.ini create mode 100644 python-django-mailman3.changes create mode 100644 python-django-mailman3.keyring create mode 100644 python-django-mailman3.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/django_mailman3-1.3.14.tar.gz b/django_mailman3-1.3.14.tar.gz new file mode 100644 index 0000000..9ef8430 --- /dev/null +++ b/django_mailman3-1.3.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e484d2f37705177ffa3d273bb51688cde53af2b2f925b906cb253c89b014c03c +size 424964 diff --git a/django_mailman3-1.3.14.tar.gz.asc b/django_mailman3-1.3.14.tar.gz.asc new file mode 100644 index 0000000..05bd58a --- /dev/null +++ b/django_mailman3-1.3.14.tar.gz.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCAAdFiEEVB6gRIRTOU/3eg7MnZsroGHQpnwFAmZ4Ar8ACgkQnZsroGHQ +pnyMTg/+Phs9u9yt/64FHGOmFYB6HNlLmuSqUmxaLCijfnpCYWNrx3s9JDLe/VTR +CHxkU1DyGY9ZOhJf4dRow02D2xdjMSFv9N1LCbTfnIEgroEUiZ8dCMjel+uHzT/U +73xaWKcKVLTy1w07YNxrCgHnzNAlfK5IWkUeq/2D5raXvZxBL9su9Xy8s7eW7iUE +mMDQtoA2Ce36wrY3Xy7VV6Bzy/IFWCfwlEYUoEbaF2nvIT3ibKxkJRv6wZ6LMEFP +vztILr1o0HcF9iuC+fLVY7r8O37baO6PI0P8st/ooWbeIuOkuD1mCTJsIdtmykSP +DEbhEVCfLKRyneD0zkj4Ls29+nKVEmx+l1QGBYeWrVbEol7T5mZE7vmVPcOyEyfL +JKFbSh3GGnWrEvitZMJHz8P6+ugP21INRAGN5tM+mRpEWFIRHgzvHCk83pu4yvq7 +YzhBdz8bstguk2FnmyI5h0SF5tpr0qWR3J75VFrMSYTqKM+L0Gsmp90N+Wfz00+v +H7XFl9MHjQiGeDBh/k5AG7rao0q9vr/OakXIaQ05RADa+dJeqJHW4DNU88llmAHS +PFUzmzoSAA5YfUh/f3tRFlq4O2Mc15lONYvYl5x2XuPgp7sx0+hzsWMihFpnY8jN +58GGcu3D9o8i968boy0Bk2JpSWYEOVN4M0SiKvBUxtguLa5Hyq8= +=jdDA +-----END PGP SIGNATURE----- diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..2434c73 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +addopts = --tb=short --create-db --reuse-db --ds=django_mailman3.tests.settings_test -s +pythonpath = . diff --git a/python-django-mailman3.changes b/python-django-mailman3.changes new file mode 100644 index 0000000..ca807c8 --- /dev/null +++ b/python-django-mailman3.changes @@ -0,0 +1,153 @@ +------------------------------------------------------------------- +Sun Jun 23 13:13:56 UTC 2024 - Andreas Schneider + +- Update to version 1.3.14 + * See https://gitlab.com/mailman/django-mailman3/-/blob/v1.3.14/README.rst + or the packaged README.rst. + +------------------------------------------------------------------- +Sun Jun 23 08:05:58 UTC 2024 - Andreas Schneider + +- Update to version 1.3.13 + * See https://gitlab.com/mailman/django-mailman3/-/blob/v1.3.13/README.rst + or the packaged README.rst. + +------------------------------------------------------------------- +Tue Apr 23 09:13:39 UTC 2024 - Andreas Schneider + +- Update to version 1.3.12 + * See https://gitlab.com/mailman/django-mailman3/-/blob/v1.3.12/README.rst + or README.rst packaged in this file. +- Added pytest.ini + +------------------------------------------------------------------- +Thu Feb 29 21:07:54 UTC 2024 - Ben Greiner + +- Build PEP517 wheel + +------------------------------------------------------------------- +Mon Nov 6 00:11:01 UTC 2023 - Marcus Rueckert + +- make it easier to notice to keep buildrequires and runtime + requires version limits in sync. This will also help us to notice + early when the version of other libraries do not match the + requires encoded in the source code. + +------------------------------------------------------------------- +Thu Nov 2 07:18:55 UTC 2023 - Andreas Schneider + +- Update to version 1.3.11 + * See https://gitlab.com/mailman/django-mailman3/-/blob/master/README.rst + or README.rst packaged in this file. + * BREAKING CHANGE: django_mailman3 now requires django_allauth>=0.56. This + requires the addition of allauth.account.middleware.AccountMiddleware to + MIDDLEWARE in your Django settings. If your installation uses settings from + mailman-web as here, upgrading mailman-web to 0.0.7 will do this. + +------------------------------------------------------------------- +Sun Jun 25 08:23:00 UTC 2023 - Andreas Schneider + +- Update to version 1.3.9 + * Add support for Python 3.11 +- Use sle15_python_module_pythons + +------------------------------------------------------------------- +Mon Nov 21 08:57:22 UTC 2022 - Andreas Schneider + +- Fix running the tests on openSUSE Leap 15.4 + +------------------------------------------------------------------- +Thu Nov 17 16:40:01 UTC 2022 - Andreas Schneider + +- Update to version 1.3.8 + * Add support for Django 4.0 and 4.1 (Fixes #55) + * Add support for Python 3.10 (See !153) + * Fix the Fedora socialaccount provider. (Fixes #50) + * Add pagination only when there are more than one pages. (Fixes #58) + * Use Pytest as the test runner. +- Removed dj40.patch +- Removed dj41.patch + +------------------------------------------------------------------- +Wed Oct 5 16:05:25 UTC 2022 - Daniel Garcia + +- Add dj41.patch to make it compatible with django 4.1 based on + https://gitlab.com/mailman/django-mailman3/-/merge_requests/170 + +------------------------------------------------------------------- +Thu Jul 14 18:43:40 UTC 2022 - Jacob Michalskie + +- Fix the patch for django 4.0 to update dependencies + +------------------------------------------------------------------- +Mon Jul 4 11:17:34 UTC 2022 - Ben Greiner + +- Enable multiflavor so that we can pin mailman3 and hyperkitty + to python39 + +------------------------------------------------------------------- +Mon May 9 20:55:06 UTC 2022 - Matej Cepl + +- Clean up the SPEC file. + +------------------------------------------------------------------- +Mon May 9 15:56:27 UTC 2022 - pgajdos@suse.com + +- python-mock is not required for build + +------------------------------------------------------------------- +Sun Dec 26 22:49:13 UTC 2021 - John Vandenberg + +- Add dj40.patch for Django 4.0 compatibility + +------------------------------------------------------------------- +Wed Nov 17 08:37:21 UTC 2021 - Andreas Schneider + +- Update to version 1.3.7 + * Set the minimum required version of mailmanclient in setup.py. + +------------------------------------------------------------------- +Tue May 4 09:32:59 UTC 2021 - Ben Greiner + +- restrict to primary python3 flavor due to mailman + +------------------------------------------------------------------- +Wed Feb 3 16:21:17 UTC 2021 - Andreas Schneider + +- Update to version 1.3.5 + * Add a new method get_django_user to return Django User model. (See !99) + * Add delete_archives field to mailinglist_deleted Signal. + * Replaced deprecated ugettexy_lazy with gettext_lazy. (Closes #37) +- Fix building on tumbleweed + +------------------------------------------------------------------- +Tue Aug 4 02:04:03 UTC 2020 - Stasiek Michalski + +- Update to 1.3.4 + * Fix a bug caused by bumping to Mailman API 3.1 in version 1.3.3 which + resulted in 404 errors for some users. + +------------------------------------------------------------------- +Wed May 13 10:02:55 UTC 2020 - Marketa Calabkova + +- Update to 1.3.3rc1 + * Update a user's preferred_address in Mailman Core when a user + updates their primary address in Profile. + * Do not exit with --code-zero. + * more bugfixes + +------------------------------------------------------------------- +Mon Dec 2 10:47:10 UTC 2019 - pgajdos@suse.com + +- call spec-cleaner + +------------------------------------------------------------------- +Tue Nov 26 09:12:06 UTC 2019 - pgajdos@suse.com + +- run the testsuite + +------------------------------------------------------------------- +Wed Oct 2 13:02:30 UTC 2019 - pgajdos@suse.com + +- initial version 1.3.0, required by HyperKitty [SLE-7686] + diff --git a/python-django-mailman3.keyring b/python-django-mailman3.keyring new file mode 100644 index 0000000..45104e2 --- /dev/null +++ b/python-django-mailman3.keyring @@ -0,0 +1,90 @@ +-----BEGIN P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Ea0GXnxUz00AksBxLmP4h/DoxqUmtflFdeuknu9LDPjiePX3n9SnN+qwqXeP4nbm +f1eZHGCIsFtKIx15SQDI+7IR/KtGa1djFJDsQCZCOHgr4C0nMZBi1pSqDfPvCrgK +WWng6K/K2zy5Vg/ZuleTyaqP3ZnvNqANMo6W7j/ZLGSTmy0uel4A5PbzvmpHWIIw +13uS0qfwHEvxfNbR011PQGPf7eD4e4i0uh4IcTw= +=s7HB +-----END PGP PUBLIC KEY BLOCK----- diff --git a/python-django-mailman3.spec b/python-django-mailman3.spec new file mode 100644 index 0000000..18698ec --- /dev/null +++ b/python-django-mailman3.spec @@ -0,0 +1,93 @@ +# +# spec file for package python-django-mailman3 +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global django_min_version 4.2 +%global django_max_version 5.1 +%global mailmanclient_min_version 3.3.3 +%global django_allauth_min_version 0.63 +%global django_gravatar2_min_version 1.0.6 + +%{?sle15_python_module_pythons} +%define modname django_mailman3 +Name: python-django-mailman3 +Version: 1.3.14 +Release: 0 +Summary: Django library to help interaction with Mailman +License: GPL-3.0-only +URL: https://gitlab.com/mailman/django-mailman3 +Source0: %{url}/-/releases/v%{version}/downloads/%{modname}-%{version}.tar.gz +Source1: %{url}/-/releases/v%{version}/downloads/%{modname}-%{version}.tar.gz.asc +Source2: %{name}.keyring +Source3: %{url}/-/raw/v%{version}/pytest.ini +BuildRequires: %{python_module pdm} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-django-allauth >= %{django_allauth_min_version} +Requires: python-django-gravatar2 >= %{django_gravatar2_min_version} +Requires: python-mailmanclient >= %{mailmanclient_min_version} +Requires: python-pytz +Requires: (python-Django >= %{django_min_version} with python-Django < %{django_max_version}) +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module Django >= %{django_min_version}} +BuildRequires: %{python_module django-allauth >= %{django_allauth_min_version}} +BuildRequires: %{python_module django-gravatar2 >= %{django_gravatar2_min_version}} +BuildRequires: %{python_module editables} +BuildRequires: %{python_module mailmanclient >= %{mailmanclient_min_version}} +BuildRequires: %{python_module pdm-backend} +BuildRequires: %{python_module pytest-django} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytz} +# /SECTION +%python_subpackages + +%description +Django library to help interaction with Mailman. + +%prep +%autosetup -p1 -n %{modname}-%{version} + +cp %{SOURCE3} pytest.ini + +%build +%pyproject_wheel + +%install +%pyproject_install + +rm -f %{buildroot}%{python_sitelib}/COPYING.txt +rm -f %{buildroot}%{python_sitelib}/README.rst +rm -f %{buildroot}%{python_sitelib}/pytest.ini +rm -f %{buildroot}%{python_sitelib}/tox.ini + +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export PYTHONPATH="$(pwd)" +%pytest django_mailman3 + +%files %{python_files} +%doc README.rst +%license COPYING.txt +%{python_sitelib}/%{modname}-%{version}.dist-info +%{python_sitelib}/%{modname} + +%changelog