From bf6edb107b7f22b80e5b2136ae462a7d41ea5b8e89f5c21cd75d84d6a64d3a3f Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sat, 10 Sep 2022 02:46:14 +0000 Subject: [PATCH 1/2] Accepting request 1002367 from home:apersaud:branches:devel:languages:python:jupyter update to latest version OBS-URL: https://build.opensuse.org/request/show/1002367 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=93 --- ipython-8.4.0.tar.gz | 3 --- ipython-8.5.0.tar.gz | 3 +++ ipython-pr13714-xxlimited.patch | 28 --------------------------- python-ipython.changes | 34 +++++++++++++++++++++++++++++++++ python-ipython.spec | 24 ++++++++++------------- 5 files changed, 47 insertions(+), 45 deletions(-) delete mode 100644 ipython-8.4.0.tar.gz create mode 100644 ipython-8.5.0.tar.gz delete mode 100644 ipython-pr13714-xxlimited.patch diff --git a/ipython-8.4.0.tar.gz b/ipython-8.4.0.tar.gz deleted file mode 100644 index f97faf7..0000000 --- a/ipython-8.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f2db3a10254241d9b447232cec8b424847f338d9d36f9a577a6192c332a46abd -size 5314601 diff --git a/ipython-8.5.0.tar.gz b/ipython-8.5.0.tar.gz new file mode 100644 index 0000000..3a25632 --- /dev/null +++ b/ipython-8.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:097bdf5cd87576fd066179c9f7f208004f7a6864ee1b20f37d346c0bcb099f84 +size 5319096 diff --git a/ipython-pr13714-xxlimited.patch b/ipython-pr13714-xxlimited.patch deleted file mode 100644 index d1d28d9..0000000 --- a/ipython-pr13714-xxlimited.patch +++ /dev/null @@ -1,28 +0,0 @@ -From d858213d4088237e1481038865bc52ccdd074053 Mon Sep 17 00:00:00 2001 -From: Lumir Balhar -Date: Fri, 29 Jul 2022 08:48:59 +0200 -Subject: [PATCH] xxlimited_35 module now has the same name in repr in Py 3.11 - -See https://github.com/python/cpython/commit/a87c9b538fbfc42883417c4d5e69f1a5922690e3 ---- - IPython/lib/tests/test_pretty.py | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/IPython/lib/tests/test_pretty.py b/IPython/lib/tests/test_pretty.py -index 86085166071..b93ab97eb9e 100644 ---- a/IPython/lib/tests/test_pretty.py -+++ b/IPython/lib/tests/test_pretty.py -@@ -141,9 +141,12 @@ def test_pprint_heap_allocated_type(): - Test that pprint works for heap allocated types. - """ - module_name = "xxlimited" if sys.version_info < (3, 10) else "xxlimited_35" -+ expected_output = ( -+ "xxlimited.Null" if sys.version_info < (3, 10, 6) else "xxlimited_35.Null" -+ ) - xxlimited = pytest.importorskip(module_name) - output = pretty.pretty(xxlimited.Null) -- assert output == "xxlimited.Null" -+ assert output == expected_output - - - def test_pprint_nomod(): diff --git a/python-ipython.changes b/python-ipython.changes index 4d4191f..bfd60c9 100644 --- a/python-ipython.changes +++ b/python-ipython.changes @@ -1,3 +1,37 @@ +------------------------------------------------------------------- +Thu Sep 8 14:37:43 UTC 2022 - Arun Persaud + +- specfile: + * remove patch ipython-pr13714-xxlimited.patch; included upstream + * update required versions + +- update to version 8.5.0: + * Added shortcut for accepting auto suggestion. The End key shortcut + for accepting auto-suggestion This binding works in Vi mode too, + provided TerminalInteractiveShell.emacs_bindings_in_vi_insert_mode + is set to be True :ghpull:`13566`. + * No popup in window for latex generation w hen generating latex + (e.g. via _latex_repr_) no popup window is shows under + Windows. :ghpull:`13679` + * Fixed error raised when attempting to tab-complete an input string + with consecutive periods or forward slashes (such as + "file:///var/log/..."). :ghpull:`13675` + * Relative filenames in Latex rendering : The latex_to_png_dvipng + command internally generates input and output file arguments to + latex and dvipis. These arguments are now generated as relative + files to the current working directory instead of absolute file + paths. This solves a problem where the current working directory + contains characters that are not handled properly by latex and + dvips. There are no changes to the user API. :ghpull:`13680` + * Stripping decorators bug: Fixed bug which meant that ipython code + blocks in restructured text documents executed with the + ipython-sphinx extension skipped any lines of code containing + python decorators. :ghpull:`13612` + * Allow some modules with frozen dataclasses to be + reloaded. :ghpull:`13732` + * Fix paste magic on wayland. :ghpull:`13671` + * show maxlen in deque's repr. :ghpull:`13648` + ------------------------------------------------------------------- Fri Aug 5 13:54:20 UTC 2022 - Ben Greiner diff --git a/python-ipython.spec b/python-ipython.spec index 30d157a..09ac140 100644 --- a/python-ipython.spec +++ b/python-ipython.spec @@ -24,17 +24,15 @@ %define psuffix %{nil} %bcond_with test %endif -# extra tests are skipped automatically, don't require these packages for Ring1 -%bcond_with localtest - %if 0%{?suse_version} > 1500 %bcond_without libalternatives %else %bcond_with libalternatives %endif - +# extra tests are skipped automatically, don't require these packages for Ring1 +%bcond_with localtest Name: python-ipython%{psuffix} -Version: 8.4.0 +Version: 8.5.0 Release: 0 Summary: Rich architecture for interactive computing with Python License: BSD-3-Clause @@ -42,16 +40,14 @@ Group: Development/Languages/Python 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-FIX-UPSTREAM ipython-pr13714-xxlimited.patch gh#ipython/ipython#13714 -Patch0: ipython-pr13714-xxlimited.patch -BuildRequires: %{python_module base >= 3.7} -BuildRequires: %{python_module setuptools >= 18.5} +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module setuptools >= 51.0.0} BuildRequires: %{pythons} BuildRequires: fdupes BuildRequires: python-rpm-macros >= 20210929 -Requires: (python-prompt_toolkit >= 2.0 with python-prompt_toolkit < 3.1) +Requires: (python-prompt_toolkit > 3.0.1 with python-prompt_toolkit < 3.1) # requires the full stdlib including sqlite3 -Requires: python >= 3.7 +Requires: python >= 3.8 Requires: python-backcall Requires: python-black Requires: python-decorator @@ -59,8 +55,8 @@ Requires: python-jedi >= 0.16 Requires: python-matplotlib-inline Requires: python-pexpect >= 4.3 Requires: python-pickleshare -Requires: python-pygments -Requires: python-setuptools >= 18.5 +Requires: python-pygments >= 2.4.0 +Requires: python-setuptools >= 51.0.0 Requires: python-stack-data Requires: python-traitlets >= 5 Recommends: jupyter @@ -89,7 +85,7 @@ BuildRequires: %{python_module ipython = %{version}} BuildRequires: %{python_module matplotlib} BuildRequires: %{python_module numpy >= 1.19} BuildRequires: %{python_module pandas} -BuildRequires: %{python_module pygments} +BuildRequires: %{python_module pygments >= 2.4.0} BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest} BuildRequires: %{python_module testpath} From 53c2524dee3a8e9cf223c05f39040683094fd19045226e01d6743552d86527ed Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sat, 10 Sep 2022 02:46:49 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=94 --- python-ipython.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/python-ipython.spec b/python-ipython.spec index 09ac140..ec91676 100644 --- a/python-ipython.spec +++ b/python-ipython.spec @@ -56,7 +56,6 @@ Requires: python-matplotlib-inline Requires: python-pexpect >= 4.3 Requires: python-pickleshare Requires: python-pygments >= 2.4.0 -Requires: python-setuptools >= 51.0.0 Requires: python-stack-data Requires: python-traitlets >= 5 Recommends: jupyter