diff --git a/python-qtconsole.changes b/python-qtconsole.changes index f74af68..47ade48 100644 --- a/python-qtconsole.changes +++ b/python-qtconsole.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Aug 28 16:30:17 UTC 2020 - Benjamin Greiner + +- Update to 4.7.6 + * Replace qApp with QApplication.instance(). + * Fix QFontMetrics.width deprecation. +- use alternatives for entry point +- SIP is not used anymore + ------------------------------------------------------------------- Wed Jul 1 08:54:06 UTC 2020 - Marketa Calabkova diff --git a/python-qtconsole.spec b/python-qtconsole.spec index 640f0a8..cc7f2fb 100644 --- a/python-qtconsole.spec +++ b/python-qtconsole.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-qtconsole -Version: 4.7.5 +Version: 4.7.6 Release: 0 Summary: Jupyter Qt console License: BSD-3-Clause @@ -43,7 +43,6 @@ Requires: python-ipykernel >= 4.1 Requires: python-ipython_genutils Requires: python-jupyter-client >= 4.1 Requires: python-jupyter-core -Requires: python-sip Requires: python-traitlets Provides: python-jupyter_qtconsole = %{version} Obsoletes: python-jupyter_qtconsole < %{version} @@ -55,12 +54,9 @@ 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 nose} -BuildRequires: %{python_module pexpect} BuildRequires: %{python_module pytest-qt} BuildRequires: %{python_module pytest} BuildRequires: %{python_module qt5} -BuildRequires: %{python_module sip} BuildRequires: %{python_module traitlets} # /SECTION %python_subpackages @@ -114,10 +110,18 @@ 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" %pytest +%post -n jupyter-qtconsole +%python_install_alternative jupyter-qtconsole + +%postun -n jupyter-qtconsole +%python_uninstall_alternative jupyter-qtconsole + %files %{python_files} %license LICENSE %{python_sitelib}/qtconsole-%{version}-py*.egg-info @@ -125,7 +129,7 @@ export QT_QPA_PLATFORM="offscreen" %files -n jupyter-qtconsole %license LICENSE -%{_bindir}/jupyter-qtconsole +%python_alternative %{_bindir}/jupyter-qtconsole %{_datadir}/applications/jupyter-qtconsole.desktop %{_datadir}/icons/hicolor/scalable/apps/JupyterQtConsole.svg diff --git a/qtconsole-4.7.5.tar.gz b/qtconsole-4.7.5.tar.gz deleted file mode 100644 index a782be3..0000000 --- a/qtconsole-4.7.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f5cb275d30fc8085e2d1d18bc363e5ba0ce6e559bf37d7d6727b773134298754 -size 424850 diff --git a/qtconsole-4.7.6.tar.gz b/qtconsole-4.7.6.tar.gz new file mode 100644 index 0000000..3f95f09 --- /dev/null +++ b/qtconsole-4.7.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c24397c19a49a5cf69582c931db4b0f6b00a78530a2bfd122936f2ebfae2fef +size 424919