1
0

Accepting request 873985 from home:jayvdb:branches:devel:languages:python:numeric

- Re-enable Python 3.6 builds without optional dependencies
- Add test dependencies lxml, pandas and pygraphviz

OBS-URL: https://build.opensuse.org/request/show/873985
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-networkx?expand=0&rev=36
This commit is contained in:
Matej Cepl 2021-02-20 18:13:48 +00:00 committed by Git OBS Bridge
parent c050304104
commit 542624fbeb
2 changed files with 29 additions and 12 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Feb 20 05:07:31 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
- Re-enable Python 3.6 builds without optional dependencies
- Add test dependencies lxml, pandas and pygraphviz
-------------------------------------------------------------------
Mon Feb 1 14:05:38 UTC 2021 - Benjamin Greiner <code@bnavigator.de>

View File

@ -18,7 +18,6 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%define skip_python36 1
Name: python-networkx
Version: 2.5
Release: 0
@ -29,26 +28,37 @@ Source: https://files.pythonhosted.org/packages/source/n/networkx/networ
Patch0: 0001-Replace-hash-function-for-test-of-weighted-astar.patch
# PATCH-FIX-UPSTREAM https://github.com/networkx/networkx/commit/a6dd458a12ad8db161271e2271644803d4f29a96 fixes Github Actions failures
Patch1: yaml-loader.patch
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module decorator >= 3.4.0}
BuildRequires: %{python_module matplotlib >= 3.1}
BuildRequires: %{python_module pydot}
BuildRequires: %{python_module pyparsing}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module scipy}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
Requires: python-decorator >= 3.4.0
Recommends: python-PyYAML
Recommends: python-matplotlib >= 3.1
Recommends: python-pydot
Recommends: python-pygraphviz
Recommends: python-pyparsing
Recommends: python-scipy
Suggests: python-matplotlib >= 3.1
Suggests: python-pandas
Suggests: python-scipy
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module decorator >= 3.4.0}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pydot}
BuildRequires: %{python_module pygraphviz}
BuildRequires: %{python_module pyparsing}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: (python3-matplotlib >= 3.1 if python3-base < 3.8)
BuildRequires: (python3-numpy if python3-base < 3.8)
BuildRequires: (python3-pandas if python3-base < 3.8)
BuildRequires: (python3-scipy if python3-base < 3.8)
BuildRequires: (python38-matplotlib >= 3.1 if python38-base)
BuildRequires: (python38-numpy if python38-base)
BuildRequires: (python38-pandas if python38-base)
BuildRequires: (python38-scipy if python38-base)
# /SECTION
%python_subpackages
%description
@ -104,7 +114,8 @@ popd
%check
# gh#networkx/networkx#4030 we cannot use -n auto because
# TestKatzCentralityDirectedNumpy fails otherwise
%pytest
# (pandas) test_from_adjacency_named fails on i586
%pytest -rs -k 'not test_from_adjacency_named'
%files %{python_files}
%license LICENSE.txt