Hello community,
here is the log from the commit of package python-jupyter_ipython for
openSUSE:Factory checked in at 2017-05-17 17:11:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyter_ipython (Old)
and /work/SRC/openSUSE:Factory/.python-jupyter_ipython.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jupyter_ipython"
Wed May 17 17:11:32 2017 rev:4 rq:490879 version:5.3.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-jupyter_ipython/python-jupyter_ipython-doc.changes
2016-02-22 08:57:48.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.python-jupyter_ipython.new/python-jupyter_ipython-doc.changes
2017-05-17 17:11:34.878367996 +0200
@@ -1,0 +2,133 @@
+Mon Apr 24 22:37:05 UTC 2017 - [email protected]
+
+- Add note about LTS status and the end of Python 2 support.
+- Add python2- provides.
+- Neither HTML nor PDF documentation will ever work again,
+ so drop it.
+
+-------------------------------------------------------------------
+Thu Mar 30 19:35:24 UTC 2017 - [email protected]
+
+- Update to IPython 5.3
+ * Fix a bug in ``set_next_input`` leading to a crash of terminal IPython.
+ :ghpull:`10231`, :ghissue:`10296`, :ghissue:`10229`
+ * Always wait for editor inputhook for terminal IPython :ghpull:`10239`,
+ :ghpull:`10240`
+ * Disable ``_ipython_display_`` in terminal :ghpull:`10249`, :ghpull:`10274`
+ * Update terminal colors to be more visible by default on windows
+ :ghpull:`10260`, :ghpull:`10238`, :ghissue:`10281`
+ * Add Ctrl-Z shortcut (suspend) in terminal debugger :ghpull:`10254`,
+ :ghissue:`10273`
+ * Indent on new line by looking at the text before the cursor
:ghpull:`10264`,
+ :ghpull:`10275`, :ghissue:`9283`
+ * Update QtEventloop integration to fix some matplotlib integration issues
+ :ghpull:`10201`, :ghpull:`10311`, :ghissue:`10201`
+ * Respect completions display style in terminal debugger :ghpull:`10305`,
+ :ghpull:`10313`
+ * Add a config option
``TerminalInteractiveShell.extra_open_editor_shortcuts``
+ to enable extra shortcuts to open the input in an editor. These are
:kbd:`v`
+ in vi mode, and :kbd:`C-X C-E` in emacs mode (:ghpull:`10330`).
+ The :kbd:`F2` shortcut is always enabled.
+- Update to IPython 5.2.2
+ * Fix error when starting with ``IPCompleter.limit_to__all__`` configured.
+- Update to IPython 5.2.1
+ * Fix tab completion in the debugger. :ghpull:`10223`
+- Update to IPython 5.2
+ * restore IPython's debugger to raise on quit. :ghpull:`10009`
+ * The configuration value ``c.TerminalInteractiveShell.highlighting_style``
can
+ now directly take a class argument for custom color style. :ghpull:`9848`
+ * Correctly handle matplotlib figures dpi :ghpull:`9868`
+ * Deprecate ``-e`` flag for the ``%notebook`` magic that had no effects.
+ :ghpull:`9872`
+ * You can now press F2 while typing at a terminal prompt to edit the contents
+ in your favourite terminal editor. Set the :envvar:`EDITOR` environment
+ variable to pick which editor is used. :ghpull:`9929`
+ * sdists will now only be ``.tar.gz`` as per upstream PyPI requirements.
+ :ghpull:`9925`
+ * :any:`IPython.core.debugger` have gained a ``set_trace()`` method for
+ convenience. :ghpull:`9947`
+ * The 'smart command mode' added to the debugger in 5.0 was removed, as more
+ people preferred the previous behaviour. Therefore, debugger commands such
as
+ ``c`` will act as debugger commands even when ``c`` is defined as a
variable.
+ :ghpull:`10050`
+ * Fixes OS X event loop issues at startup, :ghpull:`10150`
+ * Deprecate the ``%autoindent`` magic. :ghpull:`10176`
+ * Emit a :any:`DeprecationWarning` when setting the deprecated
+ ``limit_to_all`` option of the completer. :ghpull:`10198`
+ * The :cellmagic:`capture` magic can now capture the result of a cell (from
an
+ expression on the last line), as well as printed and displayed output.
+ :ghpull:`9851`.
+- Update to IPython 5.1
+ * Broken ``%timeit`` on Python2 due to the use of ``__qualname__``.
:ghpull:`9804`
+ * Restore ``%gui qt`` to create and return a ``QApplication`` if necessary.
:ghpull:`9789`
+ * Don't set terminal title by default. :ghpull:`9801`
+ * Preserve indentation when inserting newlines with ``Ctrl-O``.
:ghpull:`9770`
+ * Restore completion in debugger. :ghpull:`9785`
+ * Deprecate ``IPython.core.debugger.Tracer()`` in favor of simpler, newer,
APIs. :ghpull:`9731`
+ * Restore ``NoOpContext`` context manager removed by mistake, and add
`DeprecationWarning`. :ghpull:`9765`
+ * Add option allowing ``Prompt_toolkit`` to use 24bits colors. :ghpull:`9736`
+ * Fix for closing interactive matplotlib windows on OS X. :ghpull:`9854`
+ * An embedded interactive shell instance can be used more than once.
:ghpull:`9843`
+ * More robust check for whether IPython is in a terminal. :ghpull:`9833`
+ * Better pretty-printing of dicts on PyPy. :ghpull:`9827`
+ * Some coloured output now looks better on dark background command prompts
in Windows.
+ :ghpull:`9838`
+ * Improved tab completion of paths on Windows . :ghpull:`9826`
+ * Fix tkinter event loop integration on Python 2 with ``future`` installed.
:ghpull:`9824`
+ * Restore ``Ctrl-\`` as a shortcut to quit IPython.
+ * Make ``get_ipython()`` accessible when modules are imported by startup
files. :ghpull:`9818`
+ * Add support for running directories containing a ``__main__.py`` file with
the
+ ``ipython`` command. :ghpull:`9813`
+- Update to IPython 5.0
+ + IPython 5 features a major upgrade to the terminal interface, bringing live
+ syntax highlighting as you type, proper multiline editing and multiline
paste,
+ and tab completions that don't clutter up your history.
+ + Backwards incompatible changes
+ * The ``%install_ext`` magic function, deprecated since 4.0, has now been
deleted.
+ You can distribute and install extensions as packages on PyPI.
+ * Callbacks registered while an event is being handled will now only be
called
+ for subsequent events; previously they could be called for the current
event.
+ Similarly, callbacks removed while handling an event *will* always get
that
+ event. See :ghissue:`9447` and :ghpull:`9453`.
+ * Integration with pydb has been removed since pydb development has been
stopped
+ since 2012, and pydb is not installable from PyPI.
+ * The ``autoedit_syntax`` option has apparently been broken for many years.
+ It has been removed.
+ * The overhaul of the terminal interface will probably cause a range of
minor
+ issues for existing users.
+ * IPython no longer uses readline configuration (``~/.inputrc``). We hope
that
+ the functionality you want (e.g. vi input mode) will be available by
configuring
+ IPython directly (see :doc:`/config/options/terminal`).
+ * The ``PromptManager`` class has been removed, and the prompt machinery
simplified.
+ * There are new options to configure the colours used in syntax
highlighting.
+ We have tried to integrate them with our classic ``--colors`` option and
+ ``%colors`` magic, but there's a mismatch in possibilities, so some
configurations
+ may produce unexpected results. See :ref:`termcolour` for more
information.
+ * The new interface is not compatible with Emacs 'inferior-shell' feature.
To
+ continue using this, add the ``--simple-prompt`` flag to the command
Emacs
+ runs. This flag disables most IPython features, relying on Emacs to
provide
+ things like tab completion.
+ + Provisional Changes
+ * When running via the Jupyter notebook interfaces, or other compatible
client,
+ you can enable rich documentation experimental functionality:
+ When the ``docrepr`` package is installed setting the boolean flag
+ ``InteractiveShell.sphinxify_docstring`` to ``True``, will process the
various
+ object through sphinx before displaying them (see the ``docrepr`` package
+ documentation for more information.
+ + Deprecated Features
+ * ``hooks.fix_error_editor`` seems unused and is pending deprecation.
+ * `IPython/core/excolors.py:ExceptionColors` is deprecated.
+ * `IPython.core.InteractiveShell:write()` is deprecated; use `sys.stdout`
instead.
+ * `IPython.core.InteractiveShell:write_err()` is deprecated; use
`sys.stderr` instead.
+ * The `formatter` keyword argument to `Inspector.info` in
`IPython.core.oinspec` has no effect.
+ * The `global_ns` keyword argument of IPython Embed was deprecated, and
has no effect. Use `module` keyword argument instead.
+- Update to IPython 4.2
+ * Fix ``ipython -i`` on errors, which was broken in 4.1.
+ * The delay meant to highlight deprecated commands that have moved to
jupyter has been removed.
+ * Improve compatibility with future versions of traitlets and matplotlib.
+ * Use stdlib :func:`python:shutil.get_terminal_size` to measure terminal
width when displaying tracebacks
+ (provided by ``backports.shutil_get_terminal_size`` on Python 2).
+- Update to IPython 4.1.2
+ * fixes installation issues with some versions of setuptools.
+
+-------------------------------------------------------------------
---
/work/SRC/openSUSE:Factory/python-jupyter_ipython/python-jupyter_ipython.changes
2016-02-22 08:57:48.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.python-jupyter_ipython.new/python-jupyter_ipython.changes
2017-05-17 17:11:34.910363486 +0200
@@ -1,0 +2,144 @@
+Mon Apr 24 22:37:05 UTC 2017 - [email protected]
+
+- Add note about LTS status and the end of Python 2 support.
+- Add python2- provides.
+- Neither HTML nor PDF documentation will ever work again,
+ so drop it.
+
+-------------------------------------------------------------------
+Fri Apr 7 03:42:45 UTC 2017 - [email protected]
+
+- Install icons.
+- Install .desktop file.
+
+-------------------------------------------------------------------
+Thu Mar 30 19:35:24 UTC 2017 - [email protected]
+
+- Update to IPython 5.3
+ * Fix a bug in ``set_next_input`` leading to a crash of terminal IPython.
+ :ghpull:`10231`, :ghissue:`10296`, :ghissue:`10229`
+ * Always wait for editor inputhook for terminal IPython :ghpull:`10239`,
+ :ghpull:`10240`
+ * Disable ``_ipython_display_`` in terminal :ghpull:`10249`, :ghpull:`10274`
+ * Update terminal colors to be more visible by default on windows
+ :ghpull:`10260`, :ghpull:`10238`, :ghissue:`10281`
+ * Add Ctrl-Z shortcut (suspend) in terminal debugger :ghpull:`10254`,
+ :ghissue:`10273`
+ * Indent on new line by looking at the text before the cursor
:ghpull:`10264`,
+ :ghpull:`10275`, :ghissue:`9283`
+ * Update QtEventloop integration to fix some matplotlib integration issues
+ :ghpull:`10201`, :ghpull:`10311`, :ghissue:`10201`
+ * Respect completions display style in terminal debugger :ghpull:`10305`,
+ :ghpull:`10313`
+ * Add a config option
``TerminalInteractiveShell.extra_open_editor_shortcuts``
+ to enable extra shortcuts to open the input in an editor. These are
:kbd:`v`
+ in vi mode, and :kbd:`C-X C-E` in emacs mode (:ghpull:`10330`).
+ The :kbd:`F2` shortcut is always enabled.
+- Update to IPython 5.2.2
+ * Fix error when starting with ``IPCompleter.limit_to__all__`` configured.
+- Update to IPython 5.2.1
+ * Fix tab completion in the debugger. :ghpull:`10223`
+- Update to IPython 5.2
+ * restore IPython's debugger to raise on quit. :ghpull:`10009`
+ * The configuration value ``c.TerminalInteractiveShell.highlighting_style``
can
+ now directly take a class argument for custom color style. :ghpull:`9848`
+ * Correctly handle matplotlib figures dpi :ghpull:`9868`
+ * Deprecate ``-e`` flag for the ``%notebook`` magic that had no effects.
+ :ghpull:`9872`
+ * You can now press F2 while typing at a terminal prompt to edit the contents
+ in your favourite terminal editor. Set the :envvar:`EDITOR` environment
+ variable to pick which editor is used. :ghpull:`9929`
+ * sdists will now only be ``.tar.gz`` as per upstream PyPI requirements.
+ :ghpull:`9925`
+ * :any:`IPython.core.debugger` have gained a ``set_trace()`` method for
+ convenience. :ghpull:`9947`
+ * The 'smart command mode' added to the debugger in 5.0 was removed, as more
+ people preferred the previous behaviour. Therefore, debugger commands such
as
+ ``c`` will act as debugger commands even when ``c`` is defined as a
variable.
+ :ghpull:`10050`
+ * Fixes OS X event loop issues at startup, :ghpull:`10150`
+ * Deprecate the ``%autoindent`` magic. :ghpull:`10176`
+ * Emit a :any:`DeprecationWarning` when setting the deprecated
+ ``limit_to_all`` option of the completer. :ghpull:`10198`
+ * The :cellmagic:`capture` magic can now capture the result of a cell (from
an
+ expression on the last line), as well as printed and displayed output.
+ :ghpull:`9851`.
+- Update to IPython 5.1
+ * Broken ``%timeit`` on Python2 due to the use of ``__qualname__``.
:ghpull:`9804`
+ * Restore ``%gui qt`` to create and return a ``QApplication`` if necessary.
:ghpull:`9789`
+ * Don't set terminal title by default. :ghpull:`9801`
+ * Preserve indentation when inserting newlines with ``Ctrl-O``.
:ghpull:`9770`
+ * Restore completion in debugger. :ghpull:`9785`
+ * Deprecate ``IPython.core.debugger.Tracer()`` in favor of simpler, newer,
APIs. :ghpull:`9731`
+ * Restore ``NoOpContext`` context manager removed by mistake, and add
`DeprecationWarning`. :ghpull:`9765`
+ * Add option allowing ``Prompt_toolkit`` to use 24bits colors. :ghpull:`9736`
+ * Fix for closing interactive matplotlib windows on OS X. :ghpull:`9854`
+ * An embedded interactive shell instance can be used more than once.
:ghpull:`9843`
+ * More robust check for whether IPython is in a terminal. :ghpull:`9833`
+ * Better pretty-printing of dicts on PyPy. :ghpull:`9827`
+ * Some coloured output now looks better on dark background command prompts
in Windows.
+ :ghpull:`9838`
+ * Improved tab completion of paths on Windows . :ghpull:`9826`
+ * Fix tkinter event loop integration on Python 2 with ``future`` installed.
:ghpull:`9824`
+ * Restore ``Ctrl-\`` as a shortcut to quit IPython.
+ * Make ``get_ipython()`` accessible when modules are imported by startup
files. :ghpull:`9818`
+ * Add support for running directories containing a ``__main__.py`` file with
the
+ ``ipython`` command. :ghpull:`9813`
+- Update to IPython 5.0
+ + IPython 5 features a major upgrade to the terminal interface, bringing live
+ syntax highlighting as you type, proper multiline editing and multiline
paste,
+ and tab completions that don't clutter up your history.
+ + Backwards incompatible changes
+ * The ``%install_ext`` magic function, deprecated since 4.0, has now been
deleted.
+ You can distribute and install extensions as packages on PyPI.
+ * Callbacks registered while an event is being handled will now only be
called
+ for subsequent events; previously they could be called for the current
event.
+ Similarly, callbacks removed while handling an event *will* always get
that
+ event. See :ghissue:`9447` and :ghpull:`9453`.
+ * Integration with pydb has been removed since pydb development has been
stopped
+ since 2012, and pydb is not installable from PyPI.
+ * The ``autoedit_syntax`` option has apparently been broken for many years.
+ It has been removed.
+ * The overhaul of the terminal interface will probably cause a range of
minor
+ issues for existing users.
+ * IPython no longer uses readline configuration (``~/.inputrc``). We hope
that
+ the functionality you want (e.g. vi input mode) will be available by
configuring
+ IPython directly (see :doc:`/config/options/terminal`).
+ * The ``PromptManager`` class has been removed, and the prompt machinery
simplified.
+ * There are new options to configure the colours used in syntax
highlighting.
+ We have tried to integrate them with our classic ``--colors`` option and
+ ``%colors`` magic, but there's a mismatch in possibilities, so some
configurations
+ may produce unexpected results. See :ref:`termcolour` for more
information.
+ * The new interface is not compatible with Emacs 'inferior-shell' feature.
To
+ continue using this, add the ``--simple-prompt`` flag to the command
Emacs
+ runs. This flag disables most IPython features, relying on Emacs to
provide
+ things like tab completion.
+ + Provisional Changes
+ * When running via the Jupyter notebook interfaces, or other compatible
client,
+ you can enable rich documentation experimental functionality:
+ When the ``docrepr`` package is installed setting the boolean flag
+ ``InteractiveShell.sphinxify_docstring`` to ``True``, will process the
various
+ object through sphinx before displaying them (see the ``docrepr`` package
+ documentation for more information.
+ + Deprecated Features
+ * ``hooks.fix_error_editor`` seems unused and is pending deprecation.
+ * `IPython/core/excolors.py:ExceptionColors` is deprecated.
+ * `IPython.core.InteractiveShell:write()` is deprecated; use `sys.stdout`
instead.
+ * `IPython.core.InteractiveShell:write_err()` is deprecated; use
`sys.stderr` instead.
+ * The `formatter` keyword argument to `Inspector.info` in
`IPython.core.oinspec` has no effect.
+ * The `global_ns` keyword argument of IPython Embed was deprecated, and
has no effect. Use `module` keyword argument instead.
+- Update to IPython 4.2
+ * Fix ``ipython -i`` on errors, which was broken in 4.1.
+ * The delay meant to highlight deprecated commands that have moved to
jupyter has been removed.
+ * Improve compatibility with future versions of traitlets and matplotlib.
+ * Use stdlib :func:`python:shutil.get_terminal_size` to measure terminal
width when displaying tracebacks
+ (provided by ``backports.shutil_get_terminal_size`` on Python 2).
+- Update to IPython 4.1.2
+ * fixes installation issues with some versions of setuptools.
+
+-------------------------------------------------------------------
+Thu Mar 16 14:31:41 UTC 2017 - [email protected]
+
+- do not Recommend jupyter_nbconvert (which pulls in texlive)
+
+-------------------------------------------------------------------
Old:
----
ipython-4.1.1.tar.gz
New:
----
ipython-5.3.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jupyter_ipython-doc.spec ++++++
--- /var/tmp/diff_new_pack.InXviZ/_old 2017-05-17 17:11:35.778241158 +0200
+++ /var/tmp/diff_new_pack.InXviZ/_new 2017-05-17 17:11:35.782240594 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-jupyter_ipython-doc
#
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -15,90 +15,55 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
-%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} >
1110 )
-# PDF documentation currently broken
-# %define build_pdf 1
-%define build_pdf 0
-%else
-%define build_pdf 0
-%endif
-%if 0%{?suse_version} && 0%{?suse_version} > 1320
-%define run_tests 1
-%else
-%define run_tests 0
-%endif
+%bcond_without tests
Name: python-jupyter_ipython-doc
-Version: 4.1.1
+Version: 5.3.0
Release: 0
Summary: Documentation for python-jupyter_ipython
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://ipython.org
-Source:
https://pypi.python.org/packages/source/i/ipython/ipython-%{version}.tar.gz
+Source:
https://files.pythonhosted.org/packages/source/i/ipython/ipython-%{version}.tar.gz
BuildRequires: fdupes
-BuildRequires: python-jupyter_ipython
-BuildRequires: python-jupyter_ipykernel
-%if %{run_tests}
+BuildRequires: python-jupyter_ipython = %{version}
+%if %{with tests}
# Test Requirements
-BuildRequires: python-jupyter_ipython-iptest
-%endif
-# Documentation requirements
-BuildRequires: graphviz
-BuildRequires: graphviz-gnome
-BuildRequires: python-Sphinx
-BuildRequires: python-matplotlib
+BuildRequires: python-jupyter_ipykernel
+BuildRequires: python-jupyter_ipython-iptest = %{version}
BuildRequires: python-nose
-BuildRequires: python-numpydoc
-BuildRequires: python-requests
-%if %{build_pdf}
-BuildRequires: python-Sphinx-latex
+BuildRequires: python-testpath
+# Python 2 Test Requirements
+BuildRequires: python-mock
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
+Provides: %{name}-html = %{version}
+Provides: %{name}-pdf = %{version}
+Obsoletes: %{name}-html < %{version}
+Obsoletes: %{name}-pdf < %{version}
+Provides: python-jupyter_ipython-doc = %{version}
%description
Documentation and help files for python-jupyter_ipython.
-%package html
-Summary: HTML documentation for python-jupyter_ipython
-Recommends: python-jupyter_ipython = %{version}
-
-%description html
-Documentation and help files for python-jupyter_ipython in HTML format.
-
-%package pdf
-Summary: PDF documentation for python-jupyter_ipython
-Recommends: python-jupyter_ipython = %{version}
-
-%description pdf
-Documentation and help files for python-jupyter_ipython in PDF format.
+IMPORTANT: The Python 3 version of IPython is in long-term support
+mode. It will not be receiving major new features. Starting with
+IPython 6, only Python 3.3 and later is supported.
%prep
%setup -q -n ipython-%{version}
%build
-# Build the documentation
-pushd docs
-%if %{build_pdf}
-make pdf
-%endif
-make html
-rm -rf build/html/.buildinfo
-popd
+# Don't need to do anything here
%install
mkdir -p %{buildroot}%{_docdir}/python-jupyter_ipython
+cp -r examples %{buildroot}%{_docdir}/python-jupyter_ipython/
+%fdupes %{buildroot}%{_docdir}/python-jupyter_ipython/
-%if %{build_pdf}
-cp docs/build/latex/jupyter_core.pdf
%{buildroot}%{_docdir}/python-jupyter_ipython/
-%endif
-
-cp -r docs/build/html %{buildroot}%{_docdir}/python-jupyter_ipython/
-%fdupes %{buildroot}%{_docdir}/python-jupyter_ipython/html/
-
-%if %{run_tests}
+%if %{with tests}
%check
export LANG="en_US.UTF-8"
pushd docs
@@ -106,16 +71,9 @@
popd
%endif
-%files html
-%defattr(-,root,root,-)
-%doc COPYING.rst
-%{_docdir}/python-jupyter_ipython/html/
-
-%if %{build_pdf}
-%files pdf
+%files
%defattr(-,root,root,-)
%doc COPYING.rst docs/source/about/license_and_copyright.rst
-%{_docdir}/python-jupyter_ipython/jupyter_core.pdf
-%endif
+%{_docdir}/python-jupyter_ipython/
%changelog
++++++ python-jupyter_ipython.spec ++++++
--- /var/tmp/diff_new_pack.InXviZ/_old 2017-05-17 17:11:35.814236084 +0200
+++ /var/tmp/diff_new_pack.InXviZ/_new 2017-05-17 17:11:35.818235521 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-jupyter_ipython
#
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -16,23 +16,33 @@
#
+%bcond_without iptest
+
Name: python-jupyter_ipython
-Version: 4.1.1
+Version: 5.3.0
Release: 0
Summary: Rich architecture for interactive computing with Python
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://ipython.org
-Source:
https://pypi.python.org/packages/source/i/ipython/ipython-%{version}.tar.gz
+Source:
https://files.pythonhosted.org/packages/source/i/ipython/ipython-%{version}.tar.gz
+BuildRequires: desktop-file-utils
+BuildRequires: icoutils
BuildRequires: fdupes
+BuildRequires: hicolor-icon-theme
+BuildRequires: update-desktop-files
+BuildRequires: python-backports.shutil_get_terminal_size
BuildRequires: python-decorator
BuildRequires: python-devel
+BuildRequires: python-jupyter_nbformat
+BuildRequires: python-pathlib2
BuildRequires: python-pexpect
BuildRequires: python-pickleshare
+BuildRequires: python-prompt_toolkit
BuildRequires: python-setuptools
BuildRequires: python-simplegeneric > 0.8
BuildRequires: python-traitlets
-%if 0%{?suse_version} && 0%{?suse_version} > 1320
+%if %{with iptest}
# Test Requirements
BuildRequires: python-matplotlib
BuildRequires: python-nose
@@ -41,29 +51,30 @@
# Python 2 Test Requirements
BuildRequires: python-mock
%endif
+Requires: python-backports.shutil_get_terminal_size
Requires: python-decorator
+Requires: python-jupyter_nbformat
+Requires: python-pathlib2
Requires: python-pexpect
Requires: python-pickleshare
+Requires: python-prompt_toolkit
Requires: python-simplegeneric > 0.8
Requires: python-traitlets
+Recommends: python-docrepr
Recommends: python-jupyter_ipykernel
Recommends: python-jupyter_ipyparallel
Recommends: python-jupyter_nbconvert
-Recommends: python-jupyter_nbformat
Recommends: python-jupyter_notebook
Recommends: python-jupyter_qtconsole
Provides: IPython = %{version}
Obsoletes: IPython < %{version}
Provides: python-IPython = %{version}
Obsoletes: python-IPython < %{version}
+Provides: python2-jupyter_ipython = %{version}
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
BuildArch: noarch
-%endif
%description
IPython provides a rich toolkit to help you make the
@@ -95,25 +106,41 @@
* Easily embeddable in other Python programs and GUIs.
* Integrated access to the pdb debugger and the Python profiler.
+IMPORTANT: The Python 3 version of IPython is in long-term support
+mode. It will not be receiving major new features. Starting with
+IPython 6, only Python 3.3 and later is supported.
+
%package iptest
Summary: Tools for testing packages that rely in %{name}
+Group: Development/Languages/Python
Requires: %{name} = %{version}
Requires: python-matplotlib
-Requires: python-mock
Requires: python-nose
Requires: python-requests
Requires: python-testpath
+# Python 2 Test Requirements
+Requires: python-mock
+Provides: python2-jupyter_ipython-iptest = %{version}
%description iptest
This package provides the iptest command, which is used for
testing software that uses %{name}.
+IMPORTANT: The Python 3 version of IPython is in long-term support
+mode. It will not be receiving major new features. Starting with
+IPython 6, only Python 3.3 and later is supported.
+
%prep
%setup -q -n ipython-%{version}
%build
python setup.py build
+pushd scripts
+icotool -x ipython.ico
+icotool -x ipython_nb.ico
+popd
+
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
@@ -140,10 +167,24 @@
chmod a+x %{buildroot}%{python_sitelib}/IPython/testing/plugin/setup.py
chmod a+x %{buildroot}%{python_sitelib}/IPython/terminal/ipapp.py
+# Install the icons
+for x in 16 24 32 48 256 ; do
+ mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${x}x${x}/apps/
+ ipyf=(scripts/ipython_*_${x}x${x}x32.png)
+ ipynbf=(scripts/ipython_nb_*_${x}x${x}x32.png)
+ cp ${ipyf[0]}
%{buildroot}%{_datadir}/icons/hicolor/${x}x${x}/apps/IPython-%{py_ver}.png
+ cp ${ipynbf[0]}
%{buildroot}%{_datadir}/icons/hicolor/${x}x${x}/apps/IPythonNotebook-%{py_ver}.png
+done
+
+# Modify and install .desktop file
+mv examples/IPython\ Kernel/ipython.desktop ipython-%{py_ver}.desktop
+desktop-file-edit --set-comment="Enhanced interactive Python %{py_ver} shell"
--set-name="ipython %{py_ver}" --set-generic-name="IPython %{py_ver}"
--set-key="Exec" --set-value="ipython-%{py_ver}" --set-icon="IPython-%{py_ver}"
ipython-%{py_ver}.desktop
+%suse_update_desktop_file -i -r ipython-%{py_ver} "System;TerminalEmulator;"
+
%fdupes -s %{buildroot}%{_bindir}
# Remove these since they won't work
-%if 0%{?suse_version} && 0%{?suse_version} <= 1320
+%if !%{with iptest}
rm %{buildroot}%{_bindir}/iptest
rm %{buildroot}%{_bindir}/iptest2
rm %{buildroot}%{_bindir}/iptest-%{py_ver}
@@ -154,6 +195,8 @@
%_sbindir/update-alternatives \
--install %{_bindir}/ipython ipython %{_bindir}/ipython-%{py_ver} 30 \
--slave %{_mandir}/man1/ipython.1.gz ipython.1.gz
%{_mandir}/man1/ipython-%{py_ver}.1.gz
+%desktop_database_post
+%icon_theme_cache_post
%post iptest
%_sbindir/update-alternatives \
@@ -163,6 +206,8 @@
if [ $1 -eq 0 ] ; then
%_sbindir/update-alternatives --remove ipython %{_bindir}/ipython-%{py_ver}
fi
+%desktop_database_postun
+%icon_theme_cache_postun
%postun iptest
if [ $1 -eq 0 ] ; then
@@ -180,9 +225,13 @@
%{_mandir}/man1/ipython-%{py_ver}.1.gz
%{_mandir}/man1/ipython2.1.gz
%ghost %{_sysconfdir}/alternatives/ipython.1.gz
-%{python_sitelib}/*
+%{python_sitelib}/IPython/
+%{python_sitelib}/ipython-%{version}-py*.egg-info
+%{_datadir}/applications/ipython-%{py_ver}.desktop
+%{_datadir}/icons/hicolor/*/apps/IPython-%{py_ver}.png
+%{_datadir}/icons/hicolor/*/apps/IPythonNotebook-%{py_ver}.png
-%if 0%{?suse_version} && 0%{?suse_version} > 1320
+%if %{with iptest}
%files iptest
%defattr(-,root,root,-)
%{_bindir}/iptest
++++++ ipython-4.1.1.tar.gz -> ipython-5.3.0.tar.gz ++++++
++++ 18858 lines of diff (skipped)