Date: Monday, October 1, 2018 @ 22:59:14 Author: felixonmars Revision: 388927
archrelease: copy trunk to community-any Added: python-zope-configuration/repos/community-any/PKGBUILD (from rev 388926, python-zope-configuration/trunk/PKGBUILD) Deleted: python-zope-configuration/repos/community-any/PKGBUILD ----------+ PKGBUILD | 110 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 55 insertions(+), 55 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-10-01 22:58:56 UTC (rev 388926) +++ PKGBUILD 2018-10-01 22:59:14 UTC (rev 388927) @@ -1,55 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-zope-configuration -pkgname=('python-zope-configuration' 'python2-zope-configuration') -pkgver=4.2.2 -pkgrel=1 -pkgdesc="Zope Configuration Markup Language (ZCML)" -arch=('any') -url="https://github.com/zopefoundation/zope.configuration" -license=('ZPL') -makedepends=('python-setuptools' 'python2-setuptools' 'python-zope-interface' - 'python2-zope-interface' 'python-zope-schema' 'python2-zope-schema' - 'python-zope-i18nmessageid' 'python2-zope-i18nmessageid') -checkdepends=('python-manuel' 'python2-manuel' 'python-zope-testing' 'python2-zope-testing' - 'python-zope-testrunner' 'python2-zope-testrunner') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/zope.configuration/archive/$pkgver.tar.gz") -sha512sums=('a54bf7b4a67e2a77ae53afdcf437f6efb2851a6cb28235f22f60027c45dc7223eba263cc46ebee392d50fdf5d5f1b899e2874467224508817368fc69e2dd0af2') - -prepare() { - cp -a zope.configuration-$pkgver{,-py2} -} - -build() { - cd "$srcdir"/zope.configuration-$pkgver - python setup.py build - - cd "$srcdir"/zope.configuration-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/zope.configuration-$pkgver - PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m zope.testrunner --test-path=src || warning "Tests failed" - - cd "$srcdir"/zope.configuration-$pkgver-py2 - PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -m zope.testrunner --test-path=src -} - -package_python-zope-configuration() { - depends=('python-setuptools' 'python-zope-interface' 'python-zope-schema' - 'python-zope-i18nmessageid') - - cd "$srcdir"/zope.configuration-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 -} - -package_python2-zope-configuration() { - depends=('python2-setuptools' 'python2-zope-interface' 'python2-zope-schema' - 'python2-zope-i18nmessageid') - - cd "$srcdir"/zope.configuration-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 -} - -# vim:set ts=2 sw=2 et: Copied: python-zope-configuration/repos/community-any/PKGBUILD (from rev 388926, python-zope-configuration/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-10-01 22:59:14 UTC (rev 388927) @@ -0,0 +1,55 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-zope-configuration +pkgname=('python-zope-configuration' 'python2-zope-configuration') +pkgver=4.3.0 +pkgrel=1 +pkgdesc="Zope Configuration Markup Language (ZCML)" +arch=('any') +url="https://github.com/zopefoundation/zope.configuration" +license=('ZPL') +makedepends=('python-setuptools' 'python2-setuptools' 'python-zope-interface' + 'python2-zope-interface' 'python-zope-schema' 'python2-zope-schema' + 'python-zope-i18nmessageid' 'python2-zope-i18nmessageid') +checkdepends=('python-manuel' 'python2-manuel' 'python-zope-testing' 'python2-zope-testing' + 'python-zope-testrunner' 'python2-zope-testrunner') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/zope.configuration/archive/$pkgver.tar.gz") +sha512sums=('e27da3cce6ab703edea160541075d3fa360e8eeda6212daa7849e69147692a7d4b53b95ddce3bcd261f5ed34cf94f6734688fed2d18e0de0dfeff874efbc1c67') + +prepare() { + cp -a zope.configuration-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/zope.configuration-$pkgver + python setup.py build + + cd "$srcdir"/zope.configuration-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/zope.configuration-$pkgver + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m zope.testrunner --test-path=src || warning "Tests failed" + + cd "$srcdir"/zope.configuration-$pkgver-py2 + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -m zope.testrunner --test-path=src +} + +package_python-zope-configuration() { + depends=('python-setuptools' 'python-zope-interface' 'python-zope-schema' + 'python-zope-i18nmessageid') + + cd "$srcdir"/zope.configuration-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-zope-configuration() { + depends=('python2-setuptools' 'python2-zope-interface' 'python2-zope-schema' + 'python2-zope-i18nmessageid') + + cd "$srcdir"/zope.configuration-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +} + +# vim:set ts=2 sw=2 et: