!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:
commit
4ce3fe1a93
BIN
notebook_shim-0.2.3.tar.gz
Normal file
BIN
notebook_shim-0.2.3.tar.gz
Normal file
Binary file not shown.
51
python-notebook-shim.spec
Normal file
51
python-notebook-shim.spec
Normal 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.
|
||||
Loading…
x
Reference in New Issue
Block a user