1
0

Accepting request 1187199 from home:bnavigator:branches:devel:languages:python:jupyter

- Update to 7.2.1
  * Remove pseudoelement obstructing the cell collapser #7392
    (@krassowski)
- Release 7.2
  * Jupyter Notebook 7.2 is based on JupyterLab 4.2, and includes a
    number of new features, bug fixes, and enhancements for
    extension developers. This release is compatible with
    extensions supporting JupyterLab 4.0. Extension authors are
    recommended to consult the Extension Migration Guide which
    lists deprecations and changes to the public API.
  * Full notebook windowing mode by default
  * Improved Shortcuts Editor
  * Dark high contrast theme

OBS-URL: https://build.opensuse.org/request/show/1187199
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-notebook?expand=0&rev=82
This commit is contained in:
Benjamin Greiner 2024-07-12 15:59:57 +00:00 committed by Git OBS Bridge
commit 627cb2b805
8 changed files with 1359 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

3
notebook-7.1.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:efc2c80043909e0faa17fce9e9b37c059c03af0ec99a4d4db84cb21d9d2e936a
size 4897634

3
notebook-7.2.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4287b6da59740b32173d01d641f763d292f49c30e7a51b89c46ba8473126341e
size 4946671

View File

@ -0,0 +1,2 @@
# jupyter-notebook requires python3-notebook which provides one of the alternatives
addFilter("desktopfile-without-binary .*jupyter-notebook")

1152
python-notebook.changes Normal file

File diff suppressed because it is too large Load Diff

172
python-notebook.spec Normal file
View File

@ -0,0 +1,172 @@
#
# spec file for package python-notebook
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
BuildArch: noarch
%endif
%define skip_python39 1
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
Name: python-notebook%{psuffix}
Version: 7.2.1
Release: 0
Summary: Jupyter Notebook interface
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/jupyter/notebook
Source0: https://files.pythonhosted.org/packages/source/n/notebook/notebook-%{version}.tar.gz
Source100: python-notebook-rpmlintrc
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module hatch-jupyter-builder >= 0.2}
BuildRequires: %{python_module hatchling >= 1.11}
BuildRequires: %{python_module jupyterlab >= 4.2 with %python-jupyterlab < 4.3}
BuildRequires: %{python_module pip}
BuildRequires: python-rpm-macros >= 20210929
Requires: jupyter-notebook = %{version}
Requires: python-tornado >= 6.2
Requires: (python-jupyter-server >= 2.4 with python-jupyter-server < 3)
Requires: (python-jupyterlab >= 4.2 with python-jupyterlab < 4.3)
Requires: (python-jupyterlab-server >= 2.27.1 with python-jupyterlab-server < 3)
Requires: (python-notebook-shim >= 0.2 with python-notebook-shim < 0.3)
Provides: python-jupyter_notebook = %{version}-%{release}
Obsoletes: python-jupyter_notebook < %{version}-%{release}
%if !%{with test}
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: jupyter-notebook-filesystem
BuildRequires: update-desktop-files
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
%endif
%if %{with test}
BuildRequires: %{python_module importlib_resources >= 5 if %python-base < 3.10}
BuildRequires: %{python_module ipykernel}
BuildRequires: %{python_module jupyter-server-test >= 2.4.0 with %python-jupyter-server-test < 3}
BuildRequires: %{python_module jupyterlab-server-test >= 2.27.1 with %python-jupyterlab-server-test < 3}
BuildRequires: %{python_module nbval}
BuildRequires: %{python_module notebook = %{version}}
BuildRequires: %{python_module pytest >= 7.0}
BuildRequires: %{python_module pytest-console-scripts}
BuildRequires: %{python_module pytest-timeout}
BuildRequires: %{python_module pytest-tornasync}
BuildRequires: %{python_module requests}
%endif
%python_subpackages
%description
The Jupyter HTML notebook is a web-based notebook environment for
interactive computing.
This package provides the python interface.
%package -n jupyter-notebook
Summary: Jupyter Notebook interface
Group: Development/Languages/Python
Requires: python3dist(notebook) = %{version}
Suggests: python3-notebook = %{version}
Conflicts: python3-jupyter_notebook < 5.7.8
Provides: jupyter-notebook-doc = %{version}
Obsoletes: jupyter-notebook-doc < %{version}
%description -n jupyter-notebook
The Jupyter HTML notebook is a web-based notebook environment for
interactive computing.
This package provides the jupyter components.
%prep
%autosetup -p1 -n notebook-%{version}
# We don't want to run selenium tests
rm -rf notebook/tests/selenium
sed -i 's/"--color=yes", //' pyproject.toml
%build
%if !%{with test}
%pyproject_wheel
%endif
%install
%if !%{with test}
%pyproject_install
rm %{buildroot}%{_jupyter_lab_dir}/schemas/@jupyter-notebook/*/package.json.orig
rm %{buildroot}%{_jupyter_labextensions_dir3}/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/package.json.orig
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/jupyter-notebook
%python_group_libalternatives jupyter-notebook
%suse_update_desktop_file jupyter-notebook
%endif
%if %{with test}
%check
export LANG=en_US.UTF-8
# test_launch_socket_collision: fails because there are still servers listening
pythonall_donttest="test_launch_socket_collision"
%{python_expand # these tests call the wrong interpreter somewhere deep in the stack
if [ "$python_" != "python3_" -a "%{$python_provides}" != "python3" ]; then
python_$python_donttest+=" or (test_kernels_api and (test_connection or test_culling))"
fi
}
%pytest -v -k "not (${pythonall_donttest} ${python_$python_donttest})"
%endif
%if !%{with test}
%pre
# If libalternatives is used: Removing old update-alternatives entries.
%python_libalternatives_reset_alternative jupyter-notebook
%post
%python_install_alternative jupyter-notebook
%postun
%python_uninstall_alternative jupyter-notebook
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/jupyter-notebook
%{python_sitelib}/notebook-%{version}.dist-info
%{python_sitelib}/notebook/
%files -n jupyter-notebook
%license LICENSE
%{_datadir}/icons/hicolor/scalable/apps/notebook.svg
%{_datadir}/applications/jupyter-notebook.desktop
%dir %{_jupyter_lab_dir}/schemas
%{_jupyter_lab_dir}/schemas/@jupyter-notebook
%{_jupyter_labextensions_dir3}/@jupyter-notebook
%{_jupyter_config} %{_jupyter_server_confdir}/notebook.json
%endif
%changelog