Blame python-nbsphinx.spec

90a0512
Name:           python-nbsphinx
8c71e6e
Version:        0.8.9
30c528d
Release:        4%{?dist}
aaa3d13
Summary:        Jupyter Notebook Tools for Sphinx
aaa3d13
aaa3d13
License:        MIT
aaa3d13
URL:            http://nbsphinx.rtfd.io/
90a0512
Source0:        %{pypi_source nbsphinx}
2d96b3f
Patch0:         allow-errors-in-notebooks-with-external-images.patch
8c71e6e
# Ensure smooth PDF LaTeX builds with Sphinx 5.1.0+
8c71e6e
Patch1:         https://github.com/spatialaudio/nbsphinx/pull/657.patch
aaa3d13
BuildArch:      noarch
aaa3d13
aaa3d13
BuildRequires:  python3-devel
aaa3d13
BuildRequires:  python3-setuptools
aaa3d13
BuildRequires:  python3-ipykernel
aaa3d13
BuildRequires:  python3-ipython-sphinx
aaa3d13
BuildRequires:  python3-jupyter-client
aaa3d13
BuildRequires:  python3-nbconvert
aaa3d13
BuildRequires:  python3-sphinx
7c2bdd5
BuildRequires:  python3-sphinxcontrib-bibtex
9d1f208
BuildRequires:  python3-sphinx-copybutton
9d1f208
BuildRequires:  python3-sphinxcontrib-rsvgconverter
9d1f208
BuildRequires:  python3-sphinx-gallery
9d1f208
BuildRequires:  python3-sphinx-last-updated-by-git
90a0512
BuildRequires:  git-core
aaa3d13
BuildRequires:  pandoc
aaa3d13
aaa3d13
%description
aaa3d13
nbsphinx is a Sphinx extension that provides a source parser for *.ipynb
aaa3d13
files. Custom Sphinx directives are used to show Jupyter Notebook code cells
aaa3d13
(and of course their results) in both HTML and LaTeX output. Unevaluated
aaa3d13
notebooks, i.e. notebooks without stored output cells, will be automatically
aaa3d13
executed during the Sphinx build process.
aaa3d13
90a0512
%package -n     python3-nbsphinx
aaa3d13
Summary:        %{summary}
2b5e1e6
90a0512
%description -n python3-nbsphinx
aaa3d13
nbsphinx is a Sphinx extension that provides a source parser for *.ipynb
aaa3d13
files. Custom Sphinx directives are used to show Jupyter Notebook code cells
aaa3d13
(and of course their results) in both HTML and LaTeX output. Unevaluated
aaa3d13
notebooks, i.e. notebooks without stored output cells, will be automatically
aaa3d13
executed during the Sphinx build process.
aaa3d13
90a0512
%package -n python-nbsphinx-doc
aaa3d13
Summary:        nbsphinx documentation
90a0512
%description -n python-nbsphinx-doc
aaa3d13
Documentation for nbsphinx
aaa3d13
aaa3d13
%prep
90a0512
%autosetup -n nbsphinx-%{version} -S git
2d96b3f
# Disables custom formatter not available in Fedora.
2d96b3f
# The result is that pages:
2d96b3f
# https://nbsphinx.readthedocs.io/en/0.8.6/a-markdown-file.html
2d96b3f
# https://nbsphinx.readthedocs.io/en/0.8.6/custom-formats.html
2d96b3f
# are not available.
2d96b3f
# TODO: package jupytext
2d96b3f
sed -i "/\['jupytext.reads', {'fmt'/d" doc/conf.py
8c71e6e
# Delete the Sphinx extension we don't have packaged in Fedora
8c71e6e
# This extension links the code examples to their respective documentation,
8c71e6e
# its absence doesn't break the nbsphinx' docs
8c71e6e
sed -i "/'sphinx_codeautolink',  # automatic links from code to documentation/d" doc/conf.py
acfe3ac
aaa3d13
%build
aaa3d13
%py3_build
aaa3d13
# fake the git tag for docs to put the right version in
aaa3d13
git tag %{version}
aaa3d13
# generate html docs 
7c2bdd5
PYTHONPATH=build/lib sphinx-build-3 doc html
aaa3d13
# remove the sphinx-build leftovers
aaa3d13
rm -rf html/{.doctrees,.buildinfo,conf.py}
aaa3d13
aaa3d13
%install
aaa3d13
%py3_install
aaa3d13
aaa3d13
90a0512
%files -n python3-nbsphinx
aaa3d13
%license LICENSE
aaa3d13
%doc README.rst
90a0512
%pycached %{python3_sitelib}/nbsphinx.py
90a0512
%{python3_sitelib}/nbsphinx-%{version}-py%{python3_version}.egg-info/
aaa3d13
90a0512
%files -n python-nbsphinx-doc
aaa3d13
%license LICENSE
aaa3d13
%doc html 
aaa3d13
aaa3d13
%changelog
30c528d
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-4
30c528d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
30c528d
19e3488
* Mon Jul 03 2023 Python Maint <python-maint@redhat.com> - 0.8.9-3
19e3488
- Rebuilt for Python 3.12
19e3488
878be75
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-2
878be75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
878be75
8c71e6e
* Mon Aug 22 2022 Karolina Surma <ksurma@redhat.com> - 0.8.9-1
8c71e6e
- Update to 0.8.9
8c71e6e
- Fixes: rhbz#2036366
8c71e6e
61ab33f
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-4
61ab33f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
61ab33f
a848f35
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 0.8.7-3
a848f35
- Rebuilt for Python 3.11
a848f35
50a6a1b
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-2
50a6a1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
50a6a1b
1d551eb
* Wed Aug 11 2021 Tomas Hrnciar <thrnciar@redhat.com> - 0.8.7-1
1d551eb
- Update to 0.8.7
1d551eb
- Fixes: rhbz#1992161
1d551eb
3b51fd0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.6-2
3b51fd0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
3b51fd0
2d96b3f
* Tue Jun 29 2021 Lumír Balhar <lbalhar@redhat.com> - 0.8.6-1
2d96b3f
- Update to 0.8.6
2d96b3f
Resolves: rhbz#1955189
2d96b3f
a8f78f5
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.8.3-2
a8f78f5
- Rebuilt for Python 3.10
a8f78f5
c4f8050
* Thu Apr 15 2021 Karolina Surma <ksurma@redhat.com> - 0.8.3-1
c4f8050
- New upstream release 0.8.3
c4f8050
Resolves rhbz#1933493
c4f8050
90a0512
* Fri Jan 29 2021 Miro Hrončok <mhroncok@redhat.com> - 0.8.1-1
90a0512
- Update to 0.8.1
90a0512
- Fixes: rhbz#1889672
90a0512
ffbd7bf
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-3
ffbd7bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
ffbd7bf
35a4e4a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-2
35a4e4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
35a4e4a
5cb4928
* Wed Jul 01 2020 Charalampos Stratakis <cstratak@redhat.com> - 0.7.1-1
5cb4928
- Update to 0.7.1 (#1847639)
5cb4928
9d1f208
* Thu Jun 04 2020 Charalampos Stratakis <cstratak@redhat.com> - 0.7.0-1
9d1f208
- Update to 0.7.0 (#1757082)
9d1f208
b204beb
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.2-7
b204beb
- Rebuilt for Python 3.9
b204beb
15f8a2e
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-6
15f8a2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
15f8a2e
731a60b
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.2-5
731a60b
- Rebuilt for Python 3.8.0rc1 (#1748018)
731a60b
4bd1dd6
* Sun Aug 18 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.2-4
4bd1dd6
- Rebuilt for Python 3.8
4bd1dd6
650f124
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-3
650f124
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
650f124
2b5e1e6
* Thu Feb 28 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.2-2
2b5e1e6
- Explicitly require nbconvert
2b5e1e6
7c2bdd5
* Wed Feb 27 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.2-1
7c2bdd5
- Update to 0.4.2 (#1680237)
7c2bdd5
70f6307
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.17-5
70f6307
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
70f6307
08c59a8
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.17-4
08c59a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
08c59a8
2229020
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.17-3
2229020
- Rebuilt for Python 3.7
2229020
b005149
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.17-2
b005149
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b005149
da56388
* Tue Nov 28 2017 Lumír Balhar <lbalhar@redhat.com> - 0.2.17-1
da56388
- New upstream version
da56388
- Fix FTBFS
da56388
4e289e3
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.13-2
4e289e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4e289e3
aaa3d13
* Tue Apr 04 2017 Miro Hrončok <mhroncok@redhat.com> - 0.2.13-1
aaa3d13
- Initial package