[arch-commits] Commit in python-antlr4/repos/community-any (4 files)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Sun Nov 7 21:21:12 UTC 2021


    Date: Sunday, November 7, 2021 @ 21:21:11
  Author: kgizdov
Revision: 1038755

archrelease: copy trunk to community-any

Added:
  python-antlr4/repos/community-any/PKGBUILD
    (from rev 1038754, python-antlr4/trunk/PKGBUILD)
  python-antlr4/repos/community-any/fix-tests.patch
    (from rev 1038754, python-antlr4/trunk/fix-tests.patch)
Deleted:
  python-antlr4/repos/community-any/PKGBUILD
  python-antlr4/repos/community-any/fix-tests.patch

-----------------+
 PKGBUILD        |   76 +++++++++++++++++++--------------------
 fix-tests.patch |  104 +++++++++++++++++++++++++++---------------------------
 2 files changed, 90 insertions(+), 90 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-07 21:21:04 UTC (rev 1038754)
+++ PKGBUILD	2021-11-07 21:21:11 UTC (rev 1038755)
@@ -1,38 +0,0 @@
-# Maintainer: Konstantin Gizdov <arch at kge dot pw>
-# Contributor: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
-
-_pkgname=antlr4
-pkgname=python-${_pkgname}
-pkgver=4.9.2
-pkgrel=1
-pkgdesc="ANTLR4 runtime for Python"
-arch=('any')
-url="https://www.antlr.org/"
-license=('BSD')
-depends=('python')
-makedepends=('python-setuptools')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/antlr/${_pkgname}/archive/${pkgver}.tar.gz"
-        'fix-tests.patch')
-sha256sums=('6c86ebe2f3583ac19b199e704bdff9d70379f12347f7f2f1efa38051cd9a18cf'
-            '4e33e19f83a09997914e5650c5c19aa11ce2c79ad00b41c0759770cdfafd9a80')
-
-prepare() {
-  patch -Np1 -i "${srcdir}"/fix-tests.patch -d "${srcdir}/${_pkgname}-${pkgver}"
-}
-
-build() {
-  cd "${srcdir}/${_pkgname}-${pkgver}/runtime/Python3"
-  python setup.py build
-}
-
-check() {
-  cd "${srcdir}/${_pkgname}-${pkgver}/runtime/Python3"
-  python setup.py test
-}
-
-package() {
-  cd "${srcdir}/${_pkgname}-${pkgver}/runtime/Python3"
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -Dm644 "${srcdir}/${_pkgname}-${pkgver}"/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}"/LICENSE
-}

Copied: python-antlr4/repos/community-any/PKGBUILD (from rev 1038754, python-antlr4/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-07 21:21:11 UTC (rev 1038755)
@@ -0,0 +1,38 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Contributor: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
+
+_pkgname=antlr4
+pkgname=python-${_pkgname}
+pkgver=4.9.3
+pkgrel=1
+pkgdesc="ANTLR4 runtime for Python"
+arch=('any')
+url="https://www.antlr.org/"
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/antlr/${_pkgname}/archive/${pkgver}.tar.gz"
+        'fix-tests.patch')
+sha256sums=('efe4057d75ab48145d4683100fec7f77d7f87fa258707330cadd1f8e6f7eecae'
+            '4e33e19f83a09997914e5650c5c19aa11ce2c79ad00b41c0759770cdfafd9a80')
+
+prepare() {
+  patch -Np1 -i "${srcdir}"/fix-tests.patch -d "${srcdir}/${_pkgname}-${pkgver}"
+}
+
+build() {
+  cd "${srcdir}/${_pkgname}-${pkgver}/runtime/Python3"
+  python setup.py build
+}
+
+check() {
+  cd "${srcdir}/${_pkgname}-${pkgver}/runtime/Python3"
+  python setup.py test
+}
+
+package() {
+  cd "${srcdir}/${_pkgname}-${pkgver}/runtime/Python3"
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm644 "${srcdir}/${_pkgname}-${pkgver}"/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}"/LICENSE
+}

