17
0

Compare commits

3 Commits

Author SHA256 Message Date
65c7c2fe3d Accepting request 1223436 from devel:languages:python
- 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/request/show/1223436
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-magic-wormhole-mailbox-server?expand=0&rev=8
2024-11-12 18:21:33 +00:00
4b14999735 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-magic-wormhole-mailbox-server?expand=0&rev=17 2024-11-11 20:24:53 +00:00
3e0bce576e - 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
2024-11-11 20:24:31 +00:00
5 changed files with 20 additions and 52 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1af10592909caaf519c00e706eac842c5e77f8d4356215fe9c61c7b2258a88fb
size 64830

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a007a03672293204657681dbf502045d6d5817c57f9aae2f2226e6ea1a008ca1
size 69758

View File

@@ -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

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon Nov 11 20:22:51 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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

View File

@@ -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,15 @@
#
%define skip_python36 1
%{?sle15_python_module_pythons}
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 +38,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 +50,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