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

Jelle van der Waa jelle at gemini.archlinux.org
Mon Nov 1 09:01:29 UTC 2021


    Date: Monday, November 1, 2021 @ 09:01:28
  Author: jelle
Revision: 426918

upgpkg: python-zope-interface 5.4.0-2

Modified:
  python-zope-interface/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++----------------------------
 1 file changed, 8 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-01 08:34:00 UTC (rev 426917)
+++ PKGBUILD	2021-11-01 09:01:28 UTC (rev 426918)
@@ -2,51 +2,31 @@
 # Contributor: Ionut Biru <ibiru at archlinux.org>
 # Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
 
-pkgbase=python-zope-interface
-pkgname=('python-zope-interface' 'python2-zope-interface')
+pkgname=python-zope-interface
 pkgver=5.4.0
-pkgrel=1
+pkgrel=2
 license=('ZPL')
 arch=('x86_64')
 url="https://pypi.python.org/pypi/zope.interface"
-makedepends=('python-pip' 'python2-pip')
-checkdepends=('python-zope-event' 'python2-zope-event' 'python-zope-testing' 'python2-zope-testing'
-              'python-coverage' 'python2-coverage')
+pkgdesc='Zope Interfaces for Python 3.x'
+depends=('python')
+makedepends=('python-pip')
+checkdepends=('python-zope-event' 'python-zope-testing'
+              'python-coverage')
 source=("https://pypi.io/packages/source/z/zope.interface/zope.interface-$pkgver.tar.gz")
 sha512sums=('ef15d63397e05ad9fc44b2d5d786b0399b6973bb5f4866fab839ff612756f3157f2099d0f5c0469b574a5c8b5920a7c2a5c6eab8e8f84c24d5c43e816669bffe')
 
-prepare() {
-  cp -a zope.interface-${pkgver}{,-py2}
-}
-
 build() {
   cd "$srcdir"/zope.interface-$pkgver
   python setup.py build
-
-  cd "$srcdir"/zope.interface-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/zope.interface-$pkgver
   PYTHONPATH="$PWD/build/lib.linux-x86_64-3.9" python setup.py test
-
-  cd "$srcdir"/zope.interface-$pkgver-py2
-  PYTHONPATH="$PWD/build/lib.linux-x86_64-2.7" python2 setup.py test
 }
 
-package_python-zope-interface() {
-  pkgdesc='Zope Interfaces for Python 3.x'
-  depends=('python')
-
+package() {
   cd zope.interface-$pkgver
   python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
 }
-
-package_python2-zope-interface(){
-  pkgdesc='Zope Interfaces for Python 2.x'
-  depends=('python2')
-
-  cd zope.interface-$pkgver-py2
-  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
-}



More information about the arch-commits mailing list