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

Felix Yan felixonmars at archlinux.org
Fri Nov 9 14:53:19 UTC 2018


    Date: Friday, November 9, 2018 @ 14:53:18
  Author: felixonmars
Revision: 404360

archrelease: copy trunk to community-any

Added:
  python-zope-deferredimport/repos/community-any/
  python-zope-deferredimport/repos/community-any/PKGBUILD
    (from rev 404359, python-zope-deferredimport/trunk/PKGBUILD)

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

Copied: python-zope-deferredimport/repos/community-any/PKGBUILD (from rev 404359, python-zope-deferredimport/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2018-11-09 14:53:18 UTC (rev 404360)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-zope-deferredimport
+pkgname=('python-zope-deferredimport' 'python2-zope-deferredimport')
+pkgver=4.3
+pkgrel=1
+pkgdesc="Allows you to perform imports names that will only be resolved when used in the code"
+arch=('any')
+url="https://github.com/zopefoundation/zope.deferredimport"
+license=('ZPL')
+makedepends=('python-setuptools' 'python2-setuptools'  'python-zope-proxy' 'python2-zope-proxy')
+checkdepends=('python-zope-testrunner' 'python2-zope-testrunner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/zope.deferredimport/archive/$pkgver.tar.gz")
+sha512sums=('0b62cf6caa7709dbb6b0ae85bf9c5e24909c79af57da8e3d081e69ff9f73fc60fbe5a83cdfe795551eeee3c045d3783a09cb3e6eb3964a44e6fbbea149ca3f8a')
+
+
+build() {
+  cd zope.deferredimport-$pkgver
+  python setup.py build
+  python2 setup.py build
+}
+
+check() {
+  cd zope.deferredimport-$pkgver
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m zope.testrunner --test-path=src
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -m zope.testrunner --test-path=src
+}
+
+package_python-zope-deferredimport() {
+  depends=('python-setuptools' 'python-zope-proxy')
+
+  cd zope.deferredimport-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-zope-deferredimport() {
+  depends=('python2-setuptools' 'python2-zope-proxy')
+
+  cd zope.deferredimport-$pkgver
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list