1
0

- Switch to using the %pytest macro.

- Drop incorrect calculated dependency on python33.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-networkx?expand=0&rev=14
This commit is contained in:
Steve Kowalik 2019-11-22 00:41:57 +00:00 committed by Git OBS Bridge
parent 93aa5ab2bb
commit e3ecd396ce
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Nov 22 00:41:03 UTC 2019 - steven.kowalik@suse.com
- Drop incorrectly calculated dependency on python33
- Switch to using %pytest macro
-------------------------------------------------------------------
Sun Nov 17 23:53:12 UTC 2019 - Steve Kowalik <steven.kowalik@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-networkx
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -33,7 +33,7 @@ BuildRequires: %{python_module decorator >= 3.4.0}
BuildRequires: %{python_module matplotlib}
BuildRequires: %{python_module pydot}
BuildRequires: %{python_module pyparsing}
BuildRequires: %{python_module pytest3}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module scipy}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@ -89,7 +89,8 @@ fi
%{python_expand pushd %{buildroot}%{$python_sitelib}
# Fix wrong-script-interpreter
find networkx -name '*test*.py' -exec sed -i "s|#!%{_bindir}/env python|#!%__$python|" {} +
find networkx -name '*test*.py' -exec sed -i "s|#!%{_bindir}/env python$|#!%__$python|" {} +
find networkx -name '*test*.py' -exec sed -i "s|#!%{_bindir}/env python3$|#!%__$python|" {} +
find networkx -name '*test*.py' -exec grep -q '#!%__$python' {} \; -exec chmod a+x {} +
# Deduplicating files can generate a RPMLINT warning for pyc mtime
find networkx -name '*test*.py' -exec $python -m compileall -d %{$python_sitelib} {} \;
@ -101,7 +102,7 @@ popd
%check
# test excluded because it leads to crashes on i586, gh#networkx/networkx#3304
py.test3 -vv -k 'not test_subgraph_centrality_big_graph'
%pytest -k 'not test_subgraph_centrality_big_graph'
%files %{python_files}
%license LICENSE.txt