Update to 7.4.0 (#1678562)
This commit is contained in:
parent
08365d355d
commit
bff004b023
1
.gitignore
vendored
1
.gitignore
vendored
@ -25,3 +25,4 @@ ipython-0.10.tar.gz
|
|||||||
/ipython-6.4.0.tar.gz
|
/ipython-6.4.0.tar.gz
|
||||||
/ipython-7.0.1.tar.gz
|
/ipython-7.0.1.tar.gz
|
||||||
/ipython-7.2.0.tar.gz
|
/ipython-7.2.0.tar.gz
|
||||||
|
/ipython-7.4.0.tar.gz
|
||||||
|
12
ipython.spec
12
ipython.spec
@ -2,8 +2,8 @@
|
|||||||
%bcond_without doc
|
%bcond_without doc
|
||||||
|
|
||||||
Name: ipython
|
Name: ipython
|
||||||
Version: 7.2.0
|
Version: 7.4.0
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: An enhanced interactive Python shell
|
Summary: An enhanced interactive Python shell
|
||||||
|
|
||||||
# See bug #603178 for a quick overview for the choice of licenses
|
# See bug #603178 for a quick overview for the choice of licenses
|
||||||
@ -13,15 +13,12 @@ License: (BSD and MIT and Python) and GPLv2+
|
|||||||
URL: http://ipython.org/
|
URL: http://ipython.org/
|
||||||
Source0: %pypi_source
|
Source0: %pypi_source
|
||||||
|
|
||||||
# Build with Sphinx 1.7
|
|
||||||
# revert https://github.com/ipython/ipython/commit/ce22f49932fd4f071804e59f3c9d3f7042b917dd
|
|
||||||
Patch1: sphinx-1.7.patch
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
|
||||||
%if %{with doc}
|
%if %{with doc}
|
||||||
BuildRequires: python3-sphinx
|
BuildRequires: python3-sphinx
|
||||||
|
BuildRequires: python3-sphinx_rtd_theme
|
||||||
BuildRequires: python3-ipykernel
|
BuildRequires: python3-ipykernel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -239,6 +236,9 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 09 2019 Miro Hrončok <mhroncok@redhat.com> - 7.4.0-1
|
||||||
|
- Update to 7.4.0 (#1678562)
|
||||||
|
|
||||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.2.0-2
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.2.0-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (ipython-7.2.0.tar.gz) = 979ed1624e8fcdcc83b5b128887284e1fdf47a7890a472f8e144012595c5440f89368ff7c36893bb57c5941cd9d373429a81e99c92ac5de30b68de4f05624fe1
|
SHA512 (ipython-7.4.0.tar.gz) = 6e5e4c0f605657cadeb5b192c7fafd14aa892b6844d5533c7672ed20bbd54ffbcc8e6be3c1033acf2a96eac421df6ce7bd430c76077ef45e02ff98c1c74272f0
|
||||||
|
148
sphinx-1.7.patch
148
sphinx-1.7.patch
@ -1,148 +0,0 @@
|
|||||||
diff -up ipython-7.2.0/docs/source/config/extensions/autoreload.rst.orig ipython-7.2.0/docs/source/config/extensions/autoreload.rst
|
|
||||||
--- ipython-7.2.0/docs/source/config/extensions/autoreload.rst.orig 2018-11-29 20:17:21.000000000 -0500
|
|
||||||
+++ ipython-7.2.0/docs/source/config/extensions/autoreload.rst 2019-01-02 13:06:12.477103536 -0500
|
|
||||||
@@ -4,6 +4,4 @@
|
|
||||||
autoreload
|
|
||||||
==========
|
|
||||||
|
|
||||||
-.. magic:: autoreload
|
|
||||||
-
|
|
||||||
.. automodule:: IPython.extensions.autoreload
|
|
||||||
diff -up ipython-7.2.0/docs/source/interactive/autoawait.rst.orig ipython-7.2.0/docs/source/interactive/autoawait.rst
|
|
||||||
--- ipython-7.2.0/docs/source/interactive/autoawait.rst.orig 2018-11-29 20:17:21.000000000 -0500
|
|
||||||
+++ ipython-7.2.0/docs/source/interactive/autoawait.rst 2019-01-02 13:06:53.741935269 -0500
|
|
||||||
@@ -230,7 +230,7 @@ Update ipykernel to version 5.0 or great
|
|
||||||
# or
|
|
||||||
conda install ipykernel ipython --upgrade
|
|
||||||
|
|
||||||
-This should automatically enable :magic:`autoawait` integration. Unlike
|
|
||||||
+This should automatically enable :magic:`%autoawait` integration. Unlike
|
|
||||||
terminal IPython, all code runs on ``asyncio`` eventloop, so creating a loop by
|
|
||||||
hand will not work, including with magics like :magic:`%run` or other
|
|
||||||
frameworks that create the eventloop themselves. In cases like these you can
|
|
||||||
diff -up ipython-7.2.0/docs/source/whatsnew/version7.rst.orig ipython-7.2.0/docs/source/whatsnew/version7.rst
|
|
||||||
--- ipython-7.2.0/docs/source/whatsnew/version7.rst.orig 2018-11-29 20:17:21.000000000 -0500
|
|
||||||
+++ ipython-7.2.0/docs/source/whatsnew/version7.rst 2019-01-02 13:10:38.877021881 -0500
|
|
||||||
@@ -296,10 +296,10 @@ Non-Asynchronous code
|
|
||||||
~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
|
|
||||||
As the internal API of IPython is now asynchronous, IPython needs to run under
|
|
||||||
-an event loop. In order to allow many workflows, (like using the :magic:`%run`
|
|
||||||
-magic, or copy-pasting code that explicitly starts/stop event loop), when
|
|
||||||
-top-level code is detected as not being asynchronous, IPython code is advanced
|
|
||||||
-via a pseudo-synchronous runner, and may not advance pending tasks.
|
|
||||||
+an even loop. In order to allow many workflow, (like using the ``%run`` magic,
|
|
||||||
+or copy_pasting code that explicitly starts/stop event loop), when top-level code
|
|
||||||
+is detected as not being asynchronous, IPython code is advanced via a
|
|
||||||
+pseudo-synchronous runner, and will not may not advance pending tasks.
|
|
||||||
|
|
||||||
Change to Nested Embed
|
|
||||||
~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
@@ -334,18 +334,11 @@ minrk, njsmith, pganssle, tacaswell, tak
|
|
||||||
Autoreload Improvement
|
|
||||||
----------------------
|
|
||||||
|
|
||||||
-The magic :magic:`%autoreload 2 <autoreload>` now captures new methods added to
|
|
||||||
-classes. Earlier, only methods existing as of the initial import were being
|
|
||||||
-tracked and updated.
|
|
||||||
-
|
|
||||||
-This new feature helps dual environment development - Jupyter+IDE - where the
|
|
||||||
-code gradually moves from notebook cells to package files as it gets
|
|
||||||
-structured.
|
|
||||||
-
|
|
||||||
-**Example**: An instance of the class ``MyClass`` will be able to access the
|
|
||||||
-method ``cube()`` after it is uncommented and the file ``file1.py`` is saved on
|
|
||||||
-disk.
|
|
||||||
+The magic ``%autoreload 2`` now captures new methods added to classes. Earlier, only methods existing as of the initial import were being tracked and updated.
|
|
||||||
|
|
||||||
+This new feature helps dual environment development - Jupyter+IDE - where the code gradually moves from notebook cells to package files, as it gets structured.
|
|
||||||
+
|
|
||||||
+**Example**: An instance of the class `MyClass` will be able to access the method `cube()` after it is uncommented and the file `file1.py` saved on disk.
|
|
||||||
|
|
||||||
.. code::
|
|
||||||
|
|
||||||
@@ -380,14 +373,12 @@ Misc
|
|
||||||
The autoindent feature that was deprecated in 5.x was re-enabled and
|
|
||||||
un-deprecated in :ghpull:`11257`
|
|
||||||
|
|
||||||
-Make :magic:`%run -n -i ... <run>` work correctly. Earlier, if :magic:`%run` was
|
|
||||||
-passed both arguments, ``-n`` would be silently ignored. See :ghpull:`10308`
|
|
||||||
-
|
|
||||||
+Make ``%run -n -i ...`` work correctly. Earlier, if ``%run`` was passed both arguments, ``-n`` would be silently ignored. See :ghpull:`10308`
|
|
||||||
|
|
||||||
-The :cellmagic:`%%script` (as well as :cellmagic:`%%bash`,
|
|
||||||
-:cellmagic:`%%ruby`... ) cell magics now raise by default if the return code of
|
|
||||||
-the given code is non-zero (thus halting execution of further cells in a
|
|
||||||
-notebook). The behavior can be disable by passing the ``--no-raise-error`` flag.
|
|
||||||
+The ``%%script`` (as well as ``%%bash``, ``ruby``... ) cell magics now raise
|
|
||||||
+by default if the return code of the given code is non-zero (thus halting
|
|
||||||
+execution of further cells in a notebook). The behavior can be disable by
|
|
||||||
+passing the ``--no-raise-error`` flag.
|
|
||||||
|
|
||||||
|
|
||||||
Deprecations
|
|
||||||
diff -up ipython-7.2.0/docs/sphinxext/github.py.orig ipython-7.2.0/docs/sphinxext/github.py
|
|
||||||
--- ipython-7.2.0/docs/sphinxext/github.py.orig 2018-11-29 20:17:21.000000000 -0500
|
|
||||||
+++ ipython-7.2.0/docs/sphinxext/github.py 2019-01-02 13:11:40.900772934 -0500
|
|
||||||
@@ -19,9 +19,6 @@ Authors
|
|
||||||
|
|
||||||
from docutils import nodes, utils
|
|
||||||
from docutils.parsers.rst.roles import set_classes
|
|
||||||
-from sphinx.util.logging import getLogger
|
|
||||||
-
|
|
||||||
-info = getLogger(__name__).info
|
|
||||||
|
|
||||||
def make_link_node(rawtext, app, type, slug, options):
|
|
||||||
"""Create a link to a github resource.
|
|
||||||
@@ -78,7 +75,7 @@ def ghissue_role(name, rawtext, text, li
|
|
||||||
prb = inliner.problematic(rawtext, rawtext, msg)
|
|
||||||
return [prb], [msg]
|
|
||||||
app = inliner.document.settings.env.app
|
|
||||||
- #info('issue %r' % text)
|
|
||||||
+ #app.info('issue %r' % text)
|
|
||||||
if 'pull' in name.lower():
|
|
||||||
category = 'pull'
|
|
||||||
elif 'issue' in name.lower():
|
|
||||||
@@ -108,7 +105,7 @@ def ghuser_role(name, rawtext, text, lin
|
|
||||||
:param content: The directive content for customization.
|
|
||||||
"""
|
|
||||||
app = inliner.document.settings.env.app
|
|
||||||
- #info('user link %r' % text)
|
|
||||||
+ #app.info('user link %r' % text)
|
|
||||||
ref = 'https://www.github.com/' + text
|
|
||||||
node = nodes.reference(rawtext, text, refuri=ref, **options)
|
|
||||||
return [node], []
|
|
||||||
@@ -129,7 +126,7 @@ def ghcommit_role(name, rawtext, text, l
|
|
||||||
:param content: The directive content for customization.
|
|
||||||
"""
|
|
||||||
app = inliner.document.settings.env.app
|
|
||||||
- #info('user link %r' % text)
|
|
||||||
+ #app.info('user link %r' % text)
|
|
||||||
try:
|
|
||||||
base = app.config.github_project_url
|
|
||||||
if not base:
|
|
||||||
@@ -149,7 +146,7 @@ def setup(app):
|
|
||||||
|
|
||||||
:param app: Sphinx application context.
|
|
||||||
"""
|
|
||||||
- info('Initializing GitHub plugin')
|
|
||||||
+ app.info('Initializing GitHub plugin')
|
|
||||||
app.add_role('ghissue', ghissue_role)
|
|
||||||
app.add_role('ghpull', ghissue_role)
|
|
||||||
app.add_role('ghuser', ghuser_role)
|
|
||||||
diff -up ipython-7.2.0/docs/sphinxext/magics.py.orig ipython-7.2.0/docs/sphinxext/magics.py
|
|
||||||
--- ipython-7.2.0/docs/sphinxext/magics.py.orig 2018-11-29 20:17:21.000000000 -0500
|
|
||||||
+++ ipython-7.2.0/docs/sphinxext/magics.py 2019-01-02 13:12:31.588569503 -0500
|
|
||||||
@@ -37,10 +37,9 @@ class CellMagicRole(LineMagicRole):
|
|
||||||
|
|
||||||
def setup(app):
|
|
||||||
app.add_object_type('magic', 'magic', 'pair: %s; magic command', parse_magic)
|
|
||||||
- app.add_role_to_domain('std', 'magic', LineMagicRole(), override=True)
|
|
||||||
-
|
|
||||||
+ StandardDomain.roles['magic'] = LineMagicRole()
|
|
||||||
app.add_object_type('cellmagic', 'cellmagic', 'pair: %s; cell magic', parse_cell_magic)
|
|
||||||
- app.add_role_to_domain('std', 'cellmagic', CellMagicRole(), override=True)
|
|
||||||
+ StandardDomain.roles['cellmagic'] = CellMagicRole()
|
|
||||||
|
|
||||||
metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
|
|
||||||
return metadata
|
|
Loading…
Reference in New Issue
Block a user