Hello community,
here is the log from the commit of package python-networkx for openSUSE:Factory
checked in at 2020-04-19 21:48:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-networkx (Old)
and /work/SRC/openSUSE:Factory/.python-networkx.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-networkx"
Sun Apr 19 21:48:39 2020 rev:20 rq:790492 version:2.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-networkx/python-networkx.changes
2019-11-25 11:23:20.858115996 +0100
+++
/work/SRC/openSUSE:Factory/.python-networkx.new.2738/python-networkx.changes
2020-04-19 21:48:41.947987994 +0200
@@ -1,0 +2,7 @@
+Wed Apr 1 08:38:55 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Add patch to fix matplotlib deprecation:
+ * matplotlib.patch
+- Skip two tests that keep failing everywhere
+
+-------------------------------------------------------------------
New:
----
matplotlib.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-networkx.spec ++++++
--- /var/tmp/diff_new_pack.s9L9JA/_old 2020-04-19 21:48:42.667989439 +0200
+++ /var/tmp/diff_new_pack.s9L9JA/_new 2020-04-19 21:48:42.671989447 +0200
@@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,16 +23,17 @@
Release: 0
Summary: Python package for the study of complex networks
License: BSD-3-Clause
-Group: Development/Languages/Python
URL: https://networkx.github.io/
Source:
https://files.pythonhosted.org/packages/source/n/networkx/networkx-%{version}.tar.gz
# UPSTREAM PATCH: gh#networkx/networkx#3724
Patch0: numpy-38-test.patch
+Patch1: matplotlib.patch
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module decorator >= 3.4.0}
-BuildRequires: %{python_module matplotlib}
+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}
@@ -41,7 +42,7 @@
BuildRequires: unzip
Requires: python-decorator >= 3.4.0
Recommends: python-PyYAML
-Recommends: python-matplotlib
+Recommends: python-matplotlib >= 3.1
Recommends: python-pydot
Recommends: python-pygraphviz
Recommends: python-pyparsing
@@ -63,7 +64,6 @@
%package -n %{name}-doc
Summary: Documentation for %{name}
-Group: Documentation/Other
Provides: %{python_module networkx-doc = %{version}}
%description -n %{name}-doc
@@ -102,7 +102,8 @@
%check
# 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}
%license LICENSE.txt
++++++ matplotlib.patch ++++++
>From 3987370c957de15249809672933dc06c2fed6fc1 Mon Sep 17 00:00:00 2001
From: Jarrod Millman <[email protected]>
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)