From fab3fcceafbdab4b901ff6b984777b5aabe718fe24bc7d99bd72816bc407d8c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 3 Feb 2021 12:35:36 +0000 Subject: [PATCH] Accepting request 868762 from home:bnavigator:branches:devel:languages:python:jupyter required by jupyterlab 3 OBS-URL: https://build.opensuse.org/request/show/868762 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbclassic?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + nbclassic-0.2.6-gh.tar.gz | 3 ++ python-nbclassic.changes | 5 ++ python-nbclassic.spec | 98 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 130 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 nbclassic-0.2.6-gh.tar.gz create mode 100644 python-nbclassic.changes create mode 100644 python-nbclassic.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/nbclassic-0.2.6-gh.tar.gz b/nbclassic-0.2.6-gh.tar.gz new file mode 100644 index 0000000..94c9371 --- /dev/null +++ b/nbclassic-0.2.6-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a1c7c0f63a3d2c8d58ba64fdadc7ffcfd24d70c91e320856bc031c50c4d0da4 +size 24186 diff --git a/python-nbclassic.changes b/python-nbclassic.changes new file mode 100644 index 0000000..74db6fc --- /dev/null +++ b/python-nbclassic.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Feb 2 21:09:01 UTC 2021 - Ben Greiner + +- initial specfile for 0.2.6 +- required by jupyterlab 3 diff --git a/python-nbclassic.spec b/python-nbclassic.spec new file mode 100644 index 0000000..6775ae6 --- /dev/null +++ b/python-nbclassic.spec @@ -0,0 +1,98 @@ +# +# spec file for package python-nbclassic +# +# Copyright (c) 2021 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-nbclassic +Version: 0.2.6 +Release: 0 +Summary: Jupyter Notebook as a Jupyter Server Extension +License: BSD-3-Clause +URL: https://github.com/jupyterlab/nbclassic +# The github archive has the tests +Source: https://github.com/jupyterlab/nbclassic/archive/%{version}.tar.gz#/nbclassic-%{version}-gh.tar.gz +BuildRequires: %{python_module jupyter_server >= 1.1} +BuildRequires: %{python_module notebook} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: jupyter-nbclassic = %{version} +Requires: python-jupyter_server >= 1.1 +Requires: python-notebook +# SECTION test requirements +BuildRequires: %{python_module pytest-console-scripts} +BuildRequires: %{python_module pytest-tornasync} +BuildRequires: %{python_module pytest} +# /SECION +BuildArch: noarch +%python_subpackages + +%description +NBClassic runs the Jupyter Notebook frontend on the Jupyter Server backend. + +This project prepares for a future where JupyterLab and other frontends switch +to Jupyter Server for their Python Web application backend. Using this package, +users can launch Jupyter Notebook, JupyterLab and other frontends side-by-side +on top of the new Python server backend. + +%package -n jupyter-nbclassic +Summary: Jupyter Notebook as a Jupyter Server Extension + +%description -n jupyter-nbclassic +NBClassic runs the Jupyter Notebook frontend on the Jupyter Server backend. + +This project prepares for a future where JupyterLab and other frontends switch +to Jupyter Server for their Python Web application backend. Using this package, +users can launch Jupyter Notebook, JupyterLab and other frontends side-by-side +on top of the new Python server backend. + +This package contains the jupyterlab server configuration file + +%prep +%setup -q -n nbclassic-%{version} + +%build +%python_build + +%install +%python_install +install -m 644 -D -t %{buildroot}%{_jupyter_server_confdir} jupyter_server_config.d/* +%python_clone -a %{buildroot}%{_bindir}/jupyter-nbclassic +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative jupyter-nbclassic + +%postun +%python_uninstall_alternative jupyter-nbclassic + +%check +# suppress color output +rm setup.cfg +%pytest -s + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/jupyter-nbclassic +%{python_sitelib}/ + +%files -n jupyter-nbclassic +%license LICENSE +%config %{_jupyter_server_confdir}/nbclassic.json + +%changelog