Date: Tuesday, March 17, 2020 @ 11:16:53 Author: jelle Revision: 600148
archrelease: copy trunk to community-any Added: python-parso/repos/community-any/PKGBUILD (from rev 600147, python-parso/trunk/PKGBUILD) python-parso/repos/community-any/python3.8.2-compat.patch (from rev 600147, python-parso/trunk/python3.8.2-compat.patch) Deleted: python-parso/repos/community-any/PKGBUILD --------------------------+ PKGBUILD | 69 +++++++++++++++++++++------------------------ python3.8.2-compat.patch | 25 ++++++++++++++++ 2 files changed, 58 insertions(+), 36 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-03-17 11:16:30 UTC (rev 600147) +++ PKGBUILD 2020-03-17 11:16:53 UTC (rev 600148) @@ -1,36 +0,0 @@ -# Maintainer: Jelle van der Waa <je...@vdwaa.nl> - -_pkgbase=parso -pkgbase=python-parso -pkgname=('python-parso' 'python2-parso') -pkgver=0.6.1 -pkgrel=1 -pkgdesc="Python parser that supports error recovery and round-trip parsing for different Python versions" -arch=('any') -url="https://github.com/davidhalter/parso" -license=('MIT') -makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools') -checkdepends=('python-pytest' 'python2-pytest') -source=("$pkgname-$pkgver.tar.gz::https://github.com/davidhalter/parso/archive/v$pkgver.tar.gz") -sha512sums=('98cc20a3378c89b870df5e5df52f2c2091c1a133ea9701141ed90edbb05c5b8ddf30dcc19069cc19666f34e37f8ca64e37bfd701314adb24b0a10ab197862cf1') - -check() { - cd "$_pkgbase-$pkgver" - pytest test -} - -package_python-parso() { - depends=('python') - cd "$_pkgbase-$pkgver" - python3 setup.py install --root="$pkgdir/" --optimize=1 - - install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_python2-parso() { - depends=('python2') - cd "$_pkgbase-$pkgver" - python2 setup.py install --root="$pkgdir/" --optimize=1 - - install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} Copied: python-parso/repos/community-any/PKGBUILD (from rev 600147, python-parso/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-03-17 11:16:53 UTC (rev 600148) @@ -0,0 +1,33 @@ +# Maintainer: Jelle van der Waa <je...@vdwaa.nl> + +_pkgbase=parso +pkgname=python-parso +pkgver=0.6.2 +pkgrel=1 +pkgdesc="Python parser that supports error recovery and round-trip parsing for different Python versions" +arch=('any') +url="https://github.com/davidhalter/parso" +license=('MIT') +depends=('python') +makedepends=('python-setuptools') +checkdepends=('python-pytest') +source=("$pkgname-$pkgver.tar.gz::https://github.com/davidhalter/parso/archive/v$pkgver.tar.gz" "python3.8.2-compat.patch") +sha512sums=('da011c6fbab3ca2157c8934086cc0db0b7a37f5cd67debe70f56429f409de8762b124948ee75ac65779b806d8aaab759ee790eacb580910f3609ffd280dba2a8' + '819f1e5821cdb992dff2d5e6fed0bc57694f8acd2ceb7560eaa084e5f1662c1bc65d16d88de82414d93d2d83e73cd093ef61120dbecca377b55cf8ab6989a506') + +prepare() { + cd "$_pkgbase-$pkgver" + patch -Np1 -i ${srcdir}/python3.8.2-compat.patch +} + +check() { + cd "$_pkgbase-$pkgver" + pytest test +} + +package_python-parso() { + cd "$_pkgbase-$pkgver" + python3 setup.py install --root="$pkgdir/" --optimize=1 + + install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} Copied: python-parso/repos/community-any/python3.8.2-compat.patch (from rev 600147, python-parso/trunk/python3.8.2-compat.patch) =================================================================== --- python3.8.2-compat.patch (rev 0) +++ python3.8.2-compat.patch 2020-03-17 11:16:53 UTC (rev 600148) @@ -0,0 +1,25 @@ +From 0234a70e95199d4b9bb257d9ea7a5fcb8baa8c91 Mon Sep 17 00:00:00 2001 +From: Dave Halter <davidhalte...@gmail.com> +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])