[arch-commits] Commit in python-whitenoise/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Sep 12 20:06:05 UTC 2018


    Date: Wednesday, September 12, 2018 @ 20:06:04
  Author: felixonmars
Revision: 379925

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-12 20:05:46 UTC (rev 379924)
+++ PKGBUILD	2018-09-12 20:06:04 UTC (rev 379925)
@@ -1,56 +0,0 @@
-# $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:

Copied: python-whitenoise/repos/community-any/PKGBUILD (from rev 379924, python-whitenoise/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-09-12 20:06:04 UTC (rev 379925)
@@ -0,0 +1,56 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-whitenoise
+pkgname=('python-whitenoise' 'python2-whitenoise')
+pkgver=4.1
+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-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=('37f9dda51face6292ec9799dd6154fb75248f9526382deaf1a100c3b00506a1c47b7b3a8c6ceb95c0505720d41bba8c7997fcf6dd2ac030c9fcefaa29bcb1729')
+
+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
+  export PYTHONWARNINGS=all
+
+  cd "$srcdir"/whitenoise-$pkgver
+  python -m unittest discover
+
+  cd "$srcdir"/whitenoise-$pkgver-py2
+  python2 -m unittest discover
+}
+
+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