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

Felix Yan felixonmars at archlinux.org
Sat Oct 26 20:31:32 UTC 2019


    Date: Saturday, October 26, 2019 @ 20:31:30
  Author: felixonmars
Revision: 520589

archrelease: copy trunk to community-staging-any

Added:
  python-zope-copy/repos/community-staging-any/
  python-zope-copy/repos/community-staging-any/PKGBUILD
    (from rev 520586, python-zope-copy/trunk/PKGBUILD)

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

Copied: python-zope-copy/repos/community-staging-any/PKGBUILD (from rev 520586, python-zope-copy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 20:31:30 UTC (rev 520589)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-zope-copy
+pkgname=('python-zope-copy' 'python2-zope-copy')
+pkgver=4.2
+pkgrel=2
+pkgdesc="Pluggable object copying mechanism"
+arch=('any')
+url="https://github.com/zopefoundation/zope.copy"
+license=('ZPL')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-zope-interface'
+             'python2-zope-interface')
+checkdepends=('python-zope-testrunner' 'python2-zope-testrunner' 'python-zope-testing'
+              'python2-zope-testing' 'python-zope-location' 'python2-zope-location')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/zope.copy/archive/$pkgver.tar.gz")
+sha512sums=('99c1062bdad919c0aa8f1daf1f7a2af1e42227a2a22e4a983eb848edf6be144fec97b9f7dd43d592121c8e72c3525b316e7367e226a33e97272061b666fb466b')
+
+prepare() {
+  cp -a zope.copy-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/zope.copy-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/zope.copy-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/zope.copy-$pkgver
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m zope.testrunner --test-path=src || warning "Tests failed"
+
+  cd "$srcdir"/zope.copy-$pkgver-py2
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -m zope.testrunner --test-path=src
+}
+
+package_python-zope-copy() {
+  depends=('python-setuptools' 'python-zope-interface')
+
+  cd "$srcdir"/zope.copy-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-zope-copy() {
+  depends=('python2-setuptools' 'python2-zope-interface')
+
+  cd "$srcdir"/zope.copy-$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