[arch-commits] Commit in python-zope-schema/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 20:12:41 UTC 2019
Date: Friday, October 25, 2019 @ 20:12:41
Author: felixonmars
Revision: 519792
archrelease: copy trunk to community-staging-any
Added:
python-zope-schema/repos/community-staging-any/
python-zope-schema/repos/community-staging-any/PKGBUILD
(from rev 519791, python-zope-schema/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-zope-schema/repos/community-staging-any/PKGBUILD (from rev 519791, python-zope-schema/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 20:12:41 UTC (rev 519792)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-zope-schema
+pkgname=('python-zope-schema' 'python2-zope-schema')
+pkgver=4.9.3
+pkgrel=3
+pkgdesc="zope.interface extension for defining data schemas"
+arch=('any')
+url="https://github.com/zopefoundation/zope.schema"
+license=('ZPL')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-zope-interface'
+ 'python2-zope-interface' 'python-zope-event' 'python2-zope-event')
+checkdepends=('python-zope-testrunner' 'python2-zope-testrunner' 'python-zope-testing'
+ 'python2-zope-testing' 'python-zope-i18nmessageid' 'python2-zope-i18nmessageid')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/zope.schema/archive/$pkgver.tar.gz")
+sha512sums=('bac09d9106cca1560d968f35ba414860d42da9a1637c261a18e42b97c6ada3a3cc78381b536d478c505c7eaade189e47012b1726b8d8815622c904a79f3e89e1')
+
+prepare() {
+ cp -a zope.schema-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/zope.schema-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/zope.schema-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/zope.schema-$pkgver
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m zope.testrunner --test-path=src
+
+ cd "$srcdir"/zope.schema-$pkgver-py2
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -m zope.testrunner --test-path=src
+}
+
+package_python-zope-schema() {
+ depends=('python-setuptools' 'python-zope-interface' 'python-zope-event')
+
+ cd "$srcdir"/zope.schema-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-zope-schema() {
+ depends=('python2-setuptools' 'python2-zope-interface' 'python2-zope-event')
+
+ cd "$srcdir"/zope.schema-$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