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

Felix Yan felixonmars at archlinux.org
Sun Dec 25 03:03:51 UTC 2016


    Date: Sunday, December 25, 2016 @ 03:03:50
  Author: felixonmars
Revision: 201812

archrelease: copy trunk to community-staging-any

Added:
  python-waitress/repos/community-staging-any/
  python-waitress/repos/community-staging-any/PKGBUILD
    (from rev 201811, python-waitress/trunk/PKGBUILD)

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

Copied: python-waitress/repos/community-staging-any/PKGBUILD (from rev 201811, python-waitress/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 03:03:50 UTC (rev 201812)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-waitress
+pkgname=('python-waitress' 'python2-waitress')
+pkgver=1.0.1
+pkgrel=2
+pkgdesc="Waitress WSGI server"
+arch=('any')
+license=('ZPL')
+url="https://github.com/Pylons/waitress"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-nose' 'python2-nose')
+source=("git+https://github.com/Pylons/waitress.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a waitress{,-py2}
+}
+
+build() {
+  cd "$srcdir"/waitress
+  python setup.py build
+
+  cd "$srcdir"/waitress-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/waitress
+  nosetests3
+
+  cd "$srcdir"/waitress-py2
+  nosetests2
+}
+
+package_python-waitress() {
+  depends=('python-setuptools')
+
+  cd waitress
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-waitress() {
+  depends=('python2-setuptools')
+
+  cd waitress-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  mv "$pkgdir"/usr/bin/waitress-serve{,2}
+}



More information about the arch-commits mailing list