14
0
Files
python-aiorpcX/python-aiorpcX.spec
Jiri Slaby 745ba97f04 Accepting request 886610 from home:jirislaby:branches:devel:languages:python
- update to 0.18.7
  * don't wait for tasks to cancel if exiting by exception
  * Fix tests for Python3.8 (we reenable them)
  * Merge pull request #34
  * SOCKS: Fix random auth on Python 3.8+
  * Merge pull request #33
  * session: add method on_disconnect_due_to_excessive_session_cost

OBS-URL: https://build.opensuse.org/request/show/886610
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiorpcX?expand=0&rev=14
2021-04-23 03:47:38 +00:00

75 lines
2.4 KiB
RPMSpec

#
# spec file for package python-aiorpcX
#
# Copyright (c) 2021 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/
#
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-aiorpcX
Version: 0.18.7
Release: 0
Summary: Generic async RPC implementation, including JSON-RPC
License: MIT
Group: Development/Languages/Python
URL: https://github.com/kyuupichan/aiorpcX
Source: https://github.com/kyuupichan/aiorpcX/archive/%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-attrs
Recommends: python-websockets
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module aiohttp >= 2.3.2}
BuildRequires: %{python_module attrs}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module uvloop}
BuildRequires: %{python_module websockets}
# /SECTION
%python_subpackages
%description
Generic async RPC implementation, including JSON-RPC
%prep
%setup -q -n aiorpcX-%{version}
# needs network
rm tests/test_websocket.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# the two disabled tests below need network
SKIP_TESTS="test_auto_detect_address_failure or test_create_connection_resolve_good"
# test_slow_connection_aborted - randomly fails, out of 10 runs 6 fails
SKIP_TESTS="$SKIP_TESTS or test_slow_connection_aborted"
# test_cancel_remaining_on_group_with_stubborn_task - cannot import create_task -- why? (A new test from 82048a219aac.)
SKIP_TESTS="$SKIP_TESTS or test_cancel_remaining_on_group_with_stubborn_task"
%pytest -k "not ($SKIP_TESTS)"
%files %{python_files}
%doc README.rst
%license LICENCE
%{python_sitelib}/*
%changelog