From 3e0bce576ef4174cfbdaf0d9f26fb3ca91891eb2651672cae22e39af6abc2ac7 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 11 Nov 2024 20:24:31 +0000 Subject: [PATCH] - update to 0.5.1: * properly require "setuptools" for install * correctly close a mailbox which still has a nameplate * remove python2 support * test on python 3.8, 3.9, 3.10, 3.11 and 3.12 series * drop "six" * upgrade "versioneer" - drop python-magic-wormhole-mailbox-server-no-mock.patch (upstream) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-magic-wormhole-mailbox-server?expand=0&rev=16 --- magic-wormhole-mailbox-server-0.4.1.tar.gz | 3 -- magic-wormhole-mailbox-server-0.5.1.tar.gz | 3 ++ ...agic-wormhole-mailbox-server-no-mock.patch | 42 ------------------- python-magic-wormhole-mailbox-server.changes | 13 ++++++ python-magic-wormhole-mailbox-server.spec | 10 ++--- 5 files changed, 19 insertions(+), 52 deletions(-) delete mode 100644 magic-wormhole-mailbox-server-0.4.1.tar.gz create mode 100644 magic-wormhole-mailbox-server-0.5.1.tar.gz delete mode 100644 python-magic-wormhole-mailbox-server-no-mock.patch diff --git a/magic-wormhole-mailbox-server-0.4.1.tar.gz b/magic-wormhole-mailbox-server-0.4.1.tar.gz deleted file mode 100644 index d99abc7..0000000 --- a/magic-wormhole-mailbox-server-0.4.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1af10592909caaf519c00e706eac842c5e77f8d4356215fe9c61c7b2258a88fb -size 64830 diff --git a/magic-wormhole-mailbox-server-0.5.1.tar.gz b/magic-wormhole-mailbox-server-0.5.1.tar.gz new file mode 100644 index 0000000..dbd5b17 --- /dev/null +++ b/magic-wormhole-mailbox-server-0.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a007a03672293204657681dbf502045d6d5817c57f9aae2f2226e6ea1a008ca1 +size 69758 diff --git a/python-magic-wormhole-mailbox-server-no-mock.patch b/python-magic-wormhole-mailbox-server-no-mock.patch deleted file mode 100644 index fa45b3e..0000000 --- a/python-magic-wormhole-mailbox-server-no-mock.patch +++ /dev/null @@ -1,42 +0,0 @@ -diff -upr magic-wormhole-mailbox-server-0.4.1.orig/src/wormhole_mailbox_server/test/test_rlimits.py magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/test_rlimits.py ---- magic-wormhole-mailbox-server-0.4.1.orig/src/wormhole_mailbox_server/test/test_rlimits.py 2022-05-17 17:46:58.549457994 +0200 -+++ magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/test_rlimits.py 2022-05-17 17:46:58.553458020 +0200 -@@ -1,5 +1,5 @@ - from __future__ import print_function, unicode_literals --import mock -+from unittest import mock - from twisted.trial import unittest - from ..increase_rlimits import increase_rlimits - -diff -upr magic-wormhole-mailbox-server-0.4.1.orig/src/wormhole_mailbox_server/test/test_server.py magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/test_server.py ---- magic-wormhole-mailbox-server-0.4.1.orig/src/wormhole_mailbox_server/test/test_server.py 2022-05-17 17:46:58.549457994 +0200 -+++ magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/test_server.py 2022-05-17 17:46:58.553458020 +0200 -@@ -1,5 +1,5 @@ - from __future__ import print_function, unicode_literals --import mock -+from unittest import mock - from twisted.trial import unittest - from twisted.python import log - from .common import ServerBase, _Util -diff -upr magic-wormhole-mailbox-server-0.4.1.orig/src/wormhole_mailbox_server/test/test_service.py magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/test_service.py ---- magic-wormhole-mailbox-server-0.4.1.orig/src/wormhole_mailbox_server/test/test_service.py 2022-05-17 17:46:58.549457994 +0200 -+++ magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/test_service.py 2022-05-17 17:46:58.553458020 +0200 -@@ -1,6 +1,6 @@ - from __future__ import unicode_literals, print_function - from twisted.trial import unittest --import mock -+from unittest import mock - from twisted.application.service import MultiService - from .. import server_tap - -diff -upr magic-wormhole-mailbox-server-0.4.1.orig/src/wormhole_mailbox_server/test/test_web.py magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/test_web.py ---- magic-wormhole-mailbox-server-0.4.1.orig/src/wormhole_mailbox_server/test/test_web.py 2022-05-17 17:46:58.549457994 +0200 -+++ magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/test_web.py 2022-05-17 17:46:58.553458020 +0200 -@@ -1,6 +1,6 @@ - from __future__ import print_function, unicode_literals - import io, time --import mock -+from unittest import mock - import treq - from twisted.trial import unittest - from twisted.internet import defer, reactor diff --git a/python-magic-wormhole-mailbox-server.changes b/python-magic-wormhole-mailbox-server.changes index ef7ef05..70455f5 100644 --- a/python-magic-wormhole-mailbox-server.changes +++ b/python-magic-wormhole-mailbox-server.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Mon Nov 11 20:22:51 UTC 2024 - Dirk Müller + +- update to 0.5.1: + * properly require "setuptools" for install + * correctly close a mailbox which still has a nameplate + * remove python2 support + * test on python 3.8, 3.9, 3.10, 3.11 and 3.12 series + * drop "six" + * upgrade "versioneer" +- drop python-magic-wormhole-mailbox-server-no-mock.patch + (upstream) + ------------------------------------------------------------------- Tue Mar 28 10:00:03 UTC 2023 - pgajdos@suse.com diff --git a/python-magic-wormhole-mailbox-server.spec b/python-magic-wormhole-mailbox-server.spec index e3b4689..6563341 100644 --- a/python-magic-wormhole-mailbox-server.spec +++ b/python-magic-wormhole-mailbox-server.spec @@ -1,7 +1,7 @@ # # spec file for package python-magic-wormhole-mailbox-server # -# Copyright (c) 2023 SUSE LLC +# 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 @@ -16,17 +16,14 @@ # -%define skip_python36 1 Name: python-magic-wormhole-mailbox-server -Version: 0.4.1 +Version: 0.5.1 Release: 0 Summary: Key exchange and control message server for Magic-Wormhole License: MIT Group: Development/Languages/Python URL: https://github.com/warner/magic-wormhole-mailbox-server Source: https://files.pythonhosted.org/packages/source/m/magic-wormhole-mailbox-server/magic-wormhole-mailbox-server-%{version}.tar.gz -# https://github.com/magic-wormhole/magic-wormhole/issues/439 -Patch0: python-magic-wormhole-mailbox-server-no-mock.patch BuildRequires: %{python_module Twisted-tls >= 17.5.0} BuildRequires: %{python_module attrs >= 16.3.0} BuildRequires: %{python_module autobahn >= 0.14.1} @@ -40,6 +37,7 @@ BuildRequires: python-rpm-macros Requires: python-Twisted-tls >= 17.5.0 Requires: python-attrs >= 16.3.0 Requires: python-autobahn >= 0.14.1 +Requires: python-setuptools BuildArch: noarch %python_subpackages @@ -51,8 +49,6 @@ a transit-relay. %prep %autosetup -p1 -n magic-wormhole-mailbox-server-%{version} -# https://github.com/magic-wormhole/magic-wormhole-mailbox-server/issues/35 -sed '/six/d' setup.py src/magic_wormhole_mailbox_server.egg-info/requires.txt %build %pyproject_wheel