1
0

Accepting request 703774 from home:TheBlackCat:branches:devel:languages:python:jupyter

- Rename to to match python package naming guidelines.
- Split jupyter components into own subpackage.
- Update to version 4.4.4

OBS-URL: https://build.opensuse.org/request/show/703774
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-qtconsole?expand=0&rev=1
This commit is contained in:
Todd R 2019-05-17 19:13:11 +00:00 committed by Git OBS Bridge
commit 78bc003793
7 changed files with 320 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

138
python-qtconsole.changes Normal file
View File

@ -0,0 +1,138 @@
-------------------------------------------------------------------
Thu Apr 25 01:59:57 UTC 2019 - Todd R <toddrme2178@gmail.com>
- Rename to to match python package naming guidelines.
- Split jupyter components into own subpackage.
- Update to version 4.4.4
* Prevent cursor from moving to the end of the line while debugging.
-------------------------------------------------------------------
Sat Dec 22 07:09:10 UTC 2018 - Todd R <toddrme2178@gmail.com>
- Update to version 4.4.3
* Fix complete statements check inside indented block for Python after the IPython 7 release.
* Improve auto-scrolling during execution.
- Update to version 4.4.2
* Fix incompatibility with PyQt5 5.11.
-------------------------------------------------------------------
Fri Sep 7 15:22:09 UTC 2018 - toddrme2178@gmail.com
- Update to version 4.4.1
* Fix setting width and height when displaying images with IPython's Image.
* Avoid displaying errors when using Matplotlib to generate pngs from Latex.
- Update to version 4.4.0
+ Additions
* :kbd:`Control-D` enters an EOT character if kernel is executing and input is empty.
* Implement block indent on multiline selection with :kbd:`Tab`.
- Change the syntax highlighting style used in the console at any time. It can
be done in the menu ``View > Syntax Style``.
+ Changes
* Change :kbd:`Control-Shift-A` to select cell contents first.
* Change default tab width to 4 spaces.
* Enhance handling of input from other clients.
- Don't block the console when the kernel is asked for completions.
+ Fixes
* Fix bug that make PySide2 a forbidden binding.
* Fix IndexError when copying prompts.
* Fix behavior of right arrow key.
* Fix behavior of :kbd:`Control-Backspace` and :kbd:`Control-Del`
- Use upstream documentation builds
-------------------------------------------------------------------
Tue Feb 13 19:40:16 UTC 2018 - toddrme2178@gmail.com
- Update url
-------------------------------------------------------------------
Tue Sep 19 21:07:54 UTC 2017 - toddrme2178@gmail.com
- Update to 4.3.1
* Make %clear to delete previous output on Windows.
* Fix SVG rendering.
-------------------------------------------------------------------
Wed Apr 26 19:10:25 UTC 2017 - toddrme2178@gmail.com
- Implement single-spec version.
-------------------------------------------------------------------
Fri Apr 7 19:26:44 UTC 2017 - toddrme2178@gmail.com
- Fix update-alternatives usage.
-------------------------------------------------------------------
Thu Mar 30 19:40:41 UTC 2017 - toddrme2178@gmail.com
- Update to 4.3
+ Additions
* Add :kbd:`Shift-Tab` shortcut to unindent text
* Add :kbd:`Control-R` shortcut to rename the current tab
* Add :kbd:`Alt-R` shortcut to set the main window title
* Add :kbd:`Command-Alt-Left` and :kbd:`Command-Alt-Right` shortcut to switch
tabs on macOS
* Add support for PySide2
* Add support for Python 3.5
* Add support for 24 bit ANSI color codes
* Add option to create new tab connected to the existing kernel
+ Changes
* Change :kbd:`Tab` key behavior to always indent to the next increment of 4 spaces
* Change :kbd:`Home` key behavior to alternate cursor between the beginning of text
(ignoring leading spaces) and beginning of the line
* Improve documentation of various options and clarified the docs in some places
* Move documentation to ReadTheDocs
* Rename `ConsoleWidget.width/height` traits to `console_width/console_height`
to avoid a name clash with the `QWidget` properties. Note: the name change
could be, in rare cases if a name collision exists, a code-breaking
change.
+ Fixes
* Fix automatic indentation of new lines that are inserted in the middle of a
cell
* Fix regression where prompt would never be shown for `--existing` consoles
* Fix `python.exe -m qtconsole` on Windows
* Fix showing error messages when running a script using `%run`
* Fix `invalid cursor position` error and subsequent freezing of user input
* Fix syntax coloring when attaching to non-IPython kernels
* Fix printing when using QT5
* Fix :kbd:`Control-K` shortcut (delete until end of line) on macOS
* Fix history browsing (:kbd:`Up`/:kbd:`Down` keys) when lines are longer than
the terminal width
* Fix saving HTML with inline PNG for Python 3
* Various internal bugfixes
- Update to 4.2
* various latex display fixes
* improvements for embedding in Qt applications (use existing Qt API if one is already loaded)
-------------------------------------------------------------------
Thu Feb 18 11:05:45 UTC 2016 - toddrme2178@gmail.com
- update to version 4.1.1:
* Set AppUserModelID for Windows 7 and later
* Switch to using qtconsole module to find qt
* Fix Travis tests for Python 2
* Updated example for creating inprocess qtconsole
* Enable 3.5 on travis
- Split documentation into subpackage
-------------------------------------------------------------------
Fri Oct 16 12:15:08 UTC 2015 - toddrme2178@gmail.com
- Update to 4.1.0
* Fixed generating the default configuration
* Fixed some regressions in copy/paste from the console.
-------------------------------------------------------------------
Mon Oct 5 10:01:17 UTC 2015 - toddrme2178@gmail.com
- Build documentation
-------------------------------------------------------------------
Fri Aug 21 11:03:50 UTC 2015 - toddrme2178@gmail.com
- Remove duplicate requirements
-------------------------------------------------------------------
Thu Aug 13 12:39:48 UTC 2015 - toddrme2178@gmail.com
- Initial version

