Accepting request 1031321 from devel:languages:python:jupyter

- Update to v0.2
  * raise ceiling on jupyter_server dependency to < 3 #12
  * remove dev version #15
  * switch to hatch build backend #14
- Remove jupyter subpackage: no config installed anymore

OBS-URL: https://build.opensuse.org/request/show/1031321
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-notebook-shim?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2022-10-26 12:25:54 +00:00 committed by Git OBS Bridge
commit a3d7413234
4 changed files with 20 additions and 25 deletions

View File

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

View File

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

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Oct 26 11:19:48 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to v0.2
* raise ceiling on jupyter_server dependency to < 3 #12
* remove dev version #15
* switch to hatch build backend #14
- Remove jupyter subpackage: no config installed anymore
-------------------------------------------------------------------
Sun Jun 5 17:26:42 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@ -17,22 +17,21 @@
Name: python-notebook-shim
Version: 0.1.0
Version: 0.2.0
Release: 0
Summary: A shim layer for notebook traits and config
License: BSD-3-Clause
URL: https://github.com/jupyterlab/notebook_shim
Source: https://files.pythonhosted.org/packages/source/n/notebook_shim/notebook_shim-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module hatchling >= 1.0}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: jupyter-rpm-macros
BuildRequires: python-rpm-macros
Requires: (python-jupyter_server >= 1.8 with python-jupyter_server < 2)
Requires: jupyter-notebook-shim = %{version}
Requires: (python-jupyter_server >= 1.8 with python-jupyter_server < 3)
Provides: python-notebook_shim = %{version}-%{release}
BuildArch: noarch
BuildRequires: %{python_module jupyter_server >= 1.8 with %python-jupyter_server < 2}
BuildRequires: %{python_module jupyter_server >= 1.8 with %python-jupyter_server < 3}
BuildRequires: %{python_module pytest-console-scripts}
BuildRequires: %{python_module pytest-tornasync}
BuildRequires: %{python_module pytest}
@ -42,28 +41,18 @@ BuildRequires: %{python_module pytest}
This project provides a way for JupyterLab and other frontends to switch to
Jupyter Server for their Python Web application backend.
%package -n jupyter-notebook-shim
Summary: The configuration file for python-notebook-shim
Provides: juypter-notebook_shim = %{version}-%{release}
%description -n jupyter-notebook-shim
This project provides a way for JupyterLab and other frontends to switch to
Jupyter Server for their Python Web application backend. Common configuration
file
%prep
%setup -q -n notebook_shim-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# gh#jupyter/notebook_shim#8
#pytest notebook_shim
%pytest notebook_shim
%files %{python_files}
%license LICENSE
@ -71,7 +60,4 @@ file
%{python_sitelib}/notebook_shim
%{python_sitelib}/notebook_shim-%{version}*-info
%files -n jupyter-notebook-shim
%_jupyter_config %{_jupyter_server_confdir}/notebook_shim.json
%changelog