[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Sat Aug 26 01:36:28 UTC 2017


    Date: Saturday, August 26, 2017 @ 01:36:27
  Author: felixonmars
Revision: 253674

addpkg: python-whitenoise 3.3.0-1

Added:
  python-whitenoise/
  python-whitenoise/repos/
  python-whitenoise/trunk/
  python-whitenoise/trunk/PKGBUILD

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

Added: python-whitenoise/trunk/PKGBUILD
===================================================================
--- python-whitenoise/trunk/PKGBUILD	                        (rev 0)
+++ python-whitenoise/trunk/PKGBUILD	2017-08-26 01:36:27 UTC (rev 253674)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-whitenoise
+pkgname=('python-whitenoise' 'python2-whitenoise')
+pkgver=3.3.0
+pkgrel=1
+pkgdesc='Radically simplified static file serving for WSGI applications'
+arch=('any')
+license=('MIT')
+url='http://whitenoise.evans.io'
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-django' 'python2-django'
+              'python-requests' 'python2-requests' 'python-brotli' 'python2-brotli')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/evansd/whitenoise/archive/v$pkgver.tar.gz")
+sha512sums=('ed79f56ba41b817e002bfe872f8603e8f642217356650a1e9beb5fc89b20d153edd6fc6d4560b72bfbcd75cfcd3014c76bb3f230f123aa413d7ca8644bb59853')
+
+prepare() {
+  cp -a whitenoise-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/whitenoise-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/whitenoise-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  export DJANGO_SETTINGS_MODULE=tests.django_settings
+
+  cd "$srcdir"/whitenoise-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/whitenoise-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-whitenoise() {
+  depends=('python')
+
+  cd whitenoise-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-whitenoise() {
+  depends=('python2')
+
+  cd whitenoise-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:


Property changes on: python-whitenoise/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list