[arch-commits] Commit in python-whitenoise/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Apr 2 13:00:31 UTC 2019
Date: Tuesday, April 2, 2019 @ 13:00:29
Author: felixonmars
Revision: 447696
archrelease: copy trunk to community-any
Added:
python-whitenoise/repos/community-any/PKGBUILD
(from rev 447695, python-whitenoise/trunk/PKGBUILD)
Deleted:
python-whitenoise/repos/community-any/PKGBUILD
----------+
PKGBUILD | 89 ++++++++++++++++++++++---------------------------------------
1 file changed, 33 insertions(+), 56 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-04-02 13:00:09 UTC (rev 447695)
+++ PKGBUILD 2019-04-02 13:00:29 UTC (rev 447696)
@@ -1,56 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-whitenoise
-pkgname=('python-whitenoise' 'python2-whitenoise')
-pkgver=4.1.2
-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=('91105cbf22292397ff06de7483d1037f5c0804697fbfd73300db6133bc88134799550846e61d8dd28cb066abe3a33c750983224451dc770c26209fec3a2cf65d')
-
-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:
Copied: python-whitenoise/repos/community-any/PKGBUILD (from rev 447695, python-whitenoise/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-04-02 13:00:29 UTC (rev 447696)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-whitenoise
+pkgver=4.1.2
+pkgrel=2
+pkgdesc='Radically simplified static file serving for WSGI applications'
+arch=('any')
+license=('MIT')
+url='http://whitenoise.evans.io'
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-django' 'python-requests' 'python-brotli')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/evansd/whitenoise/archive/v$pkgver.tar.gz")
+sha512sums=('91105cbf22292397ff06de7483d1037f5c0804697fbfd73300db6133bc88134799550846e61d8dd28cb066abe3a33c750983224451dc770c26209fec3a2cf65d')
+
+build() {
+ cd whitenoise-$pkgver
+ python setup.py build
+}
+
+check() {
+ export DJANGO_SETTINGS_MODULE=tests.django_settings
+ export PYTHONWARNINGS=all
+
+ cd whitenoise-$pkgver
+ python -m unittest discover
+}
+
+package() {
+ cd whitenoise-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list