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

Felix Yan felixonmars at archlinux.org
Fri May 24 08:55:30 UTC 2019


    Date: Friday, May 24, 2019 @ 08:55:29
  Author: felixonmars
Revision: 469571

upgpkg: python-zope-annotation 4.7.0-2

remove python2 sibling

Modified:
  python-zope-annotation/trunk/PKGBUILD

----------+
 PKGBUILD |   49 +++++++++++--------------------------------------
 1 file changed, 11 insertions(+), 38 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-24 08:52:16 UTC (rev 469570)
+++ PKGBUILD	2019-05-24 08:55:29 UTC (rev 469571)
@@ -1,56 +1,29 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-zope-annotation
-pkgname=('python-zope-annotation' 'python2-zope-annotation')
+pkgname=python-zope-annotation
 pkgver=4.7.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Object annotation mechanism"
 arch=('any')
 url="https://github.com/zopefoundation/zope.annotation"
 license=('ZPL')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-zope-interface'
-             'python2-zope-interface' 'python-zope-component' 'python2-zope-component'
-             'python-zope-location' 'python2-zope-location' 'python-zope-proxy'
-             'python2-zope-proxy')
-checkdepends=('python-zope-configuration' 'python2-zope-configuration' 'python-zope-testing'
-              'python2-zope-testing' 'python-zope-testrunner' 'python2-zope-testrunner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/zope.annotation/archive/$pkgver.tar.gz")
+depends=('python-setuptools' 'python-zope-interface' 'python-zope-component'
+         'python-zope-location' 'python-zope-proxy')
+checkdepends=('python-zope-configuration' 'python-zope-testing' 'python-zope-testrunner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/zope.annotation/archive/$pkgver.tar.gz")
 sha512sums=('e9fb4bafb1e144967c2aab56d55f1b86b355ce59d740388339a7d38956b66b3d01c1cb4f80903721722e94fd87824b5760b0772b1109b08bd40864a6249e4ef3')
 
-prepare() {
-  cp -a zope.annotation-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/zope.annotation-$pkgver
+  cd zope.annotation-$pkgver
   python setup.py build
-
-  cd "$srcdir"/zope.annotation-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/zope.annotation-$pkgver
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m zope.testrunner --test-path=src || warning "Tests failed"
-
-  cd "$srcdir"/zope.annotation-$pkgver-py2
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -m zope.testrunner --test-path=src
+  cd zope.annotation-$pkgver
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m zope.testrunner --test-path=src
 }
 
-package_python-zope-annotation() {
-  depends=('python-setuptools' 'python-zope-interface' 'python-zope-component'
-           'python-zope-location' 'python-zope-proxy')
-
-  cd "$srcdir"/zope.annotation-$pkgver
+package() {
+  cd zope.annotation-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
-
-package_python2-zope-annotation() {
-  depends=('python2-setuptools' 'python2-zope-interface' 'python2-zope-component'
-           'python2-zope-location' 'python2-zope-proxy')
-
-  cd "$srcdir"/zope.annotation-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}
-
-# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list