149
python-qtconsole.spec Normal file
View File

@ -0,0 +1,149 @@
#
# spec file for package python-qtconsole
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-qtconsole
Version: 4.4.4
%define doc_ver 4.4.3
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
Source1: https://media.readthedocs.org/pdf/qtconsole/%{doc_ver}/qtconsole.pdf
Source2: https://media.readthedocs.org/htmlzip/qtconsole/%{doc_ver}/qtconsole.zip
BuildRequires: %{python_module jupyter_core}
BuildRequires: %{python_module setuptools}
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: python-rpm-macros
BuildRequires: unzip
BuildRequires: update-desktop-files
Requires: python-Pygments
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}
Requires: jupyter-qtconsole = %{version}
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Pygments}
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}
BuildRequires: %{python_module qt5}
BuildRequires: %{python_module sip}
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
Requires: python3-qtconsole = %{version}
Requires: jupyter-ipykernel >= 4.1
Requires: jupyter-jupyter_client >= 4.1
Requires: jupyter-jupyter_core
Conflicts: python3-jupyter_qtconsole < 4.4.4
%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.
%package -n jupyter-qtconsole-doc
Summary: Documentation for the Jupyter Qt console
Group: Documentation/Other
Provides: python-qtconsole-doc = %{version}
Provides: %{python_module qtconsole-doc = %{version}}
Provides: %{python_module jupyter_qtconsole-doc = %{version}}
Obsoletes: %{python_module jupyter_qtconsole-doc <= %{version}}
%description -n jupyter-qtconsole-doc
Documentation and help files for Jupyter's Qt console.
%prep
%setup -q -n qtconsole-%{version}
cp %{SOURCE1} .
unzip %{SOURCE2} -d docs
mv docs/qtconsole-* docs/html
rm docs/html/.buildinfo
%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
mkdir -p %{buildroot}%{_docdir}/jupyter-qtconsole
cp %{SOURCE1} %{buildroot}%{_docdir}/jupyter-qtconsole/
cp -r docs/html %{buildroot}%{_docdir}/jupyter-qtconsole/
%fdupes %{buildroot}%{_docdir}/jupyter-qtconsole/
%check
rm -rf build _build.*
%python_expand pytest-%{$python_bin_suffix}
%files %{python_files}
%license LICENSE
%{python_sitelib}/qtconsole-%{version}-py*.egg-info
%{python_sitelib}/qtconsole/
%files -n jupyter-qtconsole
%license LICENSE
%{_bindir}/jupyter-qtconsole
%{_datadir}/applications/jupyter-qtconsole.desktop
%{_datadir}/icons/hicolor/scalable/apps/JupyterQtConsole.svg
%files -n jupyter-qtconsole-doc
%license LICENSE
%dir %{_docdir}/jupyter-qtconsole/
%{_docdir}/jupyter-qtconsole/qtconsole.pdf
%{_docdir}/jupyter-qtconsole/html
%changelog

3
qtconsole-4.4.4.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a667558c7b1e1442a2e5bcef1686c55e096efd0b58d8b2a0a8415f4579991ee3
size 420061

3
qtconsole.pdf Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:93baedd3a468ff09c4d2ecaef21ff788b0bf015796aa89ab2f8342318635bcc2
size 422977

3
qtconsole.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a844c6af61278cd0c8c3ed48bca1c46ef8350099b4d04ca8a8fbc58679b64b42
size 8354542