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

Felix Yan felixonmars at archlinux.org
Sat Aug 11 03:20:51 UTC 2018


    Date: Saturday, August 11, 2018 @ 03:20:50
  Author: felixonmars
Revision: 370938

archrelease: copy trunk to community-testing-any

Added:
  python-whitenoise/repos/community-testing-any/
  python-whitenoise/repos/community-testing-any/PKGBUILD
    (from rev 370937, python-whitenoise/trunk/PKGBUILD)

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

Copied: python-whitenoise/repos/community-testing-any/PKGBUILD (from rev 370937, python-whitenoise/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-08-11 03:20:50 UTC (rev 370938)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-whitenoise
+pkgname=('python-whitenoise' 'python2-whitenoise')
+pkgver=4.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=('c4a876a9c053f238572ac75788524417a9fa87b659265e359b920b8c77f3fe526a829839e19900bb777a87068ee710ba1e5fedc5d5d167138ff146bffa122097')
+
+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 || warning "https://github.com/evansd/whitenoise/issues/189"
+}
+
+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:



More information about the arch-commits mailing list