2019-05-02 20:57:38 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-jupyter-server
|
|
|
|
#
|
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
|
|
|
|
|
|
|
|
%{?!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
|
2019-08-11 06:06:40 +02:00
|
|
|
Version: 0.1.1
|
2019-05-02 20:57:38 +02:00
|
|
|
Release: 0
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Summary: The Jupyter Server
|
|
|
|
Url: https://github.com/jupyter/jupyter_server
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/j/jupyter-server/jupyter_server-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module Jinja2}
|
|
|
|
BuildRequires: %{python_module Send2Trash}
|
|
|
|
BuildRequires: %{python_module coverage}
|
|
|
|
BuildRequires: %{python_module ipykernel}
|
|
|
|
BuildRequires: %{python_module ipython_genutils}
|
2019-11-13 16:40:44 +01:00
|
|
|
BuildRequires: %{python_module jupyter-client >= 5.2.0}
|
|
|
|
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 nbval}
|
|
|
|
BuildRequires: %{python_module nose-exclude}
|
|
|
|
BuildRequires: %{python_module nose_warnings_filters}
|
|
|
|
BuildRequires: %{python_module nose}
|
|
|
|
BuildRequires: %{python_module prometheus_client}
|
|
|
|
BuildRequires: %{python_module pyzmq >= 17}
|
|
|
|
BuildRequires: %{python_module requests}
|
2019-05-24 15:38:35 +02:00
|
|
|
# BuildRequires: %%{python_module selenium}
|
2019-05-02 20:57:38 +02:00
|
|
|
BuildRequires: %{python_module terminado >= 0.8.1}
|
|
|
|
BuildRequires: %{python_module tornado >= 4}
|
|
|
|
BuildRequires: %{python_module traitlets >= 4.2.1}
|
|
|
|
BuildRequires: python-ipaddress
|
|
|
|
BuildRequires: python-mock
|
2019-08-11 06:06:40 +02:00
|
|
|
BuildRequires: pandoc
|
2019-05-02 20:57:38 +02:00
|
|
|
# /SECTION
|
|
|
|
Requires: python-Jinja2
|
|
|
|
Requires: python-Send2Trash
|
|
|
|
Requires: python-ipykernel
|
|
|
|
Requires: python-ipython_genutils
|
2019-11-13 16:40:44 +01:00
|
|
|
Requires: python-jupyter-client >= 5.2.0
|
|
|
|
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
|
|
|
|
Requires: python-terminado >= 0.8.1
|
|
|
|
Requires: python-tornado >= 4
|
|
|
|
Requires: python-traitlets >= 4.2.1
|
|
|
|
Requires: jupyter-jupyter-server = %{version}
|
|
|
|
%ifpython2
|
|
|
|
Requires: python-ipaddress
|
|
|
|
%endif
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
This package provides the python interface.
|
|
|
|
|
|
|
|
%package -n jupyter-jupyter-server
|
|
|
|
Summary: The Jupyter Server
|
|
|
|
Requires: jupyter-ipykernel
|
2019-11-13 16:40:44 +01:00
|
|
|
Requires: jupyter-jupyter-client >= 5.2.0
|
|
|
|
Requires: jupyter-jupyter-core >= 4.4.0
|
2019-05-02 20:57:38 +02:00
|
|
|
Requires: jupyter-nbconvert
|
|
|
|
Requires: jupyter-nbformat
|
|
|
|
Requires: python3-jupyter-server = %{version}
|
|
|
|
|
|
|
|
%description -n jupyter-jupyter-server
|
|
|
|
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.
|
|
|
|
|
|
|
|
This package provides the jupyter components.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n jupyter_server-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2019-05-02 21:10:55 +02:00
|
|
|
# Avoid conflict with jupyter-notebook
|
|
|
|
mv %{buildroot}%{_bindir}/jupyter-bundlerextension %{buildroot}%{_bindir}/jupyter-server-bundlerextension
|
|
|
|
|
2019-05-02 20:57:38 +02:00
|
|
|
%check
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
%python_expand nosetests-%{$python_bin_suffix} -v jupyter_server
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license COPYING.md
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%files -n jupyter-jupyter-server
|
|
|
|
%license COPYING.md
|
|
|
|
%{_bindir}/jupyter-server
|
|
|
|
%{_bindir}/jupyter-extension
|
2019-05-02 21:10:55 +02:00
|
|
|
%{_bindir}/jupyter-server-bundlerextension
|
2019-05-02 20:57:38 +02:00
|
|
|
|
|
|
|
%changelog
|