aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-07-13 15:44:43 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-07-13 15:55:40 +0300
commit585f8fd57a4ab83eca0890f5c05e959b79ef4ea4 (patch)
tree6714fb98ebef8ae413eaf223e3a7b29cf01cedc6
parente12a75707d4c42a0081e951c9142db0bf460d802 (diff)
downloadydb-585f8fd57a4ab83eca0890f5c05e959b79ef4ea4.tar.gz
Intermediate changes
-rw-r--r--contrib/python/ipython/py3/.dist-info/METADATA3
-rw-r--r--contrib/python/ipython/py3/IPython/core/async_helpers.py1
-rw-r--r--contrib/python/ipython/py3/IPython/core/interactiveshell.py2
-rw-r--r--contrib/python/ipython/py3/IPython/core/release.py2
-rw-r--r--contrib/python/ipython/py3/IPython/lib/pretty.py12
-rw-r--r--contrib/python/ipython/py3/IPython/terminal/interactiveshell.py5
-rw-r--r--contrib/python/ipython/py3/IPython/terminal/pt_inputhooks/asyncio.py1
-rw-r--r--contrib/python/ipython/py3/IPython/testing/decorators.py11
-rw-r--r--contrib/python/ipython/py3/IPython/utils/_process_emscripten.py1
-rw-r--r--contrib/python/ipython/py3/IPython/utils/_sysinfo.py2
-rw-r--r--contrib/python/ipython/py3/IPython/utils/io.py2
-rw-r--r--contrib/python/ipython/py3/README.rst52
-rw-r--r--contrib/python/ipython/py3/ya.make2
13 files changed, 31 insertions, 65 deletions
diff --git a/contrib/python/ipython/py3/.dist-info/METADATA b/contrib/python/ipython/py3/.dist-info/METADATA
index d1b7f3be7d..a94cf97257 100644
--- a/contrib/python/ipython/py3/.dist-info/METADATA
+++ b/contrib/python/ipython/py3/.dist-info/METADATA
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: ipython
-Version: 8.25.0
+Version: 8.26.0
Summary: IPython: Productive Interactive Computing
Author: The IPython Development Team
Author-email: ipython-dev@python.org
@@ -76,6 +76,7 @@ Requires-Dist: pytest ; extra == 'test'
Requires-Dist: pytest-asyncio <0.22 ; extra == 'test'
Requires-Dist: testpath ; extra == 'test'
Requires-Dist: pickleshare ; extra == 'test'
+Requires-Dist: packaging ; extra == 'test'
Provides-Extra: test_extra
Requires-Dist: ipython[test] ; extra == 'test_extra'
Requires-Dist: curio ; extra == 'test_extra'
diff --git a/contrib/python/ipython/py3/IPython/core/async_helpers.py b/contrib/python/ipython/py3/IPython/core/async_helpers.py
index 0e7db0bb54..4dfac54103 100644
--- a/contrib/python/ipython/py3/IPython/core/async_helpers.py
+++ b/contrib/python/ipython/py3/IPython/core/async_helpers.py
@@ -10,7 +10,6 @@ explicitly to actually raise a SyntaxError and stay as close as possible to
Python semantics.
"""
-
import ast
import asyncio
import inspect
diff --git a/contrib/python/ipython/py3/IPython/core/interactiveshell.py b/contrib/python/ipython/py3/IPython/core/interactiveshell.py
index 86eb7191e8..d05cb451f8 100644
--- a/contrib/python/ipython/py3/IPython/core/interactiveshell.py
+++ b/contrib/python/ipython/py3/IPython/core/interactiveshell.py
@@ -2033,7 +2033,7 @@ class InteractiveShell(SingletonConfigurable):
print(self.InteractiveTB.stb2text(stb))
print("The original exception:")
stb = self.InteractiveTB.structured_traceback(
- (etype,value,tb), tb_offset=tb_offset
+ etype, value, tb, tb_offset=tb_offset
)
return stb
diff --git a/contrib/python/ipython/py3/IPython/core/release.py b/contrib/python/ipython/py3/IPython/core/release.py
index 431ce99874..b72524d6ff 100644
--- a/contrib/python/ipython/py3/IPython/core/release.py
+++ b/contrib/python/ipython/py3/IPython/core/release.py
@@ -16,7 +16,7 @@
# release. 'dev' as a _version_extra string means this is a development
# version
_version_major = 8
-_version_minor = 25
+_version_minor = 26
_version_patch = 0
_version_extra = ".dev"
# _version_extra = "rc1"
diff --git a/contrib/python/ipython/py3/IPython/lib/pretty.py b/contrib/python/ipython/py3/IPython/lib/pretty.py
index 631445b24e..8a24632d60 100644
--- a/contrib/python/ipython/py3/IPython/lib/pretty.py
+++ b/contrib/python/ipython/py3/IPython/lib/pretty.py
@@ -406,8 +406,16 @@ class RepresentationPrinter(PrettyPrinter):
meth = cls._repr_pretty_
if callable(meth):
return meth(obj, self, cycle)
- if cls is not object \
- and callable(cls.__dict__.get('__repr__')):
+ if (
+ cls is not object
+ # check if cls defines __repr__
+ and "__repr__" in cls.__dict__
+ # check if __repr__ is callable.
+ # Note: we need to test getattr(cls, '__repr__')
+ # instead of cls.__dict__['__repr__']
+ # in order to work with descriptors like partialmethod,
+ and callable(_safe_getattr(cls, "__repr__", None))
+ ):
return _repr_pprint(obj, self, cycle)
return _default_pprint(obj, self, cycle)
diff --git a/contrib/python/ipython/py3/IPython/terminal/interactiveshell.py b/contrib/python/ipython/py3/IPython/terminal/interactiveshell.py
index bdc783c131..40e2c9a669 100644
--- a/contrib/python/ipython/py3/IPython/terminal/interactiveshell.py
+++ b/contrib/python/ipython/py3/IPython/terminal/interactiveshell.py
@@ -943,6 +943,11 @@ class TerminalInteractiveShell(InteractiveShell):
active_eventloop: Optional[str] = None
def enable_gui(self, gui: Optional[str] = None) -> None:
+ if gui:
+ from ..core.pylabtools import _convert_gui_from_matplotlib
+
+ gui = _convert_gui_from_matplotlib(gui)
+
if self.simple_prompt is True and gui is not None:
print(
f'Cannot install event loop hook for "{gui}" when running with `--simple-prompt`.'
diff --git a/contrib/python/ipython/py3/IPython/terminal/pt_inputhooks/asyncio.py b/contrib/python/ipython/py3/IPython/terminal/pt_inputhooks/asyncio.py
index d2499e11e6..8f6a7f4965 100644
--- a/contrib/python/ipython/py3/IPython/terminal/pt_inputhooks/asyncio.py
+++ b/contrib/python/ipython/py3/IPython/terminal/pt_inputhooks/asyncio.py
@@ -27,6 +27,7 @@ prompt_toolkit`s `patch_stdout`)::
In [4]: asyncio.ensure_future(f())
"""
+
from prompt_toolkit import __version__ as ptk_version
from IPython.core.async_helpers import get_asyncio_loop
diff --git a/contrib/python/ipython/py3/IPython/testing/decorators.py b/contrib/python/ipython/py3/IPython/testing/decorators.py
index af42f349d5..97e6918e44 100644
--- a/contrib/python/ipython/py3/IPython/testing/decorators.py
+++ b/contrib/python/ipython/py3/IPython/testing/decorators.py
@@ -147,10 +147,13 @@ skip_osx = skipif(sys.platform == 'darwin',"This test does not run under OS X")
# Decorators to skip tests if not on specific platforms.
-skip_if_not_win32 = skipif(sys.platform != 'win32',
- "This test only runs under Windows")
-skip_if_not_linux = skipif(not sys.platform.startswith('linux'),
- "This test only runs under Linux")
+skip_if_not_win32 = skipif(sys.platform != "win32", "This test only runs under Windows")
+skip_if_not_linux = skipif(
+ not sys.platform.startswith("linux"), "This test only runs under Linux"
+)
+skip_if_not_osx = skipif(
+ not sys.platform.startswith("darwin"), "This test only runs under macOS"
+)
_x11_skip_cond = (sys.platform not in ('darwin', 'win32') and
os.environ.get('DISPLAY', '') == '')
diff --git a/contrib/python/ipython/py3/IPython/utils/_process_emscripten.py b/contrib/python/ipython/py3/IPython/utils/_process_emscripten.py
index 05dcdc34d5..bfc2518462 100644
--- a/contrib/python/ipython/py3/IPython/utils/_process_emscripten.py
+++ b/contrib/python/ipython/py3/IPython/utils/_process_emscripten.py
@@ -3,7 +3,6 @@
This file is only meant to be imported by process.py, not by end-users.
"""
-
from ._process_common import arg_split
diff --git a/contrib/python/ipython/py3/IPython/utils/_sysinfo.py b/contrib/python/ipython/py3/IPython/utils/_sysinfo.py
index e2e484d493..14569760e1 100644
--- a/contrib/python/ipython/py3/IPython/utils/_sysinfo.py
+++ b/contrib/python/ipython/py3/IPython/utils/_sysinfo.py
@@ -1,2 +1,2 @@
# GENERATED BY setup.py
-commit = "40a5a37ca"
+commit = "e0c8289d9"
diff --git a/contrib/python/ipython/py3/IPython/utils/io.py b/contrib/python/ipython/py3/IPython/utils/io.py
index cef4319f92..abe30730ff 100644
--- a/contrib/python/ipython/py3/IPython/utils/io.py
+++ b/contrib/python/ipython/py3/IPython/utils/io.py
@@ -75,6 +75,8 @@ class Tee(object):
if not self._closed:
self.close()
+ def isatty(self):
+ return False
def ask_yes_no(prompt, default=None, interrupt=None):
"""Asks a question and returns a boolean (y/n) answer.
diff --git a/contrib/python/ipython/py3/README.rst b/contrib/python/ipython/py3/README.rst
index 2b179ab280..837c3fb84f 100644
--- a/contrib/python/ipython/py3/README.rst
+++ b/contrib/python/ipython/py3/README.rst
@@ -96,58 +96,6 @@ Documentation and installation instructions for older version of IPython can be
found on the `IPython website <https://ipython.org/documentation.html>`_
-
-IPython requires Python version 3 or above
-==========================================
-
-Starting with version 6.0, IPython does not support Python 2.7, 3.0, 3.1, or
-3.2.
-
-For a version compatible with Python 2.7, please install the 5.x LTS Long Term
-Support version.
-
-If you are encountering this error message you are likely trying to install or
-use IPython from source. You need to checkout the remote 5.x branch. If you are
-using git the following should work::
-
- $ git fetch origin
- $ git checkout 5.x
-
-If you encounter this error message with a regular install of IPython, then you
-likely need to update your package manager, for example if you are using `pip`
-check the version of pip with::
-
- $ pip --version
-
-You will need to update pip to the version 9.0.1 or greater. If you are not using
-pip, please inquiry with the maintainers of the package for your package
-manager.
-
-For more information see one of our blog posts:
-
- https://blog.jupyter.org/release-of-ipython-5-0-8ce60b8d2e8e
-
-As well as the following Pull-Request for discussion:
-
- https://github.com/ipython/ipython/pull/9900
-
-This error does also occur if you are invoking ``setup.py`` directly – which you
-should not – or are using ``easy_install`` If this is the case, use ``pip
-install .`` instead of ``setup.py install`` , and ``pip install -e .`` instead
-of ``setup.py develop`` If you are depending on IPython as a dependency you may
-also want to have a conditional dependency on IPython depending on the Python
-version::
-
- install_req = ['ipython']
- if sys.version_info[0] < 3 and 'bdist_wheel' not in sys.argv:
- install_req.remove('ipython')
- install_req.append('ipython<6')
-
- setup(
- ...
- install_requires=install_req
- )
-
Alternatives to IPython
=======================
diff --git a/contrib/python/ipython/py3/ya.make b/contrib/python/ipython/py3/ya.make
index 5a192f5089..ea8190df0e 100644
--- a/contrib/python/ipython/py3/ya.make
+++ b/contrib/python/ipython/py3/ya.make
@@ -2,7 +2,7 @@
PY3_LIBRARY()
-VERSION(8.25.0)
+VERSION(8.26.0)
LICENSE(BSD-3-Clause)