[arch-commits] Commit in python-parso/repos/community-any (3 files)

Jelle van der Waa jelle at archlinux.org
Sun May 3 16:15:03 UTC 2020


    Date: Sunday, May 3, 2020 @ 16:15:02
  Author: jelle
Revision: 624603

archrelease: copy trunk to community-any

Added:
  python-parso/repos/community-any/PKGBUILD
    (from rev 624602, python-parso/trunk/PKGBUILD)
Deleted:
  python-parso/repos/community-any/PKGBUILD
  python-parso/repos/community-any/python3.8.2-compat.patch

--------------------------+
 PKGBUILD                 |   60 ++++++++++++++++++++-------------------------
 python3.8.2-compat.patch |   25 ------------------
 2 files changed, 27 insertions(+), 58 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-03 16:14:48 UTC (rev 624602)
+++ PKGBUILD	2020-05-03 16:15:02 UTC (rev 624603)
@@ -1,33 +0,0 @@
-# Maintainer: Jelle van der Waa <jelle at 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/PKGBUILD (from rev 624602, python-parso/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-03 16:15:02 UTC (rev 624603)
@@ -0,0 +1,27 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+
+_pkgbase=parso
+pkgname=python-parso
+pkgver=0.7.0
+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")
+sha512sums=('41ad60b1d7dff682281059aabff0d43ccd3048b6cc6ee3e9e141d4a0a965fd99449f6d3f23689914c1f7bda371e3cc86266775a1c23fb1c430ea689c916fbb71')
+
+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"
+}

Deleted: python3.8.2-compat.patch
===================================================================
--- python3.8.2-compat.patch	2020-05-03 16:14:48 UTC (rev 624602)
+++ python3.8.2-compat.patch	2020-05-03 16:15:02 UTC (rev 624603)
@@ -1,25 +0,0 @@
-From 0234a70e95199d4b9bb257d9ea7a5fcb8baa8c91 Mon Sep 17 00:00:00 2001
-From: Dave Halter <davidhalter88 at 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])



More information about the arch-commits mailing list