- Add patch support-python312.patch:

* Support Python 3.12.
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-magic-wormhole-transit-relay?expand=0&rev=10
This commit is contained in:
2024-02-05 01:22:46 +00:00
committed by Git OBS Bridge
parent fb4d2b1c0e
commit 43526b4a00
3 changed files with 1961 additions and 6 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Feb 5 01:22:01 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch support-python312.patch:
* Support Python 3.12.
- Switch to pyproject macros.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed May 18 19:48:49 UTC 2022 - Matej Cepl <mcepl@suse.com> Wed May 18 19:48:49 UTC 2022 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-magic-wormhole-transit-relay # spec file for package python-magic-wormhole-transit-relay
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-magic-wormhole-transit-relay Name: python-magic-wormhole-transit-relay
Version: 0.2.1 Version: 0.2.1
Release: 0 Release: 0
@@ -26,10 +25,13 @@ 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 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 # https://github.com/magic-wormhole/magic-wormhole/issues/439
Patch0: python-magic-wormhole-transit-relay-no-mock.patch 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 >= 17.5.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{pythons} BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-Twisted >= 17.5.0 Requires: python-Twisted >= 17.5.0
@@ -43,10 +45,10 @@ Transit Relay server for Magic-Wormhole
%autosetup -p1 -n magic-wormhole-transit-relay-%{version} %autosetup -p1 -n magic-wormhole-transit-relay-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -56,7 +58,7 @@ Transit Relay server for Magic-Wormhole
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%{python_sitelib}/wormhole_transit_relay %{python_sitelib}/wormhole_transit_relay
%{python_sitelib}/magic_wormhole_transit_relay-%{version}*-info %{python_sitelib}/magic_wormhole_transit_relay-%{version}.dist-info
%{python_sitelib}/twisted/plugins/magic_wormhole_transit_relay.py %{python_sitelib}/twisted/plugins/magic_wormhole_transit_relay.py
%pycache_only %{python_sitelib}/twisted/plugins/__pycache__/magic_wormhole_transit_relay*.pyc %pycache_only %{python_sitelib}/twisted/plugins/__pycache__/magic_wormhole_transit_relay*.pyc

1946
support-python312.patch Normal file

File diff suppressed because it is too large Load Diff