Hello community,
here is the log from the commit of package python-networkx for openSUSE:Factory
checked in at 2020-10-25 18:09:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-networkx (Old)
and /work/SRC/openSUSE:Factory/.python-networkx.new.3463 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-networkx"
Sun Oct 25 18:09:24 2020 rev:25 rq:839780 version:2.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-networkx/python-networkx.changes
2020-09-14 12:20:47.204698072 +0200
+++
/work/SRC/openSUSE:Factory/.python-networkx.new.3463/python-networkx.changes
2020-10-25 18:09:50.123527865 +0100
@@ -1,0 +2,8 @@
+Tue Oct 6 11:47:47 UTC 2020 - Antonio Larrosa <[email protected]>
+
+- Add patch from upstream that fixes gh#networkx/networkx#4203)
+ * 0001-Replace-hash-function-for-test-of-weighted-astar.patch
+- Drop patch that is not needed anymore:
+ * disable-test-failing-in-i586.patch
+
+-------------------------------------------------------------------
Old:
----
disable-test-failing-in-i586.patch
New:
----
0001-Replace-hash-function-for-test-of-weighted-astar.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-networkx.spec ++++++
--- /var/tmp/diff_new_pack.BHbrjC/_old 2020-10-25 18:09:52.571530182 +0100
+++ /var/tmp/diff_new_pack.BHbrjC/_new 2020-10-25 18:09:52.575530186 +0100
@@ -25,7 +25,7 @@
License: BSD-3-Clause
URL: https://networkx.github.io/
Source:
https://files.pythonhosted.org/packages/source/n/networkx/networkx-%{version}.tar.gz
-Patch0: disable-test-failing-in-i586.patch
+Patch0: 0001-Replace-hash-function-for-test-of-weighted-astar.patch
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module decorator >= 3.4.0}
BuildRequires: %{python_module matplotlib >= 3.1}
++++++ 0001-Replace-hash-function-for-test-of-weighted-astar.patch ++++++
>From 7e4ddaa2e1745cdb3ed9969680d755ce81ddcdfd Mon Sep 17 00:00:00 2001
From: Ross Barnowski <[email protected]>
Date: Mon, 5 Oct 2020 13:36:55 -0700
Subject: [PATCH] TST: Modify heuristic for astar path test.
Replace hash() with a sum-of-squares heuristic in
test_weight_functions so that the heuristic is not
platform-dependent.
---
networkx/algorithms/shortest_paths/tests/test_weighted.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/networkx/algorithms/shortest_paths/tests/test_weighted.py
b/networkx/algorithms/shortest_paths/tests/test_weighted.py
index b234618c4c..a4ba92c023 100644
--- a/networkx/algorithms/shortest_paths/tests/test_weighted.py
+++ b/networkx/algorithms/shortest_paths/tests/test_weighted.py
@@ -198,7 +198,7 @@ def test_bidirectional_dijkstra(self):
def test_weight_functions(self):
def heuristic(*z):
- return hash(z)
+ return sum(val ** 2 for val in z)
def getpath(pred, v, s):
return [v] if v == s else getpath(pred, pred[v], s) + [v]