Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-ipython715 for openSUSE:Factory checked in at 2021-02-04 20:23:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ipython715 (Old) and /work/SRC/openSUSE:Factory/.python-ipython715.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ipython715" Thu Feb 4 20:23:21 2021 rev:2 rq:868549 version:7.15.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ipython715/python-ipython715.changes 2020-12-18 19:59:44.878085535 +0100 +++ /work/SRC/openSUSE:Factory/.python-ipython715.new.28504/python-ipython715.changes 2021-02-04 20:24:05.750828241 +0100 @@ -1,0 +2,6 @@ +Mon Feb 1 23:34:07 UTC 2021 - Ben Greiner <c...@bnavigator.de> + +- Backport Jedi 0.18 support ipython-jedi018.patch + gh#ipython/ipython#12793 + +------------------------------------------------------------------- New: ---- ipython-jedi018.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ipython715.spec ++++++ --- /var/tmp/diff_new_pack.f77Vgm/_old 2021-02-04 20:24:06.374829190 +0100 +++ /var/tmp/diff_new_pack.f77Vgm/_new 2021-02-04 20:24:06.378829196 +0100 @@ -1,7 +1,7 @@ # -# spec file for package python-ipython +# spec file for package python-ipython715 # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -38,6 +38,8 @@ URL: https://github.com/ipython/ipython Source: https://files.pythonhosted.org/packages/source/i/ipython/ipython-%{version}.tar.gz Source1: https://raw.githubusercontent.com/jupyter/qtconsole/4.0.0/qtconsole/resources/icon/JupyterConsole.svg +# PATCH-FEATURE-UPSTREAM ipython-jedi018.patch -- gh#ipython/ipython#12793 Support Jedi 0.18 for this legacy release +Patch1: ipython-jedi018.patch BuildRequires: %{python_module backcall} BuildRequires: %{python_module base >= 3.5} BuildRequires: %{python_module setuptools >= 18.5} @@ -47,7 +49,7 @@ Requires: python-backcall Requires: python-base >= 3.5 Requires: python-decorator -Requires: python-jedi >= 0.10 +Requires: python-jedi >= 0.16 Requires: python-pexpect Requires: python-pickleshare Requires: python-prompt_toolkit < 3.1 @@ -146,7 +148,7 @@ uses %{name} in the same version. %prep -%setup -q -n ipython-%{version} +%autosetup -p1 -n ipython-%{version} %build %python_build ++++++ ipython-jedi018.patch ++++++ >From 5e979ec2119487e0d6ac33292f07ab62826645a5 Mon Sep 17 00:00:00 2001 From: Diego Fernandez <aiguo.fernan...@gmail.com> Date: Thu, 26 Mar 2020 14:07:22 -0600 Subject: [PATCH 1/3] Backport PR #12207 on 7.x This should make jedi 0.18 compatible with 7.x. Pinning is not an option as the resolver is free to pick older IPython with jedi 0.18 -- Bump jedi to at least 0.16.0 and fix deprecated function usage --- IPython/core/completer.py | 5 +++-- setup.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) Index: ipython-7.15.0/IPython/core/completer.py =================================================================== --- ipython-7.15.0.orig/IPython/core/completer.py +++ ipython-7.15.0/IPython/core/completer.py @@ -110,26 +110,23 @@ current development version to get bette # Copyright (C) 2001 Python Software Foundation, www.python.org -import __main__ import builtins as builtin_mod import glob -import time import inspect import itertools import keyword import os import re +import string import sys +import time import unicodedata -import string import warnings - from contextlib import contextmanager from importlib import import_module -from typing import Iterator, List, Tuple, Iterable from types import SimpleNamespace +from typing import Iterable, Iterator, List, Tuple -from traitlets.config.configurable import Configurable from IPython.core.error import TryNext from IPython.core.inputtransformer2 import ESC_MAGIC from IPython.core.latex_symbols import latex_symbols, reverse_latex_symbol @@ -137,7 +134,10 @@ from IPython.core.oinspect import Inspec from IPython.utils import generics from IPython.utils.dir2 import dir2, get_real_method from IPython.utils.process import arg_split -from traitlets import Bool, Enum, observe, Int +from traitlets import Bool, Enum, Int, observe +from traitlets.config.configurable import Configurable + +import __main__ # skip module docstests skip_doctest = True @@ -988,7 +988,8 @@ def _make_signature(completion)-> str: """ - return '(%s)'% ', '.join([f for f in (_formatparamchildren(p) for p in completion.params) if f]) + return '(%s)'% ', '.join([f for f in (_formatparamchildren(p) for signature in completion.get_signatures() + for p in signature.defined_names()) if f]) class IPCompleter(Completer): """Extension of the completer class with IPython-specific features""" @@ -1370,8 +1371,7 @@ class IPCompleter(Completer): else: raise ValueError("Don't understand self.omit__names == {}".format(self.omit__names)) - interpreter = jedi.Interpreter( - text[:offset], namespaces, column=cursor_column, line=cursor_line + 1) + interpreter = jedi.Interpreter(text[:offset], namespaces) try_jedi = True try: @@ -1398,7 +1398,7 @@ class IPCompleter(Completer): if not try_jedi: return [] try: - return filter(completion_filter, interpreter.completions()) + return filter(completion_filter, interpreter.complete(column=cursor_column, line=cursor_line + 1)) except Exception as e: if self.debug: return [_FakeJediCompletion('Oops Jedi has crashed, please report a bug with the following:\n"""\n%s\ns"""' % (e))] Index: ipython-7.15.0/setup.py =================================================================== --- ipython-7.15.0.orig/setup.py +++ ipython-7.15.0/setup.py @@ -186,7 +186,7 @@ extras_require = dict( install_requires = [ 'setuptools>=18.5', - 'jedi>=0.10', + 'jedi>=0.16', 'decorator', 'pickleshare', 'traitlets>=4.2', Index: ipython-7.15.0/IPython/terminal/ptutils.py =================================================================== --- ipython-7.15.0.orig/IPython/terminal/ptutils.py +++ ipython-7.15.0/IPython/terminal/ptutils.py @@ -9,6 +9,8 @@ not to be used outside IPython. import unicodedata from wcwidth import wcwidth +import sys +import traceback from IPython.core.completer import ( provisionalcompleter, cursor_to_position,