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

Antonio Rojas arojas at archlinux.org
Sun Nov 3 00:54:06 UTC 2019


    Date: Sunday, November 3, 2019 @ 00:54:06
  Author: arojas
Revision: 522404

Drop python2

Modified:
  python-zope-security/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++----------------------------------
 1 file changed, 6 insertions(+), 34 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-03 00:50:52 UTC (rev 522403)
+++ PKGBUILD	2019-11-03 00:54:06 UTC (rev 522404)
@@ -1,7 +1,6 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-zope-security
-pkgname=('python-zope-security' 'python2-zope-security')
+pkgname=python-zope-security
 pkgver=4.3.1
 pkgrel=2
 pkgdesc="Zope Security Framework"
@@ -8,52 +7,25 @@
 arch=('x86_64')
 url="https://github.com/zopefoundation/zope.security"
 license=('ZPL')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-zope-interface'
-             'python2-zope-interface' 'python-zope-component' 'python2-zope-component'
-             'python-zope-i18nmessageid' 'python2-zope-i18nmessageid' 'python-zope-location'
-             'python2-zope-location' 'python-zope-proxy' 'python2-zope-proxy'
-             'python-zope-schema' 'python2-zope-schema')
-checkdepends=('python-btrees' 'python2-btrees' 'python-nose' 'python2-nose'
-              '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.security/archive/$pkgver.tar.gz")
+depends=('python-setuptools' 'python-zope-component' 'python-zope-i18nmessageid'
+         'python-zope-interface' 'python-zope-location' 'python-zope-proxy' 'python-zope-schema')
+checkdepends=('python-btrees' 'python-nose' 'python-zope-configuration' 'python-zope-testing' 'python-zope-testrunner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/zope.security/archive/$pkgver.tar.gz")
 sha512sums=('8d07683b978ac3fb2bc0f8b3f08d80c10443085a78cb33a8249a31773fa67f0f01e106ab0b076587513848fb884d77ad02322826cb0ff957c812ff81e341469a')
 
-prepare() {
-  cp -a zope.security-$pkgver{,-py2}
-}
-
 build() {
   cd "$srcdir"/zope.security-$pkgver
   python setup.py build
-
-  cd "$srcdir"/zope.security-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/zope.security-$pkgver
   PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.6:$PYTHONPATH" python -m zope.testrunner --test-path=src || warning "Tests failed"
-
-  cd "$srcdir"/zope.security-$pkgver-py2
-  PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" python2 -m zope.testrunner --test-path=src
 }
 
-package_python-zope-security() {
-  depends=('python-setuptools' 'python-zope-component' 'python-zope-i18nmessageid'
-           'python-zope-interface' 'python-zope-location' 'python-zope-proxy' 'python-zope-schema')
-
+package() {
   cd zope.security-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
 
-package_python2-zope-security() {
-  depends=('python2-setuptools' 'python2-zope-component' 'python2-zope-i18nmessageid'
-           'python2-zope-interface' 'python2-zope-location' 'python2-zope-proxy'
-           'python2-zope-schema')
-
-  cd zope.security-$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