From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/networkx/files/networkx-2.4-py38.patch | 84 +++++++++++++++++++++++ dev-python/networkx/files/networkx-2.4-py39.patch | 46 +++++++++++++ 2 files changed, 130 insertions(+) create mode 100644 dev-python/networkx/files/networkx-2.4-py38.patch create mode 100644 dev-python/networkx/files/networkx-2.4-py39.patch (limited to 'dev-python/networkx/files') diff --git a/dev-python/networkx/files/networkx-2.4-py38.patch b/dev-python/networkx/files/networkx-2.4-py38.patch new file mode 100644 index 000000000000..9ce3003d1042 --- /dev/null +++ b/dev-python/networkx/files/networkx-2.4-py38.patch @@ -0,0 +1,84 @@ +From 488e824439124f4dd52f8230c452a3df681b1bab Mon Sep 17 00:00:00 2001 +From: Steve Kowalik +Date: Fri, 15 Nov 2019 13:48:33 +1100 +Subject: [PATCH] Fix test_numpy_type to pass under Python 3.8 + +readwrite.tests.test_gexf.TestGEXF.test_numpy_type failed under Python +3.8 due to ordering of XML attributes, handle it as per f75dbe8. Also +change travis to no longer allow failures under 3.8. + +Fixes #3720 +--- + .travis.yml | 2 -- + networkx/readwrite/tests/test_gexf.py | 51 ++++++++++++++++++++++++++- + 2 files changed, 50 insertions(+), 3 deletions(-) + +diff --git a/networkx/readwrite/tests/test_gexf.py b/networkx/readwrite/tests/test_gexf.py +index afc40111ce..f16504c047 100644 +--- a/networkx/readwrite/tests/test_gexf.py ++++ b/networkx/readwrite/tests/test_gexf.py +@@ -404,7 +404,8 @@ def test_numpy_type(self): + nx.set_node_attributes(G, {n: n for n in numpy.arange(4)}, 'number') + G[0][1]['edge-number'] = numpy.float64(1.1) + +- expected = """ + +@@ -449,6 +450,54 @@ def test_numpy_type(self): + + + ++""".format(time.strftime('%Y-%m-%d'), nx.__version__) ++ else: ++ expected = """ ++ ++ NetworkX {} ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + """.format(time.strftime('%Y-%m-%d'), nx.__version__) + obtained = '\n'.join(nx.generate_gexf(G)) + assert expected == obtained diff --git a/dev-python/networkx/files/networkx-2.4-py39.patch b/dev-python/networkx/files/networkx-2.4-py39.patch new file mode 100644 index 000000000000..7efe8998b35f --- /dev/null +++ b/dev-python/networkx/files/networkx-2.4-py39.patch @@ -0,0 +1,46 @@ +From 0cb12b33df48788c10fa21b326803ae66d74cbe6 Mon Sep 17 00:00:00 2001 +From: Jarrod Millman +Date: Mon, 21 Oct 2019 00:56:04 -0700 +Subject: [PATCH] Remove unused imports + +--- + .travis.yml | 3 --- + networkx/algorithms/assortativity/connectivity.py | 2 -- + networkx/algorithms/assortativity/correlation.py | 13 ++++++------- + networkx/algorithms/assortativity/mixing.py | 1 - + .../algorithms/assortativity/neighbor_degree.py | 1 - + networkx/algorithms/assortativity/pairs.py | 1 - + networkx/algorithms/cluster.py | 1 - + networkx/algorithms/community/modularity_max.py | 1 - + networkx/algorithms/components/biconnected.py | 1 - + networkx/algorithms/isolate.py | 1 - + networkx/algorithms/isomorphism/isomorphvf2.py | 1 - + networkx/algorithms/traversal/beamsearch.py | 1 - + networkx/classes/graph.py | 2 +- + networkx/classes/reportviews.py | 1 - + networkx/conftest.py | 8 ++++++-- + networkx/linalg/attrmatrix.py | 1 - + networkx/readwrite/gexf.py | 11 ++--------- + networkx/readwrite/gpickle.py | 1 - + networkx/readwrite/graphml.py | 11 ++--------- + networkx/readwrite/nx_yaml.py | 1 - + networkx/readwrite/tests/test_graphml.py | 4 ++-- + tools/travis/script.sh | 2 +- + 22 files changed, 20 insertions(+), 49 deletions(-) + +diff --git a/networkx/readwrite/tests/test_graphml.py b/networkx/readwrite/tests/test_graphml.py +index 00b97d77..1946c487 100644 +--- a/networkx/readwrite/tests/test_graphml.py ++++ b/networkx/readwrite/tests/test_graphml.py +@@ -879,7 +879,7 @@ class TestWriteGraphML(BaseGraphML): + + xml = parse(fh) + # Children are the key elements, and the graph element +- children = xml.getroot().getchildren() ++ children = list(xml.getroot()) + assert len(children) == 3 + + keys = [child.items() for child in children[:2]] +-- +2.27.0 + -- cgit v1.3.1