2015-09-30 03:51:14 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-jupyter_console
|
|
|
|
#
|
2024-03-08 12:57:11 +00:00
|
|
|
# Copyright (c) 2024 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
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-03-08 12:57:11 +00:00
|
|
|
%define skip_python39 1
|
2015-09-30 03:51:14 +00:00
|
|
|
Name: python-jupyter_console
|
2023-03-19 20:28:10 +00:00
|
|
|
Version: 6.6.3
|
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
|
2022-08-01 18:19:55 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2023-03-19 20:28:10 +00:00
|
|
|
BuildRequires: %{python_module hatchling >= 1.5}
|
|
|
|
BuildRequires: %{python_module pip}
|
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
|
2023-03-19 20:28:10 +00:00
|
|
|
BuildRequires: %{python_module Pygments}
|
2020-05-23 13:41:34 +00:00
|
|
|
BuildRequires: %{python_module flaky}
|
2023-03-19 20:28:10 +00:00
|
|
|
BuildRequires: %{python_module ipykernel >= 6.14}
|
2019-08-11 02:03:59 +00:00
|
|
|
BuildRequires: %{python_module ipython}
|
2022-03-13 07:35:38 +00:00
|
|
|
BuildRequires: %{python_module jupyter-client >= 7}
|
2023-03-19 20:28:10 +00:00
|
|
|
BuildRequires: %{python_module jupyter-core >= 5.1}
|
|
|
|
BuildRequires: %{python_module pexpect}
|
|
|
|
BuildRequires: %{python_module prompt_toolkit >= 3.0.30}
|
2020-09-15 12:01:09 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2023-03-19 20:28:10 +00:00
|
|
|
BuildRequires: %{python_module pyzmq >= 17}
|
|
|
|
BuildRequires: %{python_module traitlets >= 5.4}
|
2019-08-11 02:03:59 +00:00
|
|
|
# /SECTION
|
2020-05-23 13:41:34 +00:00
|
|
|
Requires: jupyter-jupyter_console = %{version}
|
2023-03-19 20:28:10 +00:00
|
|
|
Requires: python-Pygments
|
|
|
|
Requires: python-ipykernel >= 6.14
|
2019-05-17 18:49:13 +00:00
|
|
|
Requires: python-ipython
|
2022-03-13 07:35:38 +00:00
|
|
|
Requires: python-jupyter-client >= 7
|
2023-03-19 20:28:10 +00:00
|
|
|
Requires: python-prompt_toolkit >= 3.0.30
|
|
|
|
Requires: python-pyzmq >= 17
|
|
|
|
Requires: python-traitlets >= 5.4
|
2023-03-19 21:02:29 +00:00
|
|
|
Requires: ((python-jupyter-core >= 4.12 with python-jupyter-core < 5.0) or python-jupyter-core >= 5.1)
|
2021-02-11 11:30:40 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-03-08 12:57:11 +00:00
|
|
|
Requires(postun): update-alternatives
|
2021-02-11 11:30:40 +00:00
|
|
|
Provides: python-jupyter-console = %{version}-%{release}
|
|
|
|
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
|
|
|
|
Provides: jupyter-jupyter_console = %{version}-%{release}
|
|
|
|
Obsoletes: jupyter-jupyter_console < %{version}-%{release}
|
|
|
|
Provides: jupyter-jupyter_console-doc = %{version}-%{release}
|
|
|
|
Obsoletes: jupyter-jupyter_console-doc < %{version}-%{release}
|
|
|
|
%endif
|
2015-09-30 03:51:14 +00:00
|
|
|
BuildArch: noarch
|
2017-05-17 15:12:30 +00:00
|
|
|
%python_subpackages
|
2015-09-30 03:51:14 +00:00
|
|
|
|
|
|
|
%description
|
2021-02-11 11:30:40 +00:00
|
|
|
A terminal-based console frontend for Jupyter kernels.
|
2019-05-17 18:49:13 +00:00
|
|
|
This code is based on the single-process IPython terminal.
|
|
|
|
|
2015-09-30 03:51:14 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n jupyter_console-%{version}
|
|
|
|
|
|
|
|
%build
|
2023-03-19 20:28:10 +00:00
|
|
|
%pyproject_wheel
|
2015-09-30 03:51:14 +00:00
|
|
|
|
|
|
|
%install
|
2023-03-19 20:28:10 +00:00
|
|
|
%pyproject_install
|
2021-02-11 11:30:40 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/jupyter-console
|
2017-05-17 15:12:30 +00:00
|
|
|
%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
|
|
|
|
2021-02-11 11:30:40 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative jupyter-console
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative jupyter-console
|
|
|
|
|
2017-05-17 15:12:30 +00:00
|
|
|
%files %{python_files}
|
2018-10-08 03:52:31 +00:00
|
|
|
%doc CONTRIBUTING.md README.md
|
2022-03-13 07:35:38 +00:00
|
|
|
%license LICENSE
|
2021-02-11 11:30:40 +00:00
|
|
|
%python_alternative %{_bindir}/jupyter-console
|
2020-05-23 13:41:34 +00:00
|
|
|
%{python_sitelib}/jupyter_console
|
2021-02-11 11:30:40 +00:00
|
|
|
%{python_sitelib}/jupyter_console-%{version}*-info
|
2018-10-08 03:52:31 +00:00
|
|
|
|
2015-09-30 03:51:14 +00:00
|
|
|
%changelog
|