Accepting request 768071 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/768071 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-notebook?expand=0&rev=5
This commit is contained in:
commit
4b055a4191
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:b29c9ab6fda5040419e1741d9302184e3d7e367bb77a6035d977a343f312b492
|
|
||||||
size 1794629
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:cc447d1a23cbcd6b8834f77c4e7050ab8e0437c72f579513e02b1241e3bcc26f
|
|
||||||
size 13544559
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:399a4411e171170173344761e7fd4491a3625659881f76ce47c50231ed714d9b
|
|
||||||
size 14069764
|
|
3
notebook-6.0.3.tar.gz
Normal file
3
notebook-6.0.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:47a9092975c9e7965ada00b9a20f0cf637d001db60d241d479f53c0be117ad48
|
||||||
|
size 14048151
|
@ -1,3 +1,17 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 28 15:20:00 UTC 2020 - Todd R <toddrme2178@gmail.com>
|
||||||
|
|
||||||
|
- Update to 6.0.3
|
||||||
|
* Dependency updates to fix startup issues on Windows platform
|
||||||
|
* Add support for nbconvert 6.x
|
||||||
|
* Creation of recent tab
|
||||||
|
- Use multibuild to separate out tests.
|
||||||
|
The tests have some heavy dependencies the main package doesn't.
|
||||||
|
- Drop documentation.
|
||||||
|
These are mostly a relic of when the tests needed to be in a
|
||||||
|
separate package, and since the docs are no longer versioned
|
||||||
|
upstream keeping them synced with the main package is difficult.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 13 14:42:24 UTC 2019 - Todd R <toddrme2178@gmail.com>
|
Wed Nov 13 14:42:24 UTC 2019 - Todd R <toddrme2178@gmail.com>
|
||||||
|
|
||||||
|
@ -16,27 +16,34 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define doc_ver 5.7.6
|
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-notebook
|
Name: python-notebook%{psuffix}
|
||||||
Version: 6.0.2
|
Version: 6.0.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Jupyter Notebook interface
|
Summary: Jupyter Notebook interface
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/jupyter/notebook
|
URL: https://github.com/jupyter/notebook
|
||||||
Source0: https://files.pythonhosted.org/packages/source/n/notebook/notebook-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/n/notebook/notebook-%{version}.tar.gz
|
||||||
Source1: https://media.readthedocs.org/pdf/jupyter-notebook/%{doc_ver}/jupyter-notebook.pdf
|
|
||||||
Source2: https://media.readthedocs.org/htmlzip/jupyter-notebook/%{doc_ver}/jupyter-notebook.zip
|
|
||||||
Source100: python-notebook-rpmlintrc
|
Source100: python-notebook-rpmlintrc
|
||||||
BuildRequires: %{python_module jupyter-core >= 4.4.0}
|
BuildRequires: %{python_module jupyter-core >= 4.4.0}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
%if !%{with test}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: hicolor-icon-theme
|
BuildRequires: hicolor-icon-theme
|
||||||
BuildRequires: jupyter-notebook-filesystem
|
BuildRequires: jupyter-notebook-filesystem
|
||||||
BuildRequires: python-rpm-macros
|
%endif
|
||||||
BuildRequires: unzip
|
|
||||||
Requires: jupyter-notebook = %{version}
|
Requires: jupyter-notebook = %{version}
|
||||||
Requires: python-Jinja2
|
Requires: python-Jinja2
|
||||||
Requires: python-Send2Trash
|
Requires: python-Send2Trash
|
||||||
@ -56,7 +63,7 @@ Suggests: %{name}-latex
|
|||||||
Provides: python-jupyter_notebook = %{version}
|
Provides: python-jupyter_notebook = %{version}
|
||||||
Obsoletes: python-jupyter_notebook < %{version}
|
Obsoletes: python-jupyter_notebook < %{version}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
%if %{with test}
|
||||||
BuildRequires: %{python_module Jinja2}
|
BuildRequires: %{python_module Jinja2}
|
||||||
BuildRequires: %{python_module attrs >= 17.4.0}
|
BuildRequires: %{python_module attrs >= 17.4.0}
|
||||||
BuildRequires: %{python_module Send2Trash}
|
BuildRequires: %{python_module Send2Trash}
|
||||||
@ -77,7 +84,7 @@ BuildRequires: %{python_module terminado >= 0.8.1}
|
|||||||
BuildRequires: %{python_module tornado >= 5}
|
BuildRequires: %{python_module tornado >= 5}
|
||||||
BuildRequires: %{python_module traitlets >= 4.2.1}
|
BuildRequires: %{python_module traitlets >= 4.2.1}
|
||||||
BuildRequires: pandoc
|
BuildRequires: pandoc
|
||||||
# /SECTION
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -112,6 +119,8 @@ Requires: jupyter-nbformat
|
|||||||
Requires: jupyter-notebook-filesystem
|
Requires: jupyter-notebook-filesystem
|
||||||
Requires: python3-notebook = %{version}
|
Requires: python3-notebook = %{version}
|
||||||
Conflicts: python3-jupyter_notebook < 5.7.8
|
Conflicts: python3-jupyter_notebook < 5.7.8
|
||||||
|
Provides: jupyter-notebook-doc = %{version}
|
||||||
|
Obsoletes: jupyter-notebook-doc < %{version}
|
||||||
|
|
||||||
%description -n jupyter-notebook
|
%description -n jupyter-notebook
|
||||||
The Jupyter HTML notebook is a web-based notebook environment for
|
The Jupyter HTML notebook is a web-based notebook environment for
|
||||||
@ -146,27 +155,14 @@ interactive computing.
|
|||||||
|
|
||||||
This package pulls in the LaTeX dependencies for the Jupyter Notebook.
|
This package pulls in the LaTeX dependencies for the Jupyter Notebook.
|
||||||
|
|
||||||
%package -n jupyter-notebook-doc
|
|
||||||
Summary: Documentation for Jupyter's notebook
|
|
||||||
Group: Documentation/Other
|
|
||||||
Provides: %{python_module jupyter_notebook-doc = %{version}}
|
|
||||||
Provides: %{python_module notebook-doc = %{version}}
|
|
||||||
Obsoletes: %{python_module jupyter_notebook-doc < %{version}}
|
|
||||||
|
|
||||||
%description -n jupyter-notebook-doc
|
|
||||||
Documentation and help files for Jupyter's notebook.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n notebook-%{version}
|
%setup -q -n notebook-%{version}
|
||||||
unzip %{SOURCE2} -d docs
|
|
||||||
mv docs/jupyter-notebook-* docs/html
|
|
||||||
rm docs/html/.buildinfo
|
|
||||||
%fdupes docs/html/
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if !%{with test}
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
@ -178,18 +174,15 @@ for x in 16 24 32 48 64 128 256 512 ; do
|
|||||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${x}x${x}/apps/
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${x}x${x}/apps/
|
||||||
cp docs/resources/ipynb.iconset/icon_${x}x${x}.png %{buildroot}%{_datadir}/icons/hicolor/${x}x${x}/apps/JupyterNotebook.png
|
cp docs/resources/ipynb.iconset/icon_${x}x${x}.png %{buildroot}%{_datadir}/icons/hicolor/${x}x${x}/apps/JupyterNotebook.png
|
||||||
done
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_docdir}/jupyter-notebook/
|
%if %{with test}
|
||||||
|
|
||||||
cp -r %{SOURCE1} %{buildroot}%{_docdir}/jupyter-notebook/
|
|
||||||
cp -r docs/html %{buildroot}%{_docdir}/jupyter-notebook/
|
|
||||||
|
|
||||||
%fdupes %{buildroot}%{_docdir}/jupyter-notebook/html/
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
%python_expand nosetests-%{$python_bin_suffix} -v --exclude-dir notebook/tests/selenium
|
%python_expand nosetests-%{$python_bin_suffix} -v --exclude-dir notebook/tests/selenium
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -215,11 +208,6 @@ export LANG=en_US.UTF-8
|
|||||||
|
|
||||||
%files -n jupyter-notebook-latex
|
%files -n jupyter-notebook-latex
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
%endif
|
||||||
%files -n jupyter-notebook-doc
|
|
||||||
%license LICENSE
|
|
||||||
%dir %{_docdir}/jupyter-notebook/
|
|
||||||
%{_docdir}/jupyter-notebook/jupyter-notebook.pdf
|
|
||||||
%{_docdir}/jupyter-notebook/html/
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user