forked from pool/python-Pyro5
- Add patch add-network-marker.patch:
* Mark tests that require the network as such, so we can skip them. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pyro5?expand=0&rev=3
This commit is contained in:
@@ -23,6 +23,8 @@ Summary: Distributed object middleware for Python (RPC)
|
||||
License: MIT
|
||||
URL: https://github.com/irmen/Pyro5
|
||||
Source: https://files.pythonhosted.org/packages/source/P/Pyro5/Pyro5-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM FIXME
|
||||
Patch0: add-network-marker.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -73,10 +75,7 @@ runs on many different platforms and Python versions.
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyro5-nsc
|
||||
|
||||
%check
|
||||
# socket tests require at least lo interface thus skip them
|
||||
skip="test_socketutil"
|
||||
export PYTHONPATH=${PWD}/tests/PyroTests
|
||||
%pytest -rs -v -k "not ($skip)"
|
||||
%pytest -m "not network"
|
||||
|
||||
%post
|
||||
%{python_install_alternative pyro5-check-config pyro5-echoserver pyro5-httpgateway pyro5-ns pyro5-nsc}
|
||||
|
||||
Reference in New Issue
Block a user