Accepting request 1223789 from devel:languages:python

Forwarded request #1223681 from mcalabkova

- Update to 0.4.0
    * drop Python 2, Python 3.5 and 3.6 support
    * add Python 3.9, 3.10, 3.11 and 3.12 to CI
    * add autobahn dep, upgrade twisted
    * better websockets suport
  - Drop merged patches:
    * support-python312.patch
    * python-magic-wormhole-transit-relay-no-mock.patch

OBS-URL: https://build.opensuse.org/request/show/1223789
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-magic-wormhole-transit-relay?expand=0&rev=6
This commit is contained in:
2024-11-14 15:07:59 +00:00
committed by Git OBS Bridge
6 changed files with 22 additions and 1988 deletions

View File

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

View File

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

View File

@@ -1,32 +0,0 @@
diff -upr magic-wormhole-transit-relay-0.2.1.orig/src/wormhole_transit_relay/test/test_rlimits.py magic-wormhole-transit-relay-0.2.1/src/wormhole_transit_relay/test/test_rlimits.py
--- magic-wormhole-transit-relay-0.2.1.orig/src/wormhole_transit_relay/test/test_rlimits.py 2022-05-17 17:47:03.933492047 +0200
+++ magic-wormhole-transit-relay-0.2.1/src/wormhole_transit_relay/test/test_rlimits.py 2022-05-17 17:47:03.937492072 +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-transit-relay-0.2.1.orig/src/wormhole_transit_relay/test/test_service.py magic-wormhole-transit-relay-0.2.1/src/wormhole_transit_relay/test/test_service.py
--- magic-wormhole-transit-relay-0.2.1.orig/src/wormhole_transit_relay/test/test_service.py 2022-05-17 17:47:03.933492047 +0200
+++ magic-wormhole-transit-relay-0.2.1/src/wormhole_transit_relay/test/test_service.py 2022-05-17 17:47:03.937492072 +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-transit-relay-0.2.1.orig/src/wormhole_transit_relay/test/test_stats.py magic-wormhole-transit-relay-0.2.1/src/wormhole_transit_relay/test/test_stats.py
--- magic-wormhole-transit-relay-0.2.1.orig/src/wormhole_transit_relay/test/test_stats.py 2022-05-17 17:47:03.933492047 +0200
+++ magic-wormhole-transit-relay-0.2.1/src/wormhole_transit_relay/test/test_stats.py 2022-05-17 17:47:03.937492072 +0200
@@ -1,6 +1,6 @@
from __future__ import print_function, unicode_literals
import os, io, json, sqlite3
-import mock
+from unittest import mock
from twisted.trial import unittest
from ..transit_server import Transit
from .. import database

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Tue Nov 12 12:50:49 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Update to 0.4.0
* drop Python 2, Python 3.5 and 3.6 support
* add Python 3.9, 3.10, 3.11 and 3.12 to CI
* add autobahn dep, upgrade twisted
* better websockets suport
- Drop merged patches:
* support-python312.patch
* python-magic-wormhole-transit-relay-no-mock.patch
-------------------------------------------------------------------
Mon Feb 5 01:22:01 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -17,24 +17,22 @@
Name: python-magic-wormhole-transit-relay
Version: 0.2.1
Version: 0.4.0
Release: 0
Summary: Transit Relay server for Magic-Wormhole
License: MIT
URL: https://github.com/warner/magic-wormhole-transit-relay
Source: https://files.pythonhosted.org/packages/source/m/magic-wormhole-transit-relay/magic-wormhole-transit-relay-%{version}.tar.gz
# https://github.com/magic-wormhole/magic-wormhole/issues/439
Patch0: python-magic-wormhole-transit-relay-no-mock.patch
# PATCH-FIX-UPSTREAM gh#magic-wormhole/magic-wormhole-transit-relay#36
Patch1: support-python312.patch
BuildRequires: %{python_module Twisted >= 17.5.0}
BuildRequires: %{python_module Twisted >= 21.2.0}
BuildRequires: %{python_module autobahn >= 21.3.1}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Twisted >= 17.5.0
Requires: python-Twisted >= 21.2.0
Requires: python-autobahn >= 21.3.1
BuildArch: noarch
%python_subpackages
@@ -52,6 +50,8 @@ Transit Relay server for Magic-Wormhole
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# test_backpressure.py: tests here need internet connection
rm src/wormhole_transit_relay/test/test_backpressure.py
%pytest src/wormhole_transit_relay/test
%files %{python_files}

File diff suppressed because it is too large Load Diff