!1 fix issue:需要引入软件包python-notebook-shim v0.2.3

From: @zhangchao13 
Reviewed-by: @desert-sailor 
Signed-off-by: @desert-sailor
This commit is contained in:
openeuler-ci-bot 2023-11-21 07:37:25 +00:00 committed by Gitee
commit 4ce3fe1a93
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 51 additions and 0 deletions

BIN
notebook_shim-0.2.3.tar.gz Normal file

Binary file not shown.

51
python-notebook-shim.spec Normal file
View File

@ -0,0 +1,51 @@
Name: python-notebook-shim
Version: 0.2.3
Release: 1
Summary: A shim layer for notebook traits and config
License: BSD-3-Clause
URL: https://pypi.org/project/notebook-shim/
Source: %{pypi_source notebook_shim}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
%global _description %{expand:
This project provides a way for JupyterLab and other frontends
to switch to Jupyter Server for their Python Web application backend.}
%description %_description
%package -n python3-notebook-shim
Summary: %{summary}
Requires: python-jupyter-filesystem
%description -n python3-notebook-shim %_description
%prep
%autosetup -p1 -n notebook_shim-%{version}
sed -i "/pytest-tornasync/d" pyproject.toml
%build
%pyproject_build
%install
%pyproject_install
install -m 0755 -p -d %{buildroot}%{_sysconfdir}/jupyter/jupyter_server_config.d
mv -v %{buildroot}{%{_prefix},}%{_sysconfdir}/jupyter/jupyter_server_config.d/notebook_shim.json
%files -n python3-notebook-shim
%defattr(-,root,root)
%license LICENSE
%{python3_sitelib}/notebook_shim/
%{python3_sitelib}/notebook_shim*.dist-info/
%config(noreplace) %{_sysconfdir}/jupyter/jupyter_server_config.d/notebook_shim.json
%doc README.md
%changelog
* Tue Aug 1 2023 chaozhangm <chaozhangm@isoftstone.com> - 0.2.3-1
- Initial package.