Notification time stamped 2021-08-01 07:44:10 UTC
From 417bab94cfc383b65b3bdc0a2fc1fcbe510307fd Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
Date: Aug 01 2021 07:43:55 +0000
Subject: Fix build with Sphinx 4.
---
diff --git a/0001-Fix-build-with-Sphinx-4.patch b/0001-Fix-build-with-Sphinx-4.patch
new file mode 100644
index 0000000..2d6cf40
--- /dev/null
+++ b/0001-Fix-build-with-Sphinx-4.patch
@@ -0,0 +1,35 @@
+From e55a166d6b79796c89d7205929c818b180fe4457 Mon Sep 17 00:00:00 2001
+From: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
+Date: Sun, 1 Aug 2021 03:35:52 -0400
+Subject: [PATCH] Fix build with Sphinx 4.
+
+`add_stylesheet` was deprecated in 1.8 and removed in 4.0 [1]. The
+replacement, `add_css_file` was added in 1.0.
+
+[1]
https://www.sphinx-doc.org/en/master/extdev/deprecated.html?highlight=add...
+
+Signed-off-by: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
+---
+ docs/conf.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/docs/conf.py b/docs/conf.py
+index 8517f3b..f3e2e13 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -144,9 +144,11 @@ html_theme_options = {'logo_only': True}
+ # of the sidebar.
+ html_logo = '_static/logo1.png'
+
++
+ # Add custom css
+ def setup(app):
+- app.add_stylesheet('custom.css')
++ app.add_css_file('custom.css')
++
+
+ # The name of an image file (relative to this directory) to use as a favicon of
+ # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
+--
+2.31.1
+
diff --git a/python-zarr.spec b/python-zarr.spec
index 4ba1eab..eee2d0a 100644
--- a/python-zarr.spec
+++ b/python-zarr.spec
@@ -8,6 +8,8 @@ Summary: Chunked, compressed, N-dimensional arrays for Python
License: MIT
URL:
https://github.com/zarr-developers/zarr
Source0: %{pypi_source}
+#
https://github.com/zarr-developers/zarr-python/pull/799
+Patch0001: 0001-Fix-build-with-Sphinx-4.patch
BuildArch: noarch
@@ -90,6 +92,10 @@ rm -rf html/.{doctrees,buildinfo,_static/donotdelete}
%changelog
+* Sun Aug 01 2021 Elliott Sales de Andrade <quantum.analyst(a)gmail.com> - 2.8.3-3
+- Fix build with Sphinx 4
+- Closes rhbz#1977650
+
* Fri Jul 23 2021 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.8.3-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
https://src.fedoraproject.org/rpms/python-zarr/c/417bab94cfc383b65b3bdc0a...