[arch-commits] Commit in python-whitenoise/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Aug 17 08:46:44 UTC 2018
Date: Friday, August 17, 2018 @ 08:46:44
Author: felixonmars
Revision: 372292
fix test failures
Modified:
python-whitenoise/trunk/PKGBUILD
----------+
PKGBUILD | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-17 08:46:07 UTC (rev 372291)
+++ PKGBUILD 2018-08-17 08:46:44 UTC (rev 372292)
@@ -10,8 +10,8 @@
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')
+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=('c4a876a9c053f238572ac75788524417a9fa87b659265e359b920b8c77f3fe526a829839e19900bb777a87068ee710ba1e5fedc5d5d167138ff146bffa122097')
@@ -29,12 +29,13 @@
check() {
export DJANGO_SETTINGS_MODULE=tests.django_settings
+ export PYTHONWARNINGS=all
cd "$srcdir"/whitenoise-$pkgver
- python setup.py pytest
+ python -m unittest discover
cd "$srcdir"/whitenoise-$pkgver-py2
- python2 setup.py pytest || warning "https://github.com/evansd/whitenoise/issues/189"
+ python2 -m unittest discover
}
package_python-whitenoise() {
More information about the arch-commits
mailing list