From 913d57c80951100aecd85a177befd58e0f433927 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Aug 01 2023 11:23:30 +0000 Subject: Update to 0.19.0 (rhbz#2227382) --- diff --git a/1935.patch b/1935.patch deleted file mode 100644 index a1fb5b3..0000000 --- a/1935.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 483e78993df794b39ee4433310103c5fcc4c8e96 Mon Sep 17 00:00:00 2001 -From: Peter Law -Date: Sat, 27 May 2023 00:11:47 +0100 -Subject: [PATCH] `attrs`' `frozen` decorator also acts like a dataclass - -In 23.1.0 (specifically in https://github.com/python-attrs/attrs/commit/46053d703d99a6e7419fd291cbf546340690d69d) -the definition of the `frozen` decorator was tweaked slightly, such -that its type stub is separate from that for `define`. This means -that Jedi needs to be told about it as a separate member. - -I've manually checked that this still works with the prior version -of `attrs`. - -Fixes https://github.com/davidhalter/jedi/issues/1929 ---- - jedi/plugins/stdlib.py | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/jedi/plugins/stdlib.py b/jedi/plugins/stdlib.py -index 81803090e..e1004ec81 100644 ---- a/jedi/plugins/stdlib.py -+++ b/jedi/plugins/stdlib.py -@@ -808,9 +808,11 @@ def _os_path_join(args_set, callback): - # https://www.attrs.org/en/stable/names.html - 'attr': { - 'define': _dataclass, -+ 'frozen': _dataclass, - }, - 'attrs': { - 'define': _dataclass, -+ 'frozen': _dataclass, - }, - 'os.path': { - 'dirname': _create_string_input_function(os.path.dirname), diff --git a/python-jedi.spec b/python-jedi.spec index 6b0913a..0ea1295 100644 --- a/python-jedi.spec +++ b/python-jedi.spec @@ -16,8 +16,8 @@ than all other static analysis frameworks for Python.} %global typeshed_commit ae9d4f4b21bb5e1239816c301da7b1ea904b44c3 Name: python-jedi -Version: 0.18.2 -Release: 6%{?dist} +Version: 0.19.0 +Release: 1%{?dist} Summary: An auto completion tool for Python that can be used for text editors # jedi is MIT @@ -31,9 +31,6 @@ Source1: https://github.com/davidhalter/django-stubs/archive/%{django_stu Source2: https://github.com/davidhalter/typeshed/archive/%{typeshed_commit}/typeshed-%{typeshed_commit}.tar.gz BuildArch: noarch -# Fixes compatibility with attrs 23.1.0 -Patch: https://github.com/davidhalter/jedi/pull/1935.patch - %description %{common_description} %package -n python3-jedi @@ -78,18 +75,15 @@ sed -e 's/pytest<7.0.0/pytest/' \ %check %if %{with tests} -# TODO investigate failing / skipped tests -# venv_and_pths: %%pytest manipulates the sys.path -# Around 15 tests have some troubles with Python 3.11 -# Reported upstream: https://github.com/davidhalter/jedi/issues/1858 -%pytest --ignore test/test_integration.py -k \ - "not venv_and_pths and \ - not test_import and \ - not test_find_system_environments and \ - not test_string_annotation and \ - not test_find_module_not_package and \ - not test_infer_and_goto and \ - not test_goto_stubs" +# %%pytest manipulates the sys.path +# test_compiled_singature +# - https://github.com/davidhalter/jedi/issues/1952 +# - https://github.com/python/cpython/issues/107526 +%pytest -k "\ + not test_venv_and_pths and \ + not test_compiled_signature and \ + not test_find_system_environments and \ + not test_import" %else %pyproject_check_import %endif @@ -100,6 +94,9 @@ sed -e 's/pytest<7.0.0/pytest/' \ %changelog +* Tue Aug 01 2023 Lumír Balhar - 0.19.0-1 +- Update to 0.19.0 (rhbz#2227382) + * Fri Jul 21 2023 Fedora Release Engineering - 0.18.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild diff --git a/sources b/sources index de871bd..7e14abb 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (typeshed-ae9d4f4b21bb5e1239816c301da7b1ea904b44c3.tar.gz) = b3b9da66b6c6e03e0b262b3262df31215a5e080468ca9ebf4332ed53d715cd3956db7067fad3ec267042ff704f81ac665c703ef2fd0c5b445d440bd8e52bf1aa SHA512 (django-stubs-fd057010f6cbf176f57d1099e82be46d39b99cb9.tar.gz) = 506322c132f94e6a1e88cdbde6027a566387731fa6ad59934f95c3511f49d90eff2a3138363811be648b096407d418cd1f801df0bc35b1e464ef181e4076ada1 -SHA512 (jedi-0.18.2.tar.gz) = 1df24190c7d468f388e7175f4625670df81cd9a533c8bde12b1e0eaf982a173bdd001bbea6680144cc50ca263fa2b802da5d71de555f81717f4377c46826d0d1 +SHA512 (jedi-0.19.0.tar.gz) = 0db8c7859e55057afc0367455c2f3817d8f05a19b6fbdc163a74f07854562c9c29307c7f8ac92e0ce9349353ac148f728a25b3be4cc62dc35f3060bdb79b02c8 +SHA512 (typeshed-ae9d4f4b21bb5e1239816c301da7b1ea904b44c3.tar.gz) = b3b9da66b6c6e03e0b262b3262df31215a5e080468ca9ebf4332ed53d715cd3956db7067fad3ec267042ff704f81ac665c703ef2fd0c5b445d440bd8e52bf1aa