From fe6f721e0baca5900078ef33d6c90514e5687230bde3e5751baf0931ddc33814 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Thu, 10 Aug 2023 22:26:35 +0000 Subject: [PATCH] Accepting request 1103415 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/1103415 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=109 --- jedi-0.18.2.tar.gz | 3 --- jedi-0.19.0.tar.gz | 3 +++ python-jedi.changes | 14 ++++++++++++++ python-jedi.spec | 7 +------ support-python-311-typing.patch | 31 ------------------------------- supported_pythons_310_311.patch | 15 --------------- 6 files changed, 18 insertions(+), 55 deletions(-) delete mode 100644 jedi-0.18.2.tar.gz create mode 100644 jedi-0.19.0.tar.gz delete mode 100644 support-python-311-typing.patch delete mode 100644 supported_pythons_310_311.patch diff --git a/jedi-0.18.2.tar.gz b/jedi-0.18.2.tar.gz deleted file mode 100644 index 2752f3c..0000000 --- a/jedi-0.18.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bae794c30d07f6d910d32a7048af09b5a39ed740918da923c6b780790ebac612 -size 1225011 diff --git a/jedi-0.19.0.tar.gz b/jedi-0.19.0.tar.gz new file mode 100644 index 0000000..157565c --- /dev/null +++ b/jedi-0.19.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bcf9894f1753969cbac8022a8c2eaee06bfa3724e4192470aaffe7eb6272b0c4 +size 1227731 diff --git a/python-jedi.changes b/python-jedi.changes index 915042e..0d732e8 100644 --- a/python-jedi.changes +++ b/python-jedi.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Thu Aug 10 21:59:38 UTC 2023 - Arun Persaud + +- specfile: + * remove patch supported_pythons_310_311.patch, included upstream + * remove patch support-python-311-typing.patch, included upstreamx + +- update to version 0.19.0: + * Python 3.11 support + * Massive improvements in performance for Interpreter (e.g. IPython) + users. This especially affects pandas users with large datasets. + * Add jedi.settings.allow_unsafe_interpreter_executions to make it + easier for IPython users to avoid unsafe executions. + ------------------------------------------------------------------- Wed May 10 12:13:38 UTC 2023 - Ben Greiner diff --git a/python-jedi.spec b/python-jedi.spec index 8e7bc86..6b46e5e 100644 --- a/python-jedi.spec +++ b/python-jedi.spec @@ -19,7 +19,7 @@ %define skip_python2 1 %{?sle15_python_module_pythons} Name: python-jedi -Version: 0.18.2 +Version: 0.19.0 Release: 0 Summary: An autocompletion tool for Python License: MIT AND Python-2.0 @@ -27,11 +27,6 @@ Group: Development/Languages/Python URL: https://github.com/davidhalter/jedi Source0: https://files.pythonhosted.org/packages/source/j/jedi/jedi-%{version}.tar.gz Source1: %{name}-rpmlintrc -# PATCH-FIX-UPSTREAM gh#davidhalter/jedi#1903 -Patch0: support-python-311-typing.patch -# PATCH-FIX-UPSTREAM supported_pythons_310_311.patch gh#davidhalter/jedi#1914 mcepl@suse.com -# Add '3.11' among _SUPPORTED_PYTHONS -Patch2: supported_pythons_310_311.patch # The author of jedi and parso takes pinning very seriously, adhere to it! BuildRequires: %{python_module parso >= 0.8.0 with %python-parso < 0.9} BuildRequires: %{python_module pip} diff --git a/support-python-311-typing.patch b/support-python-311-typing.patch deleted file mode 100644 index 5eecf2c..0000000 --- a/support-python-311-typing.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 00e23ddcee220110086621ff5922fb9cffddf60a Mon Sep 17 00:00:00 2001 -From: Steve Kowalik -Date: Tue, 10 Jan 2023 14:52:24 +1100 -Subject: [PATCH] Support Python 3.11 typing changes - -Python 3.11 has changed typing so that unions now return forward -refrences instead of erroring, and typing.Any is now an _AnyMeta class. -Correct the parameters for both of those. - -Fixes #1858 ---- - test/test_api/test_interpreter.py | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - ---- a/test/test_api/test_interpreter.py -+++ b/test/test_api/test_interpreter.py -@@ -656,10 +656,12 @@ def bar(): - ({'return': 'typing.Union[str, int]'}, ['int', 'str'], ''), - ({'return': 'typing.Union["str", int]'}, - ['int', 'str'] if sys.version_info >= (3, 9) else ['int'], ''), -- ({'return': 'typing.Union["str", 1]'}, [], ''), -+ ({'return': 'typing.Union["str", 1]'}, -+ ['str'] if sys.version_info >= (3, 11) else [], ''), - ({'return': 'typing.Optional[str]'}, ['NoneType', 'str'], ''), - ({'return': 'typing.Optional[str, int]'}, [], ''), # Takes only one arg -- ({'return': 'typing.Any'}, [], ''), -+ ({'return': 'typing.Any'}, -+ ['_AnyMeta'] if sys.version_info >= (3, 11) else [], ''), - - ({'return': 'typing.Tuple[int, str]'}, - ['Tuple' if sys.version_info[:2] == (3, 6) else 'tuple'], ''), diff --git a/supported_pythons_310_311.patch b/supported_pythons_310_311.patch deleted file mode 100644 index 48eabc5..0000000 --- a/supported_pythons_310_311.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- - jedi/api/environment.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/jedi/api/environment.py -+++ b/jedi/api/environment.py -@@ -17,7 +17,7 @@ import parso - - _VersionInfo = namedtuple('VersionInfo', 'major minor micro') - --_SUPPORTED_PYTHONS = ['3.10', '3.9', '3.8', '3.7', '3.6'] -+_SUPPORTED_PYTHONS = ['3.11', '3.10', '3.9', '3.8', '3.7', '3.6'] - _SAFE_PATHS = ['/usr/bin', '/usr/local/bin'] - _CONDA_VAR = 'CONDA_PREFIX' - _CURRENT_VERSION = '%s.%s' % (sys.version_info.major, sys.version_info.minor)