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

Jelle van der Waa jelle at archlinux.org
Sat Apr 24 14:04:26 UTC 2021


    Date: Saturday, April 24, 2021 @ 14:04:25
  Author: jelle
Revision: 923655

Drop unused python2-greenlet

Modified:
  python-greenlet/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++-------------------------
 1 file changed, 5 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-24 13:58:47 UTC (rev 923654)
+++ PKGBUILD	2021-04-24 14:04:25 UTC (rev 923655)
@@ -2,50 +2,30 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Contributor: Ralf Schmitt <ralf at systemexit.de>
 
-pkgbase=python-greenlet
-pkgname=(python-greenlet python2-greenlet)
+pkgname=python-greenlet
 pkgver=1.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Lightweight in-process concurrent programming"
 license=("MIT")
 arch=('x86_64')
 url="https://pypi.org/project/greenlet/"
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
 source=("https://files.pythonhosted.org/packages/source/g/greenlet/greenlet-${pkgver}.tar.gz")
 sha512sums=('7b615792c340e0eb8ca61bd09bde48ed15110d97254910bd8598312e15adb7267ba795e9e6b52f0998db27d8413d2e1aa9e977511c0d09cd3a5583b37475f882')
 
-prepare() {
-    cp -a greenlet-$pkgver{,-py2}
-}
-
 build() {
 	cd "$srcdir"/greenlet-$pkgver
 	python setup.py build
-
-    cd "$srcdir"/greenlet-$pkgver-py2
-    python2 setup.py build
 }
 
 check() {
     cd "$srcdir"/greenlet-$pkgver
     PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.9" python -m unittest discover -v greenlet.tests
-
-    cd "$srcdir"/greenlet-$pkgver-py2
-    PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7" python2 -m unittest discover -v greenlet.tests
 }
 
-package_python-greenlet() {
-    depends=('python')
-
+package() {
     cd greenlet-$pkgver
     python setup.py install -O1 --root="$pkgdir"
     install -Dm0644 LICENSE.PSF "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.PSF
 }
-
-package_python2-greenlet() {
-    depends=('python2')
-
-	cd greenlet-$pkgver-py2
-	python2 setup.py install -O1 --root="$pkgdir"
-	install -Dm0644 LICENSE.PSF "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.PSF
-}



More information about the arch-commits mailing list