2015-09-30 03:51:14 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-jupyter_console
|
|
|
|
#
|
2020-05-23 13:41:34 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2015-09-30 03:51:14 +00: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.
|
|
|
|
|
2018-10-16 01:58:00 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-09-30 03:51:14 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-05-17 15:12:30 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2018-10-16 01:58:00 +00:00
|
|
|
%define skip_python2 1
|
2015-09-30 03:51:14 +00:00
|
|
|
Name: python-jupyter_console
|
2020-01-28 16:09:43 +00:00
|
|
|
Version: 6.1.0
|
2015-09-30 03:51:14 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Jupyter terminal console
|
|
|
|
License: BSD-3-Clause
|
2020-05-23 13:41:34 +00:00
|
|
|
URL: https://github.com/jupyter/jupyter_console
|
2018-10-08 03:52:31 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/j/jupyter_console/jupyter_console-%{version}.tar.gz
|
2020-09-15 12:01:09 +00:00
|
|
|
# https://github.com/jupyter/jupyter_console/pull/230
|
|
|
|
Patch0: python-jupyter_console-remove-nose.patch
|
2017-05-17 15:12:30 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-10-08 03:52:31 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-08-11 02:03:59 +00:00
|
|
|
# SECTION test requirements
|
2020-05-23 13:41:34 +00:00
|
|
|
BuildRequires: %{python_module Pillow}
|
|
|
|
BuildRequires: %{python_module flaky}
|
2019-08-11 02:03:59 +00:00
|
|
|
BuildRequires: %{python_module ipykernel}
|
|
|
|
BuildRequires: %{python_module ipython}
|
2020-05-23 13:41:34 +00:00
|
|
|
BuildRequires: %{python_module jupyter-client}
|
2019-08-11 02:03:59 +00:00
|
|
|
BuildRequires: %{python_module prompt_toolkit >= 2}
|
2020-09-15 12:01:09 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-08-11 02:03:59 +00:00
|
|
|
BuildRequires: %{python_module pyzmq}
|
|
|
|
# /SECTION
|
2020-05-23 13:41:34 +00:00
|
|
|
Requires: jupyter-jupyter_console = %{version}
|
2019-05-17 18:49:13 +00:00
|
|
|
Requires: python-ipykernel
|
|
|
|
Requires: python-ipython
|
2020-05-23 13:41:34 +00:00
|
|
|
Requires: python-jupyter-client
|
2018-10-16 01:58:00 +00:00
|
|
|
Requires: python-prompt_toolkit >= 2
|
2019-08-11 02:03:59 +00:00
|
|
|
Requires: python-pyzmq
|
2015-09-30 03:51:14 +00:00
|
|
|
BuildArch: noarch
|
2018-10-08 03:52:31 +00:00
|
|
|
|
2017-05-17 15:12:30 +00:00
|
|
|
%python_subpackages
|
2015-09-30 03:51:14 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A terminal-based console frontend for Jupter kernels.
|
|
|
|
This code is based on the single-process IPython terminal.
|
|
|
|
|
2019-05-17 18:49:13 +00:00
|
|
|
This package provides the python components.
|
|
|
|
|
|
|
|
%package -n jupyter-jupyter_console
|
|
|
|
Summary: Jupyter terminal console
|
|
|
|
Requires: python3-jupyter_console = %{version}
|
2020-01-28 16:09:43 +00:00
|
|
|
Provides: jupyter-jupyter_console-doc = %{version}
|
|
|
|
Obsoletes: jupyter-jupyter_console-doc < %{version}
|
2019-05-17 18:49:13 +00:00
|
|
|
|
|
|
|
%description -n jupyter-jupyter_console
|
|
|
|
A terminal-based console frontend for Jupter kernels.
|
|
|
|
This code is based on the single-process IPython terminal.
|
|
|
|
|
|
|
|
This package provides the jupyter components.
|
|
|
|
|
2015-09-30 03:51:14 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n jupyter_console-%{version}
|
2020-09-15 12:01:09 +00:00
|
|
|
%patch0 -p1
|
2015-09-30 03:51:14 +00:00
|
|
|
|
|
|
|
%build
|
2017-05-17 15:12:30 +00:00
|
|
|
%python_build
|
2015-09-30 03:51:14 +00:00
|
|
|
|
|
|
|
%install
|
2017-05-17 15:12:30 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2015-09-30 03:51:14 +00:00
|
|
|
|
2019-08-11 02:03:59 +00:00
|
|
|
%check
|
2020-10-03 06:08:12 +00:00
|
|
|
%pytest -s --force-flaky --max-runs=10
|
2018-10-08 03:52:31 +00:00
|
|
|
|
2017-05-17 15:12:30 +00:00
|
|
|
%files %{python_files}
|
2018-10-08 03:52:31 +00:00
|
|
|
%doc CONTRIBUTING.md README.md
|
|
|
|
%license COPYING.md
|
2020-05-23 13:41:34 +00:00
|
|
|
%{python_sitelib}/jupyter_console
|
|
|
|
%{python_sitelib}/jupyter_console-%{version}-*.egg-info
|
2015-09-30 03:51:14 +00:00
|
|
|
|
2019-05-17 18:49:13 +00:00
|
|
|
%files -n jupyter-jupyter_console
|
|
|
|
%license COPYING.md
|
2018-10-08 03:52:31 +00:00
|
|
|
|
2015-09-30 03:51:14 +00:00
|
|
|
%changelog
|