[arch-commits] Commit in python-waitress/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Apr 23 10:23:00 UTC 2019
Date: Tuesday, April 23, 2019 @ 10:22:59
Author: felixonmars
Revision: 453059
archrelease: copy trunk to community-testing-any
Added:
python-waitress/repos/community-testing-any/
python-waitress/repos/community-testing-any/PKGBUILD
(from rev 453058, python-waitress/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-waitress/repos/community-testing-any/PKGBUILD (from rev 453058, python-waitress/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2019-04-23 10:22:59 UTC (rev 453059)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-waitress
+pkgname=('python-waitress' 'python2-waitress')
+pkgver=1.3.0
+pkgrel=1
+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=('9c2996c38de34ce3ee7e328e9568203e2ff0386eec93ade2e1bc42fe4b43952277fc9c90cf37f34728355ff4ce0181481eb44669f7ca300c131caf5e71206a60')
+
+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