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

Evangelos Foutras foutrelis at archlinux.org
Sat Jun 30 15:52:17 UTC 2018


    Date: Saturday, June 30, 2018 @ 15:52:17
  Author: foutrelis
Revision: 348347

archrelease: copy trunk to community-staging-any

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

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

Copied: python-waitress/repos/community-staging-any/PKGBUILD (from rev 348346, python-waitress/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 15:52:17 UTC (rev 348347)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-waitress
+pkgname=('python-waitress' 'python2-waitress')
+pkgver=1.1.0
+pkgrel=2
+pkgdesc="Waitress WSGI server"
+arch=('any')
+license=('ZPL')
+url="https://github.com/Pylons/waitress"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/Pylons/waitress/archive/v$pkgver.tar.gz")
+sha512sums=('80ada835b194b4b7b4ec443e0a5a24d3b7f5417e29bada294d225915792e24724135853484dbc700465c9ed8295b355ca34b58d46f3432b3e30e593bbec7a2d3')
+
+prepare() {
+  cp -a waitress-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/waitress-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/waitress-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/waitress-$pkgver
+  nosetests3
+
+  cd "$srcdir"/waitress-$pkgver-py2
+  nosetests2
+}
+
+package_python-waitress() {
+  depends=('python-setuptools')
+
+  cd waitress-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-waitress() {
+  depends=('python2-setuptools')
+
+  cd waitress-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  mv "$pkgdir"/usr/bin/waitress-serve{,2}
+}



More information about the arch-commits mailing list