[arch-commits] Commit in python-pycparser/trunk (PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Mon Nov 29 19:50:48 UTC 2021


    Date: Monday, November 29, 2021 @ 19:50:48
  Author: arojas
Revision: 429486

Update to 2.21, drop python2

Modified:
  python-pycparser/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++++--------------------------------
 1 file changed, 9 insertions(+), 32 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-29 19:49:32 UTC (rev 429485)
+++ PKGBUILD	2021-11-29 19:50:48 UTC (rev 429486)
@@ -3,56 +3,33 @@
 # Contributor: Alexander Rødseth <rodseth at gmail.com>
 # Contributor: lang2 <wenzhi.liang at gmail.com>
 
-pkgbase=python-pycparser
-pkgname=(python-pycparser python2-pycparser)
-pkgver=2.20
-pkgrel=3
+pkgname=python-pycparser
+pkgver=2.21
+pkgrel=1
 pkgdesc='C parser and AST generator written in Python'
 url='https://github.com/eliben/pycparser'
-makedepends=('python-ply' 'python2-ply' 'python-setuptools' 'python2-setuptools')
+depends=('python-ply')
+makedepends=('python-setuptools')
 arch=('any')
 license=('BSD')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/eliben/pycparser/archive/release_v$pkgver.tar.gz")
-sha512sums=('d2dc48727750ec0a80d5e3b0c9fba390c3647416a3e18cad59429edb9f55d043c7695c52301b037c93af5d96ffc85fcba7cd54d376abdb89e973759c59fa189d')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/eliben/pycparser/archive/release_v$pkgver.tar.gz")
+sha512sums=('b141e14040774ddaae6cd1726b0b2a61bfa76e8bcb5dc25dd99a303c48c7257dd7214cc7704234b0045ccc6a47354f6a7639647d875e1266846659217cc6ea78')
 
-prepare() {
-  cp -a pycparser-release_v$pkgver{,-py2}
-}
-
 build() {
   cd "$srcdir"/pycparser-release_v$pkgver
   python setup.py build
   cd pycparser
   python _build_tables.py
-
-  cd "$srcdir"/pycparser-release_v$pkgver-py2
-  python2 setup.py build
-  cd pycparser
-  python2 _build_tables.py
 }
 
 check() {
   cd "$srcdir"/pycparser-release_v$pkgver
-  python tests/all_tests.py
-
-  cd "$srcdir"/pycparser-release_v$pkgver-py2
-  python2 tests/all_tests.py
+  python -m unittest discover
 }
 
-package_python-pycparser() {
-  depends=('python-ply')
-
+package() {
   cd pycparser-release_v$pkgver
 
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-pycparser() {
-  depends=('python2-ply')
-
-  cd pycparser-release_v$pkgver-py2
-
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}



More information about the arch-commits mailing list