Compare commits
@@ -0,0 +1,26 @@
|
|||||||
|
From 00f39d74f8788ad5aa0dbfe34e7b66b38d0c63d1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||||
|
Date: Mon, 8 May 2023 00:05:59 -0400
|
||||||
|
Subject: [PATCH] Fix doc build with Sphinx 6
|
||||||
|
|
||||||
|
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||||
|
---
|
||||||
|
doc/source/conf.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/doc/source/conf.py b/doc/source/conf.py
|
||||||
|
index 7efdfd8..ab40673 100644
|
||||||
|
--- a/doc/source/conf.py
|
||||||
|
+++ b/doc/source/conf.py
|
||||||
|
@@ -226,7 +226,7 @@ latex_documents = [
|
||||||
|
# If false, no module index is generated.
|
||||||
|
# latex_use_modindex = True
|
||||||
|
|
||||||
|
-extlinks = {"issue": ("https://github.com/pydata/bottleneck/issues/%s", "#")}
|
||||||
|
+extlinks = {"issue": ("https://github.com/pydata/bottleneck/issues/%s", "#%s")}
|
||||||
|
intersphinx_mapping = {
|
||||||
|
"numpy": ("https://docs.scipy.org/doc/numpy/", None),
|
||||||
|
"numpydoc": ("https://numpydoc.readthedocs.io/en/latest/", None),
|
||||||
|
--
|
||||||
|
2.40.0
|
||||||
|
|
||||||
+114
-56
@@ -1,13 +1,17 @@
|
|||||||
%global upname Bottleneck
|
%global upname Bottleneck
|
||||||
|
|
||||||
Name: python-%{upname}
|
Name: python-%{upname}
|
||||||
Version: 1.2.1
|
Version: 1.3.7
|
||||||
Release: 1%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Collection of fast NumPy array functions written in Cython
|
Summary: Collection of fast NumPy array functions written in Cython
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://berkeleyanalytics.com/bottleneck
|
URL: https://pypi.org/project/Bottleneck/
|
||||||
Source0: https://files.pythonhosted.org/packages/source/B/%{upname}/%{upname}-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/B/%{upname}/%{upname}-%{version}.tar.gz
|
||||||
|
# https://github.com/pydata/bottleneck/pull/432
|
||||||
|
Patch0001: 0001-Fix-doc-build-with-Sphinx-6.patch
|
||||||
|
|
||||||
|
BuildRequires: gcc
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{name} is a collection of fast NumPy array functions
|
%{name} is a collection of fast NumPy array functions
|
||||||
@@ -23,39 +27,21 @@ BuildArch: noarch
|
|||||||
This package contains the HTML-docs for %{name}.
|
This package contains the HTML-docs for %{name}.
|
||||||
|
|
||||||
|
|
||||||
%package -n python2-%{upname}
|
|
||||||
Summary: Collection of fast NumPy array functions written in Cython
|
|
||||||
|
|
||||||
BuildRequires: numpy
|
|
||||||
BuildRequires: python-nose
|
|
||||||
BuildRequires: python-setuptools
|
|
||||||
BuildRequires: python-sphinx
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: scipy
|
|
||||||
|
|
||||||
Requires: numpy%{?_isa}
|
|
||||||
Requires: scipy%{?_isa}
|
|
||||||
|
|
||||||
%{?python_provide:%python_provide python2-%{upname}}
|
|
||||||
|
|
||||||
%description -n python2-%{upname}
|
|
||||||
python2-%{upname} is a collection of fast NumPy array functions
|
|
||||||
written in Cython.
|
|
||||||
|
|
||||||
|
|
||||||
%package -n python3-%{upname}
|
%package -n python3-%{upname}
|
||||||
Summary: Collection of fast NumPy array functions written in Cython
|
Summary: Collection of fast NumPy array functions written in Cython
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-nose
|
BuildRequires: python3-pytest
|
||||||
BuildRequires: python3-numpy
|
BuildRequires: python3-numpy
|
||||||
|
BuildRequires: python3-numpydoc
|
||||||
BuildRequires: python3-scipy
|
BuildRequires: python3-scipy
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-sphinx
|
||||||
|
|
||||||
Requires: python3-numpy%{?_isa}
|
Requires: python3-numpy%{?_isa}
|
||||||
Requires: python3-scipy%{?_isa}
|
Requires: python3-scipy%{?_isa}
|
||||||
|
|
||||||
%{?python_provide:%python_provide python2-%{upname}}
|
%{?python_provide:%python_provide python3-%{upname}}
|
||||||
|
|
||||||
%description -n python3-%{upname}
|
%description -n python3-%{upname}
|
||||||
python3-%{upname} is a collection of fast NumPy array functions
|
python3-%{upname} is a collection of fast NumPy array functions
|
||||||
@@ -64,69 +50,141 @@ written in Cython.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{upname}-%{version} -p 1
|
%autosetup -n %{upname}-%{version} -p 1
|
||||||
%{__rm} -fr .egg* *.egg*
|
rm -fr .egg* *.egg*
|
||||||
|
|
||||||
|
# use numpydoc from the package instead
|
||||||
|
rm -f doc/sphinxext/numpydoc.py*
|
||||||
|
|
||||||
|
# Python 2 remark
|
||||||
|
sed -i 's/fid = file(/fid = open(/' doc/source/conf.py
|
||||||
|
|
||||||
|
# Remove the contributors extensions which can't work because we don't
|
||||||
|
# have a repo anyway.
|
||||||
|
sed -i /contributors/d doc/source/conf.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
# clean unneeded stuff
|
# clean unneeded stuff
|
||||||
%{__rm} -rf %{buildroot}%{python2_sitearch}/bottleneck/src \
|
rm -rf %{buildroot}%{python3_sitearch}/bottleneck/LICENSE
|
||||||
%{buildroot}%{python2_sitearch}/bottleneck/LICENSE \
|
|
||||||
%{buildroot}%{python3_sitearch}/bottleneck/src \
|
|
||||||
%{buildroot}%{python3_sitearch}/bottleneck/LICENSE
|
|
||||||
|
|
||||||
%{_fixperms} %{buildroot}/*
|
%{_fixperms} %{buildroot}/*
|
||||||
|
|
||||||
# Move installed files to temporary location.
|
|
||||||
%{__mkdir} -p tmp_inst
|
|
||||||
%{__cp} -fpr %{buildroot}/* tmp_inst
|
|
||||||
|
|
||||||
# Build the autodocs.
|
# Build the autodocs.
|
||||||
export PYTHONPATH="$(/bin/pwd)/tmp_inst/%{python2_sitearch}"
|
export PYTHONPATH="%{buildroot}%{python3_sitearch}"
|
||||||
%{__mkdir} -p doc/source/_static
|
export READTHEDOCS=1
|
||||||
%{_bindir}/sphinx-build -b html doc/source doc/html
|
sphinx-build -b html doc/source doc/html
|
||||||
unset PYTHONPATH
|
|
||||||
|
|
||||||
# Clean unneeded stuff from docs.
|
# Clean unneeded stuff from docs.
|
||||||
%{__rm} -rf doc/html/{.buildinfo,.doctrees}
|
rm -rf doc/html/{.buildinfo,.doctrees}
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
pushd tmp_inst/%{python2_sitearch}
|
pushd %{buildroot}%{python3_sitearch}
|
||||||
%{_bindir}/nosetests-%{python2_version} -vv
|
pytest-%{python3_version} bottleneck -v
|
||||||
popd
|
popd
|
||||||
pushd tmp_inst/%{python3_sitearch}
|
rm -rf %{buildroot}%{python3_sitearch}/.pytest_cache
|
||||||
%{_bindir}/nosetests-%{python3_version} -vv
|
|
||||||
popd
|
|
||||||
|
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%license bottleneck/LICENSE
|
%license LICENSE
|
||||||
%doc README* RELEASE* doc/html
|
%doc README* RELEASE* doc/html
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-%{upname}
|
|
||||||
%license bottleneck/LICENSE
|
|
||||||
%doc README* RELEASE*
|
|
||||||
%{python2_sitearch}/bottleneck
|
|
||||||
%{python2_sitearch}/%{upname}-%{version}-py%{python2_version}.egg-info
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-%{upname}
|
%files -n python3-%{upname}
|
||||||
%license bottleneck/LICENSE
|
%license LICENSE
|
||||||
%doc README* RELEASE*
|
%doc README* RELEASE*
|
||||||
%{python3_sitearch}/bottleneck
|
%{python3_sitearch}/bottleneck
|
||||||
%{python3_sitearch}/%{upname}-%{version}-py%{python3_version}.egg-info
|
%{python3_sitearch}/%{upname}-%{version}-py%{python3_version}.egg-info
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.7-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jun 28 2023 Python Maint <python-maint@redhat.com> - 1.3.7-2
|
||||||
|
- Rebuilt for Python 3.12
|
||||||
|
|
||||||
|
* Tue Apr 04 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.3.7-1
|
||||||
|
- Update to 1.3.7
|
||||||
|
Fixes: rhbz#2056294
|
||||||
|
Fixes: rhbz#2137289
|
||||||
|
|
||||||
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 1.3.2-4
|
||||||
|
- Rebuilt for Python 3.11
|
||||||
|
|
||||||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jun 17 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.2-1
|
||||||
|
- Update to latest version (#1768152)
|
||||||
|
|
||||||
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.2.1-18
|
||||||
|
- Rebuilt for Python 3.10
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-17
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-16
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-15
|
||||||
|
- Rebuilt for Python 3.9
|
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-14
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Oct 4 2019 Orion Poplawski <orion@nwra.com> - 1.2.1-13
|
||||||
|
- Fix URL
|
||||||
|
|
||||||
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-12
|
||||||
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||||
|
|
||||||
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-11
|
||||||
|
- Rebuilt for Python 3.8
|
||||||
|
|
||||||
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-10
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jun 28 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-9
|
||||||
|
- Subpackage python2-Bottleneck has been removed
|
||||||
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||||
|
|
||||||
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-6
|
||||||
|
- Rebuilt for Python 3.7
|
||||||
|
- Use numpydoc from our package to fix FTBFS (#1594555)
|
||||||
|
|
||||||
|
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.1-5
|
||||||
|
- Update Python 2 dependency declarations to new packaging standards
|
||||||
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
||||||
|
|
||||||
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
* Tue May 16 2017 Björn Esser <besser82@fedoraproject.org> - 1.2.1-1
|
* Tue May 16 2017 Björn Esser <besser82@fedoraproject.org> - 1.2.1-1
|
||||||
- Updated to new upstream release (rhbz#1451146)
|
- Updated to new upstream release (rhbz#1451146)
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
SHA512 (Bottleneck-1.2.1.tar.gz) = c766999cd1501b9f1dee0177b631ece12824d1f95c33077705f6387c911df583c3556ea22b208e455567f75e6e12e29b95855a6aea316bd1d6113bf47a04cf5a
|
SHA512 (Bottleneck-1.3.7.tar.gz) = ffeacb13e5a99db85e1580b9f2ead98239b4fd0b253a3c242a5507a026b439b9927ea49becec7e4d2d8f8e4ced15f43514c0af99379389db141ae50c4513e011
|
||||||
|
|||||||
Reference in New Issue
Block a user