Accepting request 1065614 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1065614
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=36
This commit is contained in:
Dominique Leuenberger 2023-02-14 15:42:35 +00:00 committed by Git OBS Bridge
commit 127eb8f104
4 changed files with 41 additions and 6 deletions

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Mon Feb 13 12:25:57 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Remove fix_test_compiled_signature_annotation_string.patch
All tests pass without it
-------------------------------------------------------------------
Sun Feb 12 23:52:07 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Add supported_pythons_310_311.patch which includes '3.11' among
_SUPPORTED_PYTHONS (gh#davidhalter/jedi#1914).
-------------------------------------------------------------------
Sat Feb 11 00:28:05 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Add fix_test_compiled_signature_annotation_string.patch to make
test passing with Python 3.10+ (gh#davidhalter/jedi#1732).
-------------------------------------------------------------------
Tue Jan 10 04:01:51 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>

View File

@ -28,6 +28,10 @@ Source0: https://files.pythonhosted.org/packages/source/j/jedi/jedi-%{ver
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}
BuildRequires: %{python_module pytest >= 5}
@ -36,7 +40,7 @@ BuildRequires: %{python_module typing}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# The author of jedi and parso takes pinning very seriously, adhere to it!
# See pinning note above
Requires: (python-parso >= 0.8.0 with python-parso < 0.9)
BuildArch: noarch
%python_subpackages
@ -84,7 +88,7 @@ skiptests+=" or test_get_default_environment_when_embedded"
%files %{python_files}
%doc AUTHORS.txt CHANGELOG.rst README.rst
%license LICENSE.txt
%{python_sitelib}/jedi-%{version}.dist-info
%{python_sitelib}/jedi/
%{python_sitelib}/jedi-%{version}*-info
%{python_sitelib}/jedi
%changelog

View File

@ -9,11 +9,9 @@ Correct the parameters for both of those.
Fixes #1858
---
test/test_api/test_interpreter.py | 6 ++++--
test/test_api/test_interpreter.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/test_api/test_interpreter.py b/test/test_api/test_interpreter.py
index 848bca746..8e69cafc9 100644
--- a/test/test_api/test_interpreter.py
+++ b/test/test_api/test_interpreter.py
@@ -656,10 +656,12 @@ def bar():

View File

@ -0,0 +1,15 @@
---
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)