Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
python-qtconsole
python-qtconsole.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-qtconsole.spec of Package python-qtconsole
# # spec file for package python-qtconsole # # 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/ # %if 0%{?suse_version} > 1500 %bcond_without libalternatives %else %bcond_with libalternatives %endif %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-qtconsole Version: 5.2.1 Release: 0 Summary: Jupyter Qt console License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/jupyter/qtconsole Source0: https://files.pythonhosted.org/packages/source/q/qtconsole/qtconsole-%{version}.tar.gz Source100: python-qtconsole-rpmlintrc BuildRequires: %{python_module jupyter-core} BuildRequires: %{python_module setuptools} BuildRequires: desktop-file-utils BuildRequires: fdupes BuildRequires: gdb BuildRequires: hicolor-icon-theme BuildRequires: python-rpm-macros BuildRequires: unzip BuildRequires: update-desktop-files Requires: jupyter-qtconsole = %{version} Requires: python-Pygments Requires: python-QtPy Requires: python-ipykernel >= 4.1 Requires: python-ipython_genutils Requires: python-jupyter-client >= 4.1 Requires: python-jupyter-core Requires: python-traitlets # QtPy does note require or depend on one of the frameworks itself Requires: (python-qt5 or python-pyside2) %if %{with libalternatives} Requires: alts BuildRequires: alts %else Requires(post): update-alternatives Requires(postun):update-alternatives %endif Provides: python-jupyter_qtconsole = %{version} Obsoletes: python-jupyter_qtconsole < %{version} BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module Pygments} BuildRequires: %{python_module QtPy} BuildRequires: %{python_module flaky} BuildRequires: %{python_module ipykernel >= 4.1} BuildRequires: %{python_module ipython_genutils} BuildRequires: %{python_module jupyter-client >= 4.1} BuildRequires: %{python_module pytest-qt} BuildRequires: %{python_module pytest} BuildRequires: %{python_module qt5} BuildRequires: %{python_module traitlets} # /SECTION %python_subpackages %description A rich Qt-based console for working with Jupyter kernels, supporting rich media output, session export, and more. This package provides the python components. %package -n jupyter-qtconsole Summary: Jupyter Qt console Group: Development/Languages/Python Requires: jupyter-ipykernel >= 4.1 Requires: jupyter-jupyter-client >= 4.1 Requires: jupyter-jupyter-core Requires: python3-jupyter-core Requires: python3-qtconsole = %{version} Conflicts: python3-jupyter_qtconsole < 4.4.4 Provides: jupyter-qtconsole-doc = %{version} Obsoletes: jupyter-qtconsole-doc < %{version} Provides: %{python_module jupyter_qtconsole-doc = %{version}} Provides: %{python_module qtconsole-doc = %{version}} Provides: python-qtconsole-doc = %{version} Obsoletes: %{python_module jupyter_qtconsole-doc < %{version}} %description -n jupyter-qtconsole A rich Qt-based console for working with Jupyter kernels, supporting rich media output, session export, and more. This package provides the jupyter components. %prep %setup -q -n qtconsole-%{version} %build %python_build %install export LANG=en_US.UTF-8 %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} # Install icon mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/ cp qtconsole/resources/icon/JupyterConsole.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/JupyterQtConsole.svg # Modify and install .desktop file pushd examples desktop-file-edit --set-icon="JupyterQtConsole" jupyter-qtconsole.desktop %suse_update_desktop_file -i -r jupyter-qtconsole "System;TerminalEmulator;" popd %python_clone -a %{buildroot}%{_bindir}/jupyter-qtconsole %check export QT_QPA_PLATFORM="offscreen" # test skips: https://github.com/jupyter/qtconsole/issues/443 # now with test_input too. But does not seem to happen on the build server, only locally. %pytest -ra -k "not (test_00 and (test_scroll or test_debug or test_input))" %pre %python_libalternatives_reset_alternative jupyter-qtconsole %post %python_install_alternative jupyter-qtconsole %postun %python_uninstall_alternative jupyter-qtconsole %files %{python_files} %license LICENSE %python_alternative %{_bindir}/jupyter-qtconsole %{python_sitelib}/qtconsole-%{version}-py*.egg-info %{python_sitelib}/qtconsole/ %files -n jupyter-qtconsole %license LICENSE %{_datadir}/applications/jupyter-qtconsole.desktop %{_datadir}/icons/hicolor/scalable/apps/JupyterQtConsole.svg %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor