From aa4e222643cf1deb8f80c081308a38f0c5eb3232 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Sun, 23 Aug 2020 10:16:20 -0600 Subject: [PATCH] Expect the football example to fail. --- python-networkx-doc.patch | 10 ++++++++++ python-networkx.spec | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 python-networkx-doc.patch diff --git a/python-networkx-doc.patch b/python-networkx-doc.patch new file mode 100644 index 0000000..f02ba05 --- /dev/null +++ b/python-networkx-doc.patch @@ -0,0 +1,10 @@ +--- doc/conf.py.orig 2020-08-22 14:01:28.000000000 -0600 ++++ doc/conf.py 2020-08-22 20:32:12.490706081 -0600 +@@ -49,6 +49,7 @@ sphinx_gallery_conf = { + # path where to save gallery generated examples + "gallery_dirs": "auto_examples", + "backreferences_dir": "modules/generated", ++ 'expected_failing_examples': ['../examples/graph/plot_football.py'] + } + + # generate autosummary pages diff --git a/python-networkx.spec b/python-networkx.spec index e41a5fd..b9fd917 100644 --- a/python-networkx.spec +++ b/python-networkx.spec @@ -7,6 +7,8 @@ Summary: Creates and Manipulates Graphs and Networks License: BSD URL: http://networkx.github.io/ Source0: https://github.com/networkx/networkx/archive/%{srcname}-%{version}.tar.gz +# The football example requires network access, so expect it to fail. +Patch0: %{name}-doc.patch BuildArch: noarch @@ -151,7 +153,7 @@ pytest %changelog * Sat Aug 22 2020 Jerry James - 2.5-1 - Version 2.5 -- All patches have been upstreamed; drop them all +- All patches except -doc have been upstreamed; drop them * Sat Aug 01 2020 Fedora Release Engineering - 2.4-6 - Second attempt - Rebuilt for