Deleted: fix-tests.patch
===================================================================
--- fix-tests.patch	2021-11-07 21:21:04 UTC (rev 1038754)
+++ fix-tests.patch	2021-11-07 21:21:11 UTC (rev 1038755)
@@ -1,52 +0,0 @@
-diff -aur antlr4-4.8-old/runtime/Python3/tests/ctest.py antlr4-4.8-new/runtime/Python3/tests/ctest.py
---- antlr4-4.8-old/runtime/Python3/tests/ctest.py	2020-01-19 18:18:55.000000000 +0200
-+++ antlr4-4.8-new/runtime/Python3/tests/ctest.py	2020-06-30 16:32:13.862026103 +0300
-@@ -7,8 +7,8 @@
- import sys
- sys.setrecursionlimit(4000)
- import antlr4
--from parser.cparser import CParser
--from parser.clexer import CLexer
-+from .parser.cparser import CParser
-+from .parser.clexer import CLexer
- from datetime import datetime
- import cProfile
- 
-diff --color -aur --color antlr4-4.9.1-old/runtime/Python3/tests/run.py antlr4-4.9.1-new/runtime/Python3/tests/run.py
---- antlr4-4.9.1-old/runtime/Python3/tests/run.py	2021-01-05 21:22:02.000000000 +0200
-+++ antlr4-4.9.1-new/runtime/Python3/tests/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
- from TestFileStream import TestFileStream
- from TestInputStream import TestInputStream
- from TestIntervalSet import TestIntervalSet
-diff -aur antlr4-4.8-old/runtime/Python3/tests/TestTokenStreamRewriter.py antlr4-4.8-new/runtime/Python3/tests/TestTokenStreamRewriter.py
---- antlr4-4.8-old/runtime/Python3/tests/TestTokenStreamRewriter.py	2020-01-19 18:18:55.000000000 +0200
-+++ antlr4-4.8-new/runtime/Python3/tests/TestTokenStreamRewriter.py	2020-06-30 16:32:36.462025917 +0300
-@@ -5,7 +5,7 @@
- import unittest
- 
- 
--from mocks.TestLexer import TestLexer, TestLexer2
-+from .mocks.TestLexer import TestLexer, TestLexer2
- from antlr4.TokenStreamRewriter import TokenStreamRewriter
- from antlr4.InputStream import InputStream
- from antlr4.CommonTokenStream import CommonTokenStream
-diff -aur antlr4-4.8-old/runtime/Python3/tests/xpathtest.py antlr4-4.8-new/runtime/Python3/tests/xpathtest.py
---- antlr4-4.8-old/runtime/Python3/tests/xpathtest.py	2020-01-19 18:18:55.000000000 +0200
-+++ antlr4-4.8-new/runtime/Python3/tests/xpathtest.py	2020-06-30 16:32:44.398692519 +0300
-@@ -2,8 +2,8 @@
- from antlr4 import InputStream, CommonTokenStream, TerminalNode
- from antlr4.xpath.XPath import XPath
- import unittest
--from expr.ExprParser import ExprParser
--from expr.ExprLexer  import ExprLexer
-+from .expr.ExprParser import ExprParser
-+from .expr.ExprLexer  import ExprLexer
- 
- def tokenToString(token, ruleNames):
-     if isinstance(token, TerminalNode):

Copied: python-antlr4/repos/community-any/fix-tests.patch (from rev 1038754, python-antlr4/trunk/fix-tests.patch)
===================================================================
--- fix-tests.patch	                        (rev 0)
+++ fix-tests.patch	2021-11-07 21:21:11 UTC (rev 1038755)
@@ -0,0 +1,52 @@
+diff -aur antlr4-4.8-old/runtime/Python3/tests/ctest.py antlr4-4.8-new/runtime/Python3/tests/ctest.py
+--- antlr4-4.8-old/runtime/Python3/tests/ctest.py	2020-01-19 18:18:55.000000000 +0200
++++ antlr4-4.8-new/runtime/Python3/tests/ctest.py	2020-06-30 16:32:13.862026103 +0300
+@@ -7,8 +7,8 @@
+ import sys
+ sys.setrecursionlimit(4000)
+ import antlr4
+-from parser.cparser import CParser
+-from parser.clexer import CLexer
++from .parser.cparser import CParser
++from .parser.clexer import CLexer
+ from datetime import datetime
+ import cProfile
+ 
+diff --color -aur --color antlr4-4.9.1-old/runtime/Python3/tests/run.py antlr4-4.9.1-new/runtime/Python3/tests/run.py
+--- antlr4-4.9.1-old/runtime/Python3/tests/run.py	2021-01-05 21:22:02.000000000 +0200
++++ antlr4-4.9.1-new/runtime/Python3/tests/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
+ from TestFileStream import TestFileStream
+ from TestInputStream import TestInputStream
+ from TestIntervalSet import TestIntervalSet
+diff -aur antlr4-4.8-old/runtime/Python3/tests/TestTokenStreamRewriter.py antlr4-4.8-new/runtime/Python3/tests/TestTokenStreamRewriter.py
+--- antlr4-4.8-old/runtime/Python3/tests/TestTokenStreamRewriter.py	2020-01-19 18:18:55.000000000 +0200
++++ antlr4-4.8-new/runtime/Python3/tests/TestTokenStreamRewriter.py	2020-06-30 16:32:36.462025917 +0300
+@@ -5,7 +5,7 @@
+ import unittest
+ 
+ 
+-from mocks.TestLexer import TestLexer, TestLexer2
++from .mocks.TestLexer import TestLexer, TestLexer2
+ from antlr4.TokenStreamRewriter import TokenStreamRewriter
+ from antlr4.InputStream import InputStream
+ from antlr4.CommonTokenStream import CommonTokenStream
+diff -aur antlr4-4.8-old/runtime/Python3/tests/xpathtest.py antlr4-4.8-new/runtime/Python3/tests/xpathtest.py
+--- antlr4-4.8-old/runtime/Python3/tests/xpathtest.py	2020-01-19 18:18:55.000000000 +0200
++++ antlr4-4.8-new/runtime/Python3/tests/xpathtest.py	2020-06-30 16:32:44.398692519 +0300
+@@ -2,8 +2,8 @@
+ from antlr4 import InputStream, CommonTokenStream, TerminalNode
+ from antlr4.xpath.XPath import XPath
+ import unittest
+-from expr.ExprParser import ExprParser
+-from expr.ExprLexer  import ExprLexer
++from .expr.ExprParser import ExprParser
++from .expr.ExprLexer  import ExprLexer
+ 
+ def tokenToString(token, ruleNames):
+     if isinstance(token, TerminalNode):



More information about the arch-commits mailing list