[arch-commits] Commit in python-zope-interface/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Apr 9 01:35:22 UTC 2020


    Date: Thursday, April 9, 2020 @ 01:35:20
  Author: felixonmars
Revision: 379889

archrelease: copy trunk to testing-x86_64

Added:
  python-zope-interface/repos/testing-x86_64/
  python-zope-interface/repos/testing-x86_64/PKGBUILD
    (from rev 379888, python-zope-interface/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: python-zope-interface/repos/testing-x86_64/PKGBUILD (from rev 379888, python-zope-interface/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-04-09 01:35:20 UTC (rev 379889)
@@ -0,0 +1,52 @@
+# Maintainer : Felix Yan <felixonmars at archlinux.org>
+# 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')
+pkgver=5.1.0
+pkgrel=1
+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')
+source=("https://pypi.io/packages/source/z/zope.interface/zope.interface-$pkgver.tar.gz")
+sha512sums=('be8319913222ada47a22559e22322ec12dff3adf17f45335d007c5aa3509d84a7d0a7e6c113967b91810b3613344b5c60e002eb740af2bbb454b2807de8dad98')
+
+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.8" 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')
+
+  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