Version 2.6.2. Drop upstreamed -pyyaml patch.
This commit is contained in:
parent
2b55a6f91c
commit
78039581c7
@ -1,10 +1,10 @@
|
|||||||
--- doc/conf.py.orig 2020-08-22 14:01:28.000000000 -0600
|
--- doc/conf.py.orig 2021-07-08 10:53:35.000000000 -0600
|
||||||
+++ doc/conf.py 2020-08-22 20:32:12.490706081 -0600
|
+++ doc/conf.py 2021-07-13 10:11:17.843998401 -0600
|
||||||
@@ -49,6 +49,7 @@ sphinx_gallery_conf = {
|
@@ -50,6 +50,7 @@ sphinx_gallery_conf = {
|
||||||
# path where to save gallery generated examples
|
|
||||||
"gallery_dirs": "auto_examples",
|
"gallery_dirs": "auto_examples",
|
||||||
"backreferences_dir": "modules/generated",
|
"backreferences_dir": "modules/generated",
|
||||||
+ 'expected_failing_examples': ['../examples/graph/plot_football.py']
|
"image_scrapers": ("matplotlib",),
|
||||||
|
+ "expected_failing_examples": ["../examples/geospatial/plot_delaunay.py", "../examples/geospatial/plot_lines.py", "../examples/geospatial/plot_osmnx.py", "../examples/geospatial/plot_points.py", "../examples/graph/plot_football.py"]
|
||||||
}
|
}
|
||||||
|
# Add pygraphviz png scraper, if available
|
||||||
# generate autosummary pages
|
try:
|
||||||
|
|||||||
@ -1,9 +0,0 @@
|
|||||||
--- networkx/readwrite/nx_yaml.py.orig 2020-08-22 14:01:28.000000000 -0600
|
|
||||||
+++ networkx/readwrite/nx_yaml.py 2021-01-26 10:02:43.555537204 -0700
|
|
||||||
@@ -88,5 +88,5 @@ def read_yaml(path):
|
|
||||||
except ImportError as e:
|
|
||||||
raise ImportError("read_yaml() requires PyYAML: http://pyyaml.org/") from e
|
|
||||||
|
|
||||||
- G = yaml.load(path, Loader=yaml.FullLoader)
|
|
||||||
+ G = yaml.load(path, Loader=yaml.Loader)
|
|
||||||
return G
|
|
||||||
@ -1,45 +1,55 @@
|
|||||||
%global srcname networkx
|
%global srcname networkx
|
||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 2.5.1
|
Version: 2.6.2
|
||||||
Release: 4%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Creates and Manipulates Graphs and Networks
|
Summary: Creates and Manipulates Graphs and Networks
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://networkx.github.io/
|
URL: http://networkx.github.io/
|
||||||
Source0: https://github.com/networkx/networkx/archive/%{srcname}-%{version}.tar.gz
|
Source0: https://github.com/networkx/networkx/archive/%{srcname}-%{version}.tar.gz
|
||||||
# The football example requires network access, so expect it to fail.
|
# Some examples cannot be executed, so expect them to fail.
|
||||||
|
# Examples that require network access:
|
||||||
|
# - football
|
||||||
|
# - plot_delaunay (via contextily)
|
||||||
|
# - plot_points (via contextily)
|
||||||
|
# Examples that require packages not available from Fedora:
|
||||||
|
# - osmnx requires osmnx
|
||||||
|
# - plot_lines requires momepy
|
||||||
Patch0: %{name}-doc.patch
|
Patch0: %{name}-doc.patch
|
||||||
# PyYAML 5.4+ breaks reading yaml files
|
|
||||||
# https://github.com/networkx/networkx/commit/a6dd458a12ad8db161271e2271644803d4f29a96
|
|
||||||
Patch1: %{name}-pyyaml.patch
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: %{py3_dist matplotlib}
|
||||||
|
BuildRequires: %{py3_dist numpy}
|
||||||
|
BuildRequires: %{py3_dist pandas}
|
||||||
|
BuildRequires: %{py3_dist scipy}
|
||||||
BuildRequires: %{py3_dist setuptools}
|
BuildRequires: %{py3_dist setuptools}
|
||||||
|
|
||||||
%if 0%{?rhel} == 0
|
%if 0%{?rhel} == 0
|
||||||
|
BuildRequires: python-pygraphviz-doc
|
||||||
BuildRequires: python3-docs
|
BuildRequires: python3-docs
|
||||||
BuildRequires: python3-numpy-doc
|
BuildRequires: python3-numpy-doc
|
||||||
BuildRequires: %{py3_dist decorator}
|
BuildRequires: %{py3_dist cairocffi}
|
||||||
|
BuildRequires: %{py3_dist contextily}
|
||||||
BuildRequires: %{py3_dist gdal}
|
BuildRequires: %{py3_dist gdal}
|
||||||
|
BuildRequires: %{py3_dist geopandas}
|
||||||
|
BuildRequires: %{py3_dist libpysal}
|
||||||
BuildRequires: %{py3_dist lxml}
|
BuildRequires: %{py3_dist lxml}
|
||||||
BuildRequires: %{py3_dist matplotlib}
|
|
||||||
BuildRequires: %{py3_dist nb2plots}
|
BuildRequires: %{py3_dist nb2plots}
|
||||||
BuildRequires: %{py3_dist numpy}
|
|
||||||
BuildRequires: %{py3_dist numpydoc}
|
BuildRequires: %{py3_dist numpydoc}
|
||||||
BuildRequires: %{py3_dist pandas}
|
|
||||||
BuildRequires: %{py3_dist pillow}
|
BuildRequires: %{py3_dist pillow}
|
||||||
|
BuildRequires: %{py3_dist pydata-sphinx-theme}
|
||||||
BuildRequires: %{py3_dist pydot}
|
BuildRequires: %{py3_dist pydot}
|
||||||
BuildRequires: %{py3_dist pygraphviz}
|
BuildRequires: %{py3_dist pygraphviz}
|
||||||
BuildRequires: %{py3_dist pytest}
|
BuildRequires: %{py3_dist pytest}
|
||||||
BuildRequires: %{py3_dist pytest-cov}
|
BuildRequires: %{py3_dist pytest-cov}
|
||||||
BuildRequires: %{py3_dist pyyaml}
|
BuildRequires: %{py3_dist python-igraph}
|
||||||
BuildRequires: %{py3_dist scipy}
|
BuildRequires: %{py3_dist rtree}
|
||||||
|
BuildRequires: %{py3_dist seaborn}
|
||||||
BuildRequires: %{py3_dist sphinx}
|
BuildRequires: %{py3_dist sphinx}
|
||||||
BuildRequires: %{py3_dist sphinx-gallery}
|
BuildRequires: %{py3_dist sphinx-gallery}
|
||||||
BuildRequires: %{py3_dist sphinx-rtd-theme}
|
|
||||||
BuildRequires: %{py3_dist texext}
|
BuildRequires: %{py3_dist texext}
|
||||||
BuildRequires: xdg-utils
|
BuildRequires: xdg-utils
|
||||||
|
|
||||||
@ -56,15 +66,9 @@ study of the structure, dynamics, and functions of complex networks.
|
|||||||
Summary: Creates and Manipulates Graphs and Networks
|
Summary: Creates and Manipulates Graphs and Networks
|
||||||
Recommends: %{py3_dist gdal}
|
Recommends: %{py3_dist gdal}
|
||||||
Recommends: %{py3_dist lxml}
|
Recommends: %{py3_dist lxml}
|
||||||
Recommends: %{py3_dist matplotlib}
|
|
||||||
Recommends: %{py3_dist numpy}
|
|
||||||
Recommends: %{py3_dist pandas}
|
|
||||||
Recommends: %{py3_dist pillow}
|
Recommends: %{py3_dist pillow}
|
||||||
Recommends: %{py3_dist pydot}
|
Recommends: %{py3_dist pydot}
|
||||||
Recommends: %{py3_dist pygraphviz}
|
Recommends: %{py3_dist pygraphviz}
|
||||||
Recommends: %{py3_dist pyparsing}
|
|
||||||
Recommends: %{py3_dist pyyaml}
|
|
||||||
Recommends: %{py3_dist scipy}
|
|
||||||
Recommends: xdg-utils
|
Recommends: xdg-utils
|
||||||
|
|
||||||
# This can be removed when Fedora 30 reaches EOL
|
# This can be removed when Fedora 30 reaches EOL
|
||||||
@ -78,9 +82,7 @@ study of the structure, dynamics, and functions of complex networks.
|
|||||||
%if 0%{?rhel} == 0
|
%if 0%{?rhel} == 0
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for networkx
|
Summary: Documentation for networkx
|
||||||
Requires: font(fontawesome)
|
Requires: fontawesome5-fonts-all
|
||||||
Requires: font(lato)
|
|
||||||
Requires: font(robotoslab)
|
|
||||||
Provides: bundled(jquery)
|
Provides: bundled(jquery)
|
||||||
Provides: bundled(js-underscore)
|
Provides: bundled(js-underscore)
|
||||||
|
|
||||||
@ -101,15 +103,11 @@ for f in $(grep -FRl %{_bindir}/env .); do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Use local objects.inv for intersphinx
|
# Use local objects.inv for intersphinx
|
||||||
sed -e 's|\("https://docs\.python\.org/3/": \)None|\1"%{_docdir}/python3-docs/html/objects.inv"|' \
|
sed -e 's|\("https://docs\.python\.org/3/", \)None|\1"%{_docdir}/python3-docs/html/objects.inv"|' \
|
||||||
-e 's|\("https://numpy\.org/doc/stable/": \)None|\1"%{_docdir}/python3-numpy-doc/objects.inv"|' \
|
-e 's|\("https://numpy\.org/doc/stable/", \)None|\1"%{_docdir}/python3-numpy-doc/objects.inv"|' \
|
||||||
|
-e 's|\("https://pygraphviz.github.io/documentation/stable/", \)None|\1"%{_docdir}/python-pygraphviz/html/objects.inv"|' \
|
||||||
-i doc/conf.py
|
-i doc/conf.py
|
||||||
|
|
||||||
# Decorator >= 5.0.7 is okay to use. See:
|
|
||||||
# https://github.com/networkx/networkx/issues/4718
|
|
||||||
# https://github.com/networkx/networkx/commit/01d9cfe028e82ce7f2f7fd378ffe6e43ba2fddbb
|
|
||||||
sed -i 's/decorator>=4\.3,<5/decorator>=5.0.7/' requirements/default.txt setup.py
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
@ -138,7 +136,7 @@ done
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%if 0%{?rhel} == 0
|
%if 0%{?rhel} == 0
|
||||||
pytest
|
%pytest
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n python3-networkx
|
%files -n python3-networkx
|
||||||
@ -154,6 +152,10 @@ pytest
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 25 2021 Jerry James <loganjerry@gmail.com> - 2.6.2-1
|
||||||
|
- Version 2.6.2
|
||||||
|
- Drop upstreamed -pyyaml patch
|
||||||
|
|
||||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-4
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user