forked from pool/python-networkx
Accepting request 790492 from devel:languages:python:numeric
- Add patch to fix matplotlib deprecation: * matplotlib.patch - Skip two tests that keep failing everywhere OBS-URL: https://build.opensuse.org/request/show/790492 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-networkx?expand=0&rev=20
This commit is contained in:
commit
10fdcd6a6f
23
matplotlib.patch
Normal file
23
matplotlib.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
From 3987370c957de15249809672933dc06c2fed6fc1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jarrod Millman <jarrod.millman@gmail.com>
|
||||||
|
Date: Wed, 30 Oct 2019 05:22:12 -0700
|
||||||
|
Subject: [PATCH] Fix matplotlib deprecation (#3697)
|
||||||
|
|
||||||
|
Fixes #3694
|
||||||
|
---
|
||||||
|
networkx/drawing/tests/test_pylab.py | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/networkx/drawing/tests/test_pylab.py b/networkx/drawing/tests/test_pylab.py
|
||||||
|
index 2ecd268d37..0fd3773b06 100644
|
||||||
|
--- a/networkx/drawing/tests/test_pylab.py
|
||||||
|
+++ b/networkx/drawing/tests/test_pylab.py
|
||||||
|
@@ -172,7 +172,7 @@ def test_multigraph_edgelist_tuples(self):
|
||||||
|
# See Issue #3295
|
||||||
|
G = nx.path_graph(3, create_using=nx.MultiDiGraph)
|
||||||
|
nx.draw_networkx(G, edgelist=[(0, 1, 0)])
|
||||||
|
- nx.draw_networkx(G, edgelist=[(0, 1, 0)], node_size=[10, 20])
|
||||||
|
+ nx.draw_networkx(G, edgelist=[(0, 1, 0)], node_size=[10, 20, 0])
|
||||||
|
|
||||||
|
def test_alpha_iter(self):
|
||||||
|
pos = nx.random_layout(self.G)
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 1 08:38:55 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Add patch to fix matplotlib deprecation:
|
||||||
|
* matplotlib.patch
|
||||||
|
- Skip two tests that keep failing everywhere
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Nov 22 00:41:03 UTC 2019 - steven.kowalik@suse.com
|
Fri Nov 22 00:41:03 UTC 2019 - steven.kowalik@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-networkx
|
# spec file for package python-networkx
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LLC
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -23,16 +23,17 @@ Version: 2.4
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python package for the study of complex networks
|
Summary: Python package for the study of complex networks
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://networkx.github.io/
|
URL: https://networkx.github.io/
|
||||||
Source: https://files.pythonhosted.org/packages/source/n/networkx/networkx-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/n/networkx/networkx-%{version}.tar.gz
|
||||||
# UPSTREAM PATCH: gh#networkx/networkx#3724
|
# UPSTREAM PATCH: gh#networkx/networkx#3724
|
||||||
Patch0: numpy-38-test.patch
|
Patch0: numpy-38-test.patch
|
||||||
|
Patch1: matplotlib.patch
|
||||||
BuildRequires: %{python_module PyYAML}
|
BuildRequires: %{python_module PyYAML}
|
||||||
BuildRequires: %{python_module decorator >= 3.4.0}
|
BuildRequires: %{python_module decorator >= 3.4.0}
|
||||||
BuildRequires: %{python_module matplotlib}
|
BuildRequires: %{python_module matplotlib >= 3.1}
|
||||||
BuildRequires: %{python_module pydot}
|
BuildRequires: %{python_module pydot}
|
||||||
BuildRequires: %{python_module pyparsing}
|
BuildRequires: %{python_module pyparsing}
|
||||||
|
BuildRequires: %{python_module pytest-xdist}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module scipy}
|
BuildRequires: %{python_module scipy}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@ -41,7 +42,7 @@ BuildRequires: python-rpm-macros
|
|||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
Requires: python-decorator >= 3.4.0
|
Requires: python-decorator >= 3.4.0
|
||||||
Recommends: python-PyYAML
|
Recommends: python-PyYAML
|
||||||
Recommends: python-matplotlib
|
Recommends: python-matplotlib >= 3.1
|
||||||
Recommends: python-pydot
|
Recommends: python-pydot
|
||||||
Recommends: python-pygraphviz
|
Recommends: python-pygraphviz
|
||||||
Recommends: python-pyparsing
|
Recommends: python-pyparsing
|
||||||
@ -63,7 +64,6 @@ Features:
|
|||||||
|
|
||||||
%package -n %{name}-doc
|
%package -n %{name}-doc
|
||||||
Summary: Documentation for %{name}
|
Summary: Documentation for %{name}
|
||||||
Group: Documentation/Other
|
|
||||||
Provides: %{python_module networkx-doc = %{version}}
|
Provides: %{python_module networkx-doc = %{version}}
|
||||||
|
|
||||||
%description -n %{name}-doc
|
%description -n %{name}-doc
|
||||||
@ -102,7 +102,8 @@ popd
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
# test excluded because it leads to crashes on i586, gh#networkx/networkx#3304
|
# test excluded because it leads to crashes on i586, gh#networkx/networkx#3304
|
||||||
%pytest -k 'not test_subgraph_centrality_big_graph'
|
# TestKatzCentralityDirectedNumpy fails on git master atm too
|
||||||
|
%pytest -n auto -k 'not test_subgraph_centrality_big_graph and not TestKatzCentralityDirectedNumpy'
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user