15
0
Files
python-autobahn/python-autobahn.spec

147 lines
5.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-autobahn
#
# Copyright (c) 2025 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/
#
%ifarch %arm aarch64 riscv64
%bcond_with nvx_support
%else
%bcond_without nvx_support
%endif
Name: python-autobahn
Version: 24.4.2
Release: 0
Summary: WebSocket and WAMP in Python for Twisted and asyncio
License: MIT
URL: https://github.com/crossbario/autobahn-python
Source: https://files.pythonhosted.org/packages/source/a/autobahn/autobahn-%{version}.tar.gz
Patch0: respect-cflags.patch
Patch1: intrin-arch.patch
# PATCH-FIX-UPSTREAM gh#crossbario/autobahn-python#1647
Patch2: support-new-pytest-asyncio.patch
# PATCH-FIX-UPSTREAM gh#crossbario/autobahn-python#1661
Patch3: use-plain-twisted.patch
BuildRequires: %{python_module PyNaCl >= 1.4.0}
BuildRequires: %{python_module Twisted >= 24.3.0}
BuildRequires: %{python_module argon2-cffi >= 20.1.0}
BuildRequires: %{python_module attrs >= 20.3.0}
BuildRequires: %{python_module cbor2 >= 5.2.0}
BuildRequires: %{python_module cffi >= 1.14.5}
BuildRequires: %{python_module cryptography >= 3.4.6}
BuildRequires: %{python_module devel >= 3.9}
BuildRequires: %{python_module flatbuffers >= 22.12.6}
BuildRequires: %{python_module hyperlink >= 21.0.0}
BuildRequires: %{python_module msgpack >= 1.0.2}
BuildRequires: %{python_module passlib >= 1.7.4}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module py-ubjson >= 0.16.1}
BuildRequires: %{python_module pyOpenSSL >= 20.0.1}
BuildRequires: %{python_module pytest >= 2.8.6}
- Update to 20.4.2: * new: XBR - adjust eip712 signature for channel close * new: XBR - adjustments after xbr refactoring (#1357) * new: XBR - add channel open/close eip712 types to AB (#1358) * new: WAMP-cryptosign - make channel_id_type optional in transport_channel_id() * new: expose new XBR top-level contracts * fix: bump dependencies versions for attrs and identity (#1346) * fix: FrontendProxyProtocol object has no attribute 'write' (#1339) * fix: WAMP-cryptosign authid is not mandatory; reduce log noise (#1340) * fix: confusion between paying and payment channel (#1337) * new: forward explicitly set app level errors from ApplicationRunner.run() (#1336) * fix: simple typo: hookinh -> hooking (#1333) * new: update for xbr v20.3.1 * fix: for #1327 - cancel Auto Ping Timeout (#1328) * new: helper function to create a configured Web3 blockchain connection (#1329) * fix: add AuthAnonymous to __all__ (#1303) * fix: CI building (caching?) issue "corrupt ZIP file" * fix: update docker image build scripts and add ARM64/PyPy * fix: use :func:`txaio.time_ns` and drop deprecated :func:`autobahn.util.time_ns` * fix: update project README and docs for supported python versions (#1296) * fix: WebSocket protocol instances now raise autobahn.exception.Disconnected when sending on a closed connection (#1002) * fix: version conflict in xbr downstream application dependency (crossbarfx) (#1295) * fix: add python_requires>=3.5 to prevent installation on python 2 (#1293) * fix: first part of cleaning up code, dropping Python 2 support (#1282). * fix: add docs for parameters to component.py (#1276) * new: statistics tracking on WAMP serializers :class:`autobahn.wamp.serializer.Serializer` * new: helper :func:`autobahn.util.time_ns` - No longer build for Python 2 - Update BuildRequires. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autobahn?expand=0&rev=27
2020-04-20 07:46:33 +00:00
BuildRequires: %{python_module pytest-aiohttp}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytrie >= 0.4.0}
BuildRequires: %{python_module qrcode >= 7.3.1}
BuildRequires: %{python_module service_identity >= 18.1.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module txaio >= 21.2.1}
BuildRequires: %{python_module ujson >= 4.0.2}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module wsaccel >= 0.6.3}
BuildRequires: %{python_module zope.interface >= 5.2.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyNaCl >= 1.4.0
Requires: python-Twisted >= 24.3.0
Requires: python-argon2-cffi >= 20.1.0
Requires: python-attrs >= 20.3.0
Requires: python-cbor2 >= 5.2.0
Requires: python-cffi >= 1.14.5
Requires: python-cryptography >= 3.4.6
Requires: python-flatbuffers >= 22.12.6
Requires: python-hyperlink >= 21.0.0
Requires: python-msgpack >= 1.0.2
Requires: python-passlib >= 1.7.4
Requires: python-py-ubjson >= 0.16.1
Requires: python-pyOpenSSL >= 20.0.1
Requires: python-pytrie >= 0.4.0
Requires: python-qrcode >= 7.3.1
Requires: python-service_identity >= 18.1.0
Requires: python-setuptools
Requires: python-txaio >= 21.2.1
Requires: python-ujson >= 4.0.2
Requires: python-wsaccel >= 0.6.3
Requires: python-zope.interface >= 5.2.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
WebSocket allows bidirectional real-time messaging on the Web and WAMP adds
asynchronous Remote Procedure Calls and Publish & Subscribe on top of WebSocket.
%prep
%autosetup -p1 -n autobahn-%{version}
# this test relies too much on rng that can behave randomly in obs
rm autobahn/test/test_rng.py
%build
%if %{with nvx_support}
export AUTOBAHN_USE_NVX=true
%endif
export CFLAGS="%{optflags}"
%pyproject_wheel
%install
%if %{with nvx_support}
export AUTOBAHN_USE_NVX=true
%endif
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/wamp
%python_clone -a %{buildroot}%{_bindir}/xbrnetwork
- Update to 22.2.2: * fix: auto ping/pong logs should be debug instead of info (#1524) * new: add auto-ping/pong configuration knob autoPingRestartOnAnyTraffic (see discussion here). * new: extended websocket auto-ping/pong ("heartbeating") with builtin RTT measurement * new: experimental support for transaction_hash in WAMP Publish/Call (see discussion here). * new: support decimal numbers WAMP serialization and round-tripping in both JSON and CBOR * fix: only depend on cbor2 (for WAMP CBOR serialization), not also cbor * fix: PyInstaller and Docker build / CI issues * new: support Python 3.10 * new: allow optional keys in endpoint config validation * fix: reset transport retry status when connection succeeds * fix: update Docker/PyPy to pypy:3.8-slim * fix: autobahn installation in docker (#1503) * new: refactor SigningKey class for reusability (#1500, #1501) * new: expand XBR node pairing helpers * fix: build with nvx by default and don't publish universal wheel. (#1493) * fix: update wamp flatbuffer schema for r2r links * fix: don't clobber factory (#1480) * fix: explicitly require setuptools * new: expand wamp auth scram and xbr argon2/hkdf (#1479) * fix: WebSocket compression, window size (zlib wbits) == 8 is illegal nowerdays (#1477) * fix: XBR IDL code generator - all 4 WAMP actions working now * new: add automated build of xbrnetwork CLI (single-file EXE) in CI - Remove python-mock BuildRequires - Rebase respect-cflags.patch - Ship the xbrnetwork-ui cli tool OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autobahn?expand=0&rev=57
2022-03-09 06:00:09 +00:00
%python_clone -a %{buildroot}%{_bindir}/xbrnetwork-ui
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%if %{with nvx_support}
# It tries to test NVX, even if disabled
%check
export USE_ASYNCIO=true
export AUTOBAHN_USE_NVX=true
export PYTHONDONTWRITEBYTECODE=1
export PY_IGNORE_IMPORTMISMATCH=1
%pytest_arch
%endif
%post
- Update to 22.2.2: * fix: auto ping/pong logs should be debug instead of info (#1524) * new: add auto-ping/pong configuration knob autoPingRestartOnAnyTraffic (see discussion here). * new: extended websocket auto-ping/pong ("heartbeating") with builtin RTT measurement * new: experimental support for transaction_hash in WAMP Publish/Call (see discussion here). * new: support decimal numbers WAMP serialization and round-tripping in both JSON and CBOR * fix: only depend on cbor2 (for WAMP CBOR serialization), not also cbor * fix: PyInstaller and Docker build / CI issues * new: support Python 3.10 * new: allow optional keys in endpoint config validation * fix: reset transport retry status when connection succeeds * fix: update Docker/PyPy to pypy:3.8-slim * fix: autobahn installation in docker (#1503) * new: refactor SigningKey class for reusability (#1500, #1501) * new: expand XBR node pairing helpers * fix: build with nvx by default and don't publish universal wheel. (#1493) * fix: update wamp flatbuffer schema for r2r links * fix: don't clobber factory (#1480) * fix: explicitly require setuptools * new: expand wamp auth scram and xbr argon2/hkdf (#1479) * fix: WebSocket compression, window size (zlib wbits) == 8 is illegal nowerdays (#1477) * fix: XBR IDL code generator - all 4 WAMP actions working now * new: add automated build of xbrnetwork CLI (single-file EXE) in CI - Remove python-mock BuildRequires - Rebase respect-cflags.patch - Ship the xbrnetwork-ui cli tool OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autobahn?expand=0&rev=57
2022-03-09 06:00:09 +00:00
%python_install_alternative wamp xbrnetwork xbrnetwork-ui
%postun
- Update to 22.2.2: * fix: auto ping/pong logs should be debug instead of info (#1524) * new: add auto-ping/pong configuration knob autoPingRestartOnAnyTraffic (see discussion here). * new: extended websocket auto-ping/pong ("heartbeating") with builtin RTT measurement * new: experimental support for transaction_hash in WAMP Publish/Call (see discussion here). * new: support decimal numbers WAMP serialization and round-tripping in both JSON and CBOR * fix: only depend on cbor2 (for WAMP CBOR serialization), not also cbor * fix: PyInstaller and Docker build / CI issues * new: support Python 3.10 * new: allow optional keys in endpoint config validation * fix: reset transport retry status when connection succeeds * fix: update Docker/PyPy to pypy:3.8-slim * fix: autobahn installation in docker (#1503) * new: refactor SigningKey class for reusability (#1500, #1501) * new: expand XBR node pairing helpers * fix: build with nvx by default and don't publish universal wheel. (#1493) * fix: update wamp flatbuffer schema for r2r links * fix: don't clobber factory (#1480) * fix: explicitly require setuptools * new: expand wamp auth scram and xbr argon2/hkdf (#1479) * fix: WebSocket compression, window size (zlib wbits) == 8 is illegal nowerdays (#1477) * fix: XBR IDL code generator - all 4 WAMP actions working now * new: add automated build of xbrnetwork CLI (single-file EXE) in CI - Remove python-mock BuildRequires - Rebase respect-cflags.patch - Ship the xbrnetwork-ui cli tool OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autobahn?expand=0&rev=57
2022-03-09 06:00:09 +00:00
%python_uninstall_alternative wamp xbrnetwork xbrnetwork-ui
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitearch}/_nvx_utf8validator.abi3.so
%{python_sitearch}/autobahn
%{python_sitearch}/twisted
%{python_sitearch}/autobahn-%{version}.dist-info
%python_alternative %{_bindir}/wamp
%python_alternative %{_bindir}/xbrnetwork
- Update to 22.2.2: * fix: auto ping/pong logs should be debug instead of info (#1524) * new: add auto-ping/pong configuration knob autoPingRestartOnAnyTraffic (see discussion here). * new: extended websocket auto-ping/pong ("heartbeating") with builtin RTT measurement * new: experimental support for transaction_hash in WAMP Publish/Call (see discussion here). * new: support decimal numbers WAMP serialization and round-tripping in both JSON and CBOR * fix: only depend on cbor2 (for WAMP CBOR serialization), not also cbor * fix: PyInstaller and Docker build / CI issues * new: support Python 3.10 * new: allow optional keys in endpoint config validation * fix: reset transport retry status when connection succeeds * fix: update Docker/PyPy to pypy:3.8-slim * fix: autobahn installation in docker (#1503) * new: refactor SigningKey class for reusability (#1500, #1501) * new: expand XBR node pairing helpers * fix: build with nvx by default and don't publish universal wheel. (#1493) * fix: update wamp flatbuffer schema for r2r links * fix: don't clobber factory (#1480) * fix: explicitly require setuptools * new: expand wamp auth scram and xbr argon2/hkdf (#1479) * fix: WebSocket compression, window size (zlib wbits) == 8 is illegal nowerdays (#1477) * fix: XBR IDL code generator - all 4 WAMP actions working now * new: add automated build of xbrnetwork CLI (single-file EXE) in CI - Remove python-mock BuildRequires - Rebase respect-cflags.patch - Ship the xbrnetwork-ui cli tool OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autobahn?expand=0&rev=57
2022-03-09 06:00:09 +00:00
%python_alternative %{_bindir}/xbrnetwork-ui
%changelog