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

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


    Date: Monday, November 29, 2021 @ 19:53:52
  Author: arojas
Revision: 429488

Drop python2

Modified:
  python-ply/trunk/PKGBUILD

----------+
 PKGBUILD |   29 +++++------------------------
 1 file changed, 5 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-29 19:50:57 UTC (rev 429487)
+++ PKGBUILD	2021-11-29 19:53:52 UTC (rev 429488)
@@ -3,37 +3,27 @@
 # Contributor: Marcin "avalan" Falkiewicz <avalatron at gmail.com>
 # Contributor: C Anthony Risinger <anthony at xtfx.me>
 
-pkgbase=python-ply
-pkgname=(python-ply python2-ply)
+pkgname=python-ply
 pkgver=3.11
-pkgrel=7
+pkgrel=8
 pkgdesc='Implementation of lex and yacc parsing tools'
 arch=('any')
 url='https://www.dabeaz.com/ply/'
 license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
 source=("https://pypi.io/packages/source/p/ply/ply-$pkgver.tar.gz"
         LICENSE)
 sha512sums=('37e39a4f930874933223be58a3da7f259e155b75135f1edd47069b3b40e5e96af883ebf1c8a1bbd32f914a9e92cfc12e29fec05cf61b518f46c1d37421b20008'
             '5cea085a23ed260afc9084380c1d59e3942c2385089a8eb2391a89c85cde4df2ceb7eed21bb8c4d0cad5b78e59742da69e4c5c78fd0e223f5c99c56e9296a075')
 
-prepare() {
-  cp -a ply-$pkgver{,-py2}
-}
-
 check() {
   cd "ply-$pkgver/test"
   python testlex.py
   python testyacc.py
-
-  cd "$srcdir/ply-$pkgver-py2/test"
-  python2 testlex.py
-  python2 testyacc.py
 }
 
-package_python-ply() {
-  depends=('python')
-
+package() {
   cd "ply-$pkgver"
   python setup.py install --root="$pkgdir"
 
@@ -40,13 +30,4 @@
   install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
-package_python2-ply() {
-  depends=('python2')
-
-  cd "ply-$pkgver-py2"
-  python2 setup.py install --root="$pkgdir"
-
-  install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list