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

Felix Yan felixonmars at archlinux.org
Fri Oct 25 15:33:38 UTC 2019


    Date: Friday, October 25, 2019 @ 15:33:37
  Author: felixonmars
Revision: 519092

archrelease: copy trunk to community-staging-any

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

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

Copied: python-zope-deprecation/repos/community-staging-any/PKGBUILD (from rev 519089, python-zope-deprecation/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 15:33:37 UTC (rev 519092)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-zope-deprecation
+pkgname=('python-zope-deprecation' 'python2-zope-deprecation')
+pkgver=4.4.0
+pkgrel=2
+pkgdesc="Zope Deprecation Infrastructure"
+arch=('any')
+url="https://github.com/zopefoundation/zope.deprecation"
+license=('ZPL')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/zope.deprecation/archive/$pkgver.tar.gz")
+sha512sums=('d8632a3442eee059383014bb3341b30897ad8f9206b71bc586c873c4cccf5f87296edaf18f1e1c93878f480e3b0e8e1c1936ac19ed327f4ab227402ebbc73e0e')
+
+prepare() {
+  cp -a zope.deprecation-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/zope.deprecation-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/zope.deprecation-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/zope.deprecation-$pkgver
+  nosetests3
+
+  cd "$srcdir"/zope.deprecation-$pkgver-py2
+  nosetests2
+}
+
+package_python-zope-deprecation() {
+  depends=('python-setuptools')
+
+  cd zope.deprecation-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-zope-deprecation() {
+  depends=('python2-setuptools')
+
+  cd zope.deprecation-$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