[arch-commits] Commit in python-antlr4/trunk (PKGBUILD fix-tests.patch)

Konstantin Gizdov kgizdov at archlinux.org
Mon Jan 18 10:48:59 UTC 2021


    Date: Monday, January 18, 2021 @ 10:48:58
  Author: kgizdov
Revision: 822768

upgpkg: python-antlr4 4.9.1-1

Modified:
  python-antlr4/trunk/PKGBUILD
  python-antlr4/trunk/fix-tests.patch

-----------------+
 PKGBUILD        |   11 ++++++-----
 fix-tests.patch |   15 +++++++--------
 2 files changed, 13 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-18 10:48:38 UTC (rev 822767)
+++ PKGBUILD	2021-01-18 10:48:58 UTC (rev 822768)
@@ -1,9 +1,10 @@
-# Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Contributor: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
 
 _pkgname=antlr4
 pkgname=python-${_pkgname}
-pkgver=4.8
-pkgrel=2
+pkgver=4.9.1
+pkgrel=1
 pkgdesc="ANTLR4 runtime for Python"
 arch=('any')
 url="https://www.antlr.org/"
@@ -12,8 +13,8 @@
 makedepends=('python-setuptools')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/antlr/${_pkgname}/archive/${pkgver}.tar.gz"
         'fix-tests.patch')
-sha256sums=('992d52444b81ed75e52ea62f9f38ecb7652d5ce2a2130af143912b3042a6d77e'
-            'dd83a2cc00457123c8b52da018d05a7e80d251adba0f39bf287258f97892a698')
+sha256sums=('db170179917ce6fec7bc4ecf72edba36b97c9881e09e03af6ac0c901eba52a8f'
+            '3a1735cafc4794b4e7c268b1de3028001cacd181c99044ae6779420d2a2f5e32')
 
 prepare() {
   patch -Np1 -i "${srcdir}"/fix-tests.patch -d "${srcdir}/${_pkgname}-${pkgver}"

Modified: fix-tests.patch
===================================================================
--- fix-tests.patch	2021-01-18 10:48:38 UTC (rev 822767)
+++ fix-tests.patch	2021-01-18 10:48:58 UTC (rev 822768)
@@ -12,19 +12,18 @@
  from datetime import datetime
  import cProfile
  
-diff -aur antlr4-4.8-old/runtime/Python3/test/run.py antlr4-4.8-new/runtime/Python3/test/run.py
---- antlr4-4.8-old/runtime/Python3/test/run.py	2020-01-19 18:18:55.000000000 +0200
-+++ antlr4-4.8-new/runtime/Python3/test/run.py	2020-06-30 16:32:26.675359328 +0300
-@@ -3,6 +3,6 @@
+diff --color -aur --color antlr4-4.9.1-old/runtime/Python3/test/run.py antlr4-4.9.1-new/runtime/Python3/test/run.py
+--- antlr4-4.9.1-old/runtime/Python3/test/run.py	2021-01-05 21:22:02.000000000 +0200
++++ antlr4-4.9.1-new/runtime/Python3/test/run.py	2021-01-18 12:43:13.915624039 +0200
+@@ -3,7 +3,7 @@
  src_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'src')
  sys.path.insert(0,src_path)
  from TestTokenStreamRewriter import TestTokenStreamRewriter
 -from xpathtest import XPathTest
 +from .xpathtest import XPathTest
- import unittest
--unittest.main()
-\ No newline at end of file
-+unittest.main()
+ from TestFileStream import TestFileStream
+ from TestInputStream import TestInputStream
+ from TestIntervalSet import TestIntervalSet
 diff -aur antlr4-4.8-old/runtime/Python3/test/TestTokenStreamRewriter.py antlr4-4.8-new/runtime/Python3/test/TestTokenStreamRewriter.py
 --- antlr4-4.8-old/runtime/Python3/test/TestTokenStreamRewriter.py	2020-01-19 18:18:55.000000000 +0200
 +++ antlr4-4.8-new/runtime/Python3/test/TestTokenStreamRewriter.py	2020-06-30 16:32:36.462025917 +0300



More information about the arch-commits mailing list