From f574b5cd3d6fc3665c070be15a7262082a246b2d65b294bc49ce459e83605591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 14 Apr 2020 10:17:56 +0000 Subject: [PATCH] Accepting request 793803 from home:bnavigator:branches:devel:languages:python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - update to 0.7.0 * Fix a lot of annoying bugs in the diff parser. The fuzzer did not find issues anymore even after running it for more than 24 hours (500k tests). * Small grammar change: suites can now contain newlines even after a newline. This should really not matter if you don't use error recovery. It allows for nicer error recovery. - remove py_38.patch (merged upstream) From upstream's Jedí news thread [1]: ==Released parso 0.7.0. This is not a Jedi upgrade.== This should be backwards compatible with the last few Jedi versions, so please just upgrade. The upgrade helps a lot with some situations where after working with some code completions would stop. This was completely not reproducible (or it was very hard to reproduce), so people never really reported it. I fixed a lot of annoying bugs in the diff parser. The fuzzer finally and for the first time did not find issues anymore even after running it for more than 24 hours (500k tests). [1] https://github.com/davidhalter/jedi/issues/1063#issuecomment-613080481 OBS-URL: https://build.opensuse.org/request/show/793803 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parso?expand=0&rev=27 --- parso-0.6.2.tar.gz | 3 --- parso-0.7.0.tar.gz | 3 +++ py_38.patch | 25 ------------------------- python-parso.changes | 12 ++++++++++++ python-parso.spec | 4 +--- 5 files changed, 16 insertions(+), 31 deletions(-) delete mode 100644 parso-0.6.2.tar.gz create mode 100644 parso-0.7.0.tar.gz delete mode 100644 py_38.patch diff --git a/parso-0.6.2.tar.gz b/parso-0.6.2.tar.gz deleted file mode 100644 index 6c79a88..0000000 --- a/parso-0.6.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c5659e0c6eba20636f99a04f469798dca8da279645ce5c387315b2c23912157 -size 394900 diff --git a/parso-0.7.0.tar.gz b/parso-0.7.0.tar.gz new file mode 100644 index 0000000..7fb5cd9 --- /dev/null +++ b/parso-0.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:908e9fae2144a076d72ae4e25539143d40b8e3eafbaeae03c1bfe226f4cdf12c +size 399099 diff --git a/py_38.patch b/py_38.patch deleted file mode 100644 index 2e373f4..0000000 --- a/py_38.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 0234a70e95199d4b9bb257d9ea7a5fcb8baa8c91 Mon Sep 17 00:00:00 2001 -From: Dave Halter -Date: Fri, 28 Feb 2020 00:31:50 +0100 -Subject: [PATCH] Python 3.8.2 was released and an error message changed, fixes - #103 - ---- - parso/python/errors.py | 4 +--- - 1 file changed, 1 insertion(+), 3 deletions(-) - -diff --git a/parso/python/errors.py b/parso/python/errors.py -index a6f3ae9..eba4181 100644 ---- a/parso/python/errors.py -+++ b/parso/python/errors.py -@@ -976,9 +976,7 @@ def _check_assignment(self, node, is_deletion=False, is_namedexpr=False): - - if error is not None: - if is_namedexpr: -- # c.f. CPython bpo-39176, should be changed in next release -- # message = 'cannot use assignment expressions with %s' % error -- message = 'cannot use named assignment with %s' % error -+ message = 'cannot use assignment expressions with %s' % error - else: - cannot = "can't" if self._normalizer.version < (3, 8) else "cannot" - message = ' '.join([cannot, "delete" if is_deletion else "assign to", error]) diff --git a/python-parso.changes b/python-parso.changes index 5d239fa..7751c09 100644 --- a/python-parso.changes +++ b/python-parso.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Tue Apr 14 10:03:43 UTC 2020 - Benjamin Greiner + +- update to 0.7.0 + * Fix a lot of annoying bugs in the diff parser. The fuzzer did not find + issues anymore even after running it for more than 24 hours (500k tests). + * Small grammar change: suites can now contain newlines even after a newline. + This should really not matter if you don't use error recovery. It allows for + nicer error recovery. +- remove py_38.patch (merged upstream) + + ------------------------------------------------------------------- Thu Mar 5 12:25:09 UTC 2020 - Ondřej Súkup diff --git a/python-parso.spec b/python-parso.spec index 5a6bcdd..6bbcd01 100644 --- a/python-parso.spec +++ b/python-parso.spec @@ -18,13 +18,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-parso -Version: 0.6.2 +Version: 0.7.0 Release: 0 Summary: An autocompletion tool for Python License: MIT AND Python-2.0 URL: https://github.com/davidhalter/parso Source0: https://files.pythonhosted.org/packages/source/p/parso/parso-%{version}.tar.gz -Patch0: py_38.patch BuildRequires: %{python_module pytest >= 3.0.7} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -46,7 +45,6 @@ tree. %prep %setup -q -n parso-%{version} -%patch0 -p1 %build %python_build