2019-05-02 20:57:38 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-jupyter-server
|
|
|
|
#
|
2021-02-03 13:38:07 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2019-05-02 20:57:38 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-02-10 19:51:58 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2019-05-02 20:57:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-11-13 16:40:44 +01:00
|
|
|
%define skip_python2 1
|
2019-05-02 20:57:38 +02:00
|
|
|
Name: python-jupyter-server
|
2021-02-25 22:07:39 +01:00
|
|
|
Version: 1.4.1
|
2019-05-02 20:57:38 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: The Jupyter Server
|
2020-02-10 19:51:58 +01:00
|
|
|
License: BSD-3-Clause
|
2019-05-02 20:57:38 +02:00
|
|
|
Group: Development/Languages/Python
|
2020-02-10 19:51:58 +01:00
|
|
|
URL: https://github.com/jupyter/jupyter_server
|
|
|
|
Source: https://github.com/jupyter/jupyter_server/archive/%{version}.tar.gz#/jupyter_server-%{version}.tar.gz
|
2019-05-02 20:57:38 +02:00
|
|
|
BuildRequires: %{python_module Jinja2}
|
|
|
|
BuildRequires: %{python_module Send2Trash}
|
2021-02-03 13:38:07 +01:00
|
|
|
BuildRequires: %{python_module anyio >= 2.0.2}
|
2019-05-02 20:57:38 +02:00
|
|
|
BuildRequires: %{python_module ipython_genutils}
|
2021-02-03 13:38:07 +01:00
|
|
|
BuildRequires: %{python_module jupyter-client >= 6.1.1}
|
2019-11-13 16:40:44 +01:00
|
|
|
BuildRequires: %{python_module jupyter-core >= 4.4.0}
|
2019-05-02 20:57:38 +02:00
|
|
|
BuildRequires: %{python_module nbconvert}
|
|
|
|
BuildRequires: %{python_module nbformat}
|
|
|
|
BuildRequires: %{python_module prometheus_client}
|
|
|
|
BuildRequires: %{python_module pyzmq >= 17}
|
2021-02-03 13:38:07 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module terminado >= 0.8.3}
|
|
|
|
BuildRequires: %{python_module tornado >= 6.1}
|
2019-05-02 20:57:38 +02:00
|
|
|
BuildRequires: %{python_module traitlets >= 4.2.1}
|
2021-02-15 14:00:49 +01:00
|
|
|
# We need the full stdlib
|
|
|
|
BuildRequires: %{pythons}
|
2021-02-03 13:38:07 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-05-02 20:57:38 +02:00
|
|
|
Requires: python-Jinja2
|
|
|
|
Requires: python-Send2Trash
|
2021-02-03 13:38:07 +01:00
|
|
|
Requires: python-anyio
|
2019-05-02 20:57:38 +02:00
|
|
|
Requires: python-ipython_genutils
|
2021-02-03 13:38:07 +01:00
|
|
|
Requires: python-jupyter-client >= 6.1.1
|
2019-11-13 16:40:44 +01:00
|
|
|
Requires: python-jupyter-core >= 4.4.0
|
2019-05-02 20:57:38 +02:00
|
|
|
Requires: python-nbconvert
|
|
|
|
Requires: python-nbformat
|
|
|
|
Requires: python-prometheus_client
|
|
|
|
Requires: python-pyzmq >= 17
|
2021-02-03 13:38:07 +01:00
|
|
|
Requires: python-terminado >= 0.8.3
|
|
|
|
Requires: python-tornado >= 6.1
|
2019-05-02 20:57:38 +02:00
|
|
|
Requires: python-traitlets >= 4.2.1
|
2021-02-03 13:38:07 +01:00
|
|
|
Requires(post): update-alternatives
|
2021-02-25 22:07:39 +01:00
|
|
|
Requires(postun):update-alternatives
|
2021-02-15 14:00:49 +01:00
|
|
|
Provides: python-jupyter_server = %{version}-%{release}
|
|
|
|
Obsoletes: python-jupyter_server < %{version}-%{release}
|
2021-02-03 13:38:07 +01:00
|
|
|
# SECTION extras_require test
|
|
|
|
BuildRequires: %{python_module ipykernel}
|
|
|
|
BuildRequires: %{python_module pytest-console-scripts}
|
|
|
|
BuildRequires: %{python_module pytest-tornasync}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module requests}
|
|
|
|
# /SECTION
|
|
|
|
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
|
|
|
|
Provides: jupyter-jupyter-server = %{version}-%{release}
|
|
|
|
Obsoletes: jupyter-jupyter-server < %{version}-%{release}
|
2019-05-02 20:57:38 +02:00
|
|
|
BuildArch: noarch
|
2021-02-03 13:38:07 +01:00
|
|
|
%endif
|
2019-05-02 20:57:38 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Jupyter Server is a web application that allows you to create and
|
|
|
|
share documents that contain live code, equations, visualizations, and
|
|
|
|
explanatory text. The Notebook has support for multiple programming
|
|
|
|
languages, sharing, and interactive widgets.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n jupyter_server-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2021-02-03 13:38:07 +01:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/jupyter-server
|
2019-05-02 20:57:38 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2021-02-03 13:38:07 +01:00
|
|
|
%{python_expand # provide u-a entrypoints in the correct flavor version -- installed packages and jupyter-server
|
|
|
|
mkdir build/testbin
|
|
|
|
for bin in %{_bindir}/*-%{$python_bin_suffix} %{buildroot}%{_bindir}/*-%{$python_bin_suffix} ; do
|
|
|
|
# four percent into 1 by rpm/python expansions
|
|
|
|
ln -s ${bin} build/testbin/$(basename ${bin%%%%-%{$python_bin_suffix}})
|
|
|
|
done
|
|
|
|
}
|
2019-05-02 20:57:38 +02:00
|
|
|
export LANG=en_US.UTF-8
|
2021-02-03 13:38:07 +01:00
|
|
|
export PATH=$PWD/build/testbin:$PATH
|
2021-02-25 22:07:39 +01:00
|
|
|
%pytest
|
2019-05-02 20:57:38 +02:00
|
|
|
|
2021-02-03 13:38:07 +01:00
|
|
|
%post
|
|
|
|
%python_install_alternative jupyter-server
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative jupyter-server
|
|
|
|
|
2019-05-02 20:57:38 +02:00
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license COPYING.md
|
2021-02-03 13:38:07 +01:00
|
|
|
%python_alternative %{_bindir}/jupyter-server
|
|
|
|
%{python_sitelib}/jupyter_server
|
|
|
|
%{python_sitelib}/jupyter_server-%{version}*-info
|
2019-05-02 20:57:38 +02:00
|
|
|
|
|
|
|
%changelog
|