forked from pool/python-qtconsole
- Test with xvfb display
- Remove skip of previously segfaulting tests - Allow PyQt6 and Pyside6 as backend - Add missing pyzmq requirement (was already transitive) - Remove obsolete jupyter package, provide desktop files and icon for every flavor OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-qtconsole?expand=0&rev=48
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
# Note: this is provided by the python3-jupyter-core dependency
|
|
||||||
addFilter("desktopfile-without-binary .*/jupyter-qtconsole.desktop jupyter")
|
|
@@ -3,6 +3,12 @@ Sun Aug 28 21:57:03 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
|||||||
|
|
||||||
- Update to version 5.3.2
|
- Update to version 5.3.2
|
||||||
* Fix syntax highlighting with multiline inputs.
|
* Fix syntax highlighting with multiline inputs.
|
||||||
|
- Test with xvfb display
|
||||||
|
- Remove skip of previously segfaulting tests
|
||||||
|
- Allow PyQt6 and Pyside6 as backend
|
||||||
|
- Add missing pyzmq requirement (was already transitive)
|
||||||
|
- Remove obsolete jupyter package, provide desktop files and icon
|
||||||
|
for every flavor
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jun 22 13:36:44 UTC 2022 - Arun Persaud <arun@gmx.de>
|
Wed Jun 22 13:36:44 UTC 2022 - Arun Persaud <arun@gmx.de>
|
||||||
|
@@ -31,7 +31,6 @@ License: BSD-3-Clause
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/jupyter/qtconsole
|
URL: https://github.com/jupyter/qtconsole
|
||||||
Source0: https://files.pythonhosted.org/packages/source/q/qtconsole/qtconsole-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/q/qtconsole/qtconsole-%{version}.tar.gz
|
||||||
Source100: python-qtconsole-rpmlintrc
|
|
||||||
BuildRequires: %{python_module base >= 3.7}
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
BuildRequires: %{python_module jupyter-core}
|
BuildRequires: %{python_module jupyter-core}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@@ -43,19 +42,23 @@ BuildRequires: python-rpm-macros
|
|||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
# QtPy does note require or depend on one of the frameworks itself
|
# QtPy does note require or depend on one of the frameworks itself
|
||||||
Requires: (python-qt5 or python-pyside2)
|
Requires: (python-qt5 or python-pyside2 or python-PyQt6 or python-pyside6)
|
||||||
Requires: jupyter-qtconsole = %{version}
|
|
||||||
Requires: python-Pygments
|
Requires: python-Pygments
|
||||||
Requires: python-QtPy >= 2.0.1
|
Requires: python-QtPy >= 2.0.1
|
||||||
Requires: python-ipykernel >= 4.1
|
Requires: python-ipykernel >= 4.1
|
||||||
Requires: python-ipython_genutils
|
Requires: python-ipython_genutils
|
||||||
Requires: python-jupyter-client >= 4.1
|
Requires: python-jupyter-client >= 4.1
|
||||||
Requires: python-jupyter-core
|
Requires: python-jupyter-core
|
||||||
|
Requires: python-pyzmq >= 17.1
|
||||||
Requires: python-traitlets
|
Requires: python-traitlets
|
||||||
Conflicts: python-traitlets = 5.2.1
|
Conflicts: python-traitlets = 5.2.1
|
||||||
Conflicts: python-traitlets = 5.2.2
|
Conflicts: python-traitlets = 5.2.2
|
||||||
Provides: python-jupyter_qtconsole = %{version}
|
Provides: python-jupyter_qtconsole = %{version}
|
||||||
Obsoletes: python-jupyter_qtconsole < %{version}
|
Obsoletes: python-jupyter_qtconsole < %{version}
|
||||||
|
%if "%{python_flavor}" == "%{primary_python}"
|
||||||
|
Provides: jupyter-qtconsole = %{version}-%{release}
|
||||||
|
Obsoletes: jupyter-qtconsole < %{version}-%{release}
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with libalternatives}
|
%if %{with libalternatives}
|
||||||
BuildRequires: alts
|
BuildRequires: alts
|
||||||
@@ -72,7 +75,9 @@ BuildRequires: %{python_module ipykernel >= 4.1}
|
|||||||
BuildRequires: %{python_module ipython_genutils}
|
BuildRequires: %{python_module ipython_genutils}
|
||||||
BuildRequires: %{python_module jupyter-client >= 4.1}
|
BuildRequires: %{python_module jupyter-client >= 4.1}
|
||||||
BuildRequires: %{python_module pytest-qt}
|
BuildRequires: %{python_module pytest-qt}
|
||||||
|
BuildRequires: %{python_module pytest-xvfb}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module pyzmq >= 17.1}
|
||||||
BuildRequires: %{python_module qt5}
|
BuildRequires: %{python_module qt5}
|
||||||
BuildRequires: %{python_module traitlets}
|
BuildRequires: %{python_module traitlets}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
@@ -82,30 +87,6 @@ BuildRequires: %{python_module traitlets}
|
|||||||
A rich Qt-based console for working with Jupyter kernels,
|
A rich Qt-based console for working with Jupyter kernels,
|
||||||
supporting rich media output, session export, and more.
|
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
|
%prep
|
||||||
%setup -q -n qtconsole-%{version}
|
%setup -q -n qtconsole-%{version}
|
||||||
|
|
||||||
@@ -117,23 +98,25 @@ export LANG=en_US.UTF-8
|
|||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/jupyter-qtconsole
|
||||||
|
|
||||||
# Install icon
|
# Install icon
|
||||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
|
||||||
cp qtconsole/resources/icon/JupyterConsole.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/JupyterQtConsole.svg
|
%python_expand cp qtconsole/resources/icon/JupyterConsole.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/JupyterQtConsole-%{$python_bin_suffix}.svg
|
||||||
|
|
||||||
# Modify and install .desktop file
|
# Modify and install .desktop file
|
||||||
pushd examples
|
pushd examples
|
||||||
desktop-file-edit --set-icon="JupyterQtConsole" jupyter-qtconsole.desktop
|
%{python_expand # clone desktop file for flavors
|
||||||
%suse_update_desktop_file -i -r jupyter-qtconsole "System;TerminalEmulator;"
|
cp jupyter-qtconsole.desktop jupyter-qtconsole-%{$python_bin_suffix}.desktop
|
||||||
|
desktop-file-edit \
|
||||||
|
--set-icon="JupyterQtConsole-%{$python_bin_suffix}" \
|
||||||
|
--set-key=Exec --set-value="jupyter-qtconsole-%{$python_bin_suffix}" jupyter-qtconsole-%{$python_bin_suffix}.desktop
|
||||||
|
%suse_update_desktop_file -i -r jupyter-qtconsole-%{$python_bin_suffix} "System;TerminalEmulator;"
|
||||||
|
}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%python_clone -a %{buildroot}%{_bindir}/jupyter-qtconsole
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export QT_QPA_PLATFORM="offscreen"
|
%pytest -ra
|
||||||
# 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
|
%pre
|
||||||
%python_libalternatives_reset_alternative jupyter-qtconsole
|
%python_libalternatives_reset_alternative jupyter-qtconsole
|
||||||
@@ -147,12 +130,9 @@ export QT_QPA_PLATFORM="offscreen"
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python_alternative %{_bindir}/jupyter-qtconsole
|
%python_alternative %{_bindir}/jupyter-qtconsole
|
||||||
%{python_sitelib}/qtconsole-%{version}-py*.egg-info
|
%{_datadir}/applications/jupyter-qtconsole-%{python_bin_suffix}.desktop
|
||||||
|
%{_datadir}/icons/hicolor/scalable/apps/JupyterQtConsole-%{python_bin_suffix}.svg
|
||||||
|
%{python_sitelib}/qtconsole-%{version}*-info
|
||||||
%{python_sitelib}/qtconsole/
|
%{python_sitelib}/qtconsole/
|
||||||
|
|
||||||
%files -n jupyter-qtconsole
|
|
||||||
%license LICENSE
|
|
||||||
%{_datadir}/applications/jupyter-qtconsole.desktop
|
|
||||||
%{_datadir}/icons/hicolor/scalable/apps/JupyterQtConsole.svg
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user