From 4ca0b938bda22f093fa46bd9a64dc48ba61e15ed291482200eed3d5e797fb320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Thu, 5 Mar 2020 12:25:40 +0000 Subject: [PATCH 1/2] - update to 0.6.2 * Add Grammar.refactor (might still be subject to change until 0.7.0) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parso?expand=0&rev=24 --- parso-0.6.1.tar.gz | 3 --- parso-0.6.2.tar.gz | 3 +++ python-parso.changes | 6 ++++++ python-parso.spec | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) delete mode 100644 parso-0.6.1.tar.gz create mode 100644 parso-0.6.2.tar.gz diff --git a/parso-0.6.1.tar.gz b/parso-0.6.1.tar.gz deleted file mode 100644 index b51ca4b..0000000 --- a/parso-0.6.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:56b2105a80e9c4df49de85e125feb6be69f49920e121406f15e7acde6c9dfc57 -size 394642 diff --git a/parso-0.6.2.tar.gz b/parso-0.6.2.tar.gz new file mode 100644 index 0000000..6c79a88 --- /dev/null +++ b/parso-0.6.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c5659e0c6eba20636f99a04f469798dca8da279645ce5c387315b2c23912157 +size 394900 diff --git a/python-parso.changes b/python-parso.changes index ec9069a..5e5d89c 100644 --- a/python-parso.changes +++ b/python-parso.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Mar 5 12:25:09 UTC 2020 - Ondřej Súkup + +- update to 0.6.2 + * Add Grammar.refactor (might still be subject to change until 0.7.0) + ------------------------------------------------------------------- Tue Feb 4 09:32:19 UTC 2020 - Ondřej Súkup diff --git a/python-parso.spec b/python-parso.spec index 6a3b071..80d8411 100644 --- a/python-parso.spec +++ b/python-parso.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-parso -Version: 0.6.1 +Version: 0.6.2 Release: 0 Summary: An autocompletion tool for Python License: MIT AND Python-2.0 From 78ac56a74fc52a8bdb1412d0e1a4bc0e9c179b1e6def9130c5fef2dc6cbe7435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Fri, 6 Mar 2020 09:24:08 +0000 Subject: [PATCH 2/2] * add py_38.patch - fix tests with py-3.8.2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parso?expand=0&rev=25 --- py_38.patch | 25 +++++++++++++++++++++++++ python-parso.changes | 1 + python-parso.spec | 3 ++- 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 py_38.patch diff --git a/py_38.patch b/py_38.patch new file mode 100644 index 0000000..2e373f4 --- /dev/null +++ b/py_38.patch @@ -0,0 +1,25 @@ +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 5e5d89c..5d239fa 100644 --- a/python-parso.changes +++ b/python-parso.changes @@ -3,6 +3,7 @@ Thu Mar 5 12:25:09 UTC 2020 - Ondřej Súkup - update to 0.6.2 * Add Grammar.refactor (might still be subject to change until 0.7.0) + * add py_38.patch - fix tests with py-3.8.2 ------------------------------------------------------------------- Tue Feb 4 09:32:19 UTC 2020 - Ondřej Súkup diff --git a/python-parso.spec b/python-parso.spec index 80d8411..5a6bcdd 100644 --- a/python-parso.spec +++ b/python-parso.spec @@ -22,9 +22,9 @@ Version: 0.6.2 Release: 0 Summary: An autocompletion tool for Python License: MIT AND Python-2.0 -Group: Development/Languages/Python 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,6 +46,7 @@ tree. %prep %setup -q -n parso-%{version} +%patch0 -p1 %build %python_build