From 55021870b8166224ff4abe1be6fb3cd222aa1274 Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Wed, 16 Jan 2019 15:38:34 +0000 Subject: testing/py-django-cors-headers: upgrade to 2.4.0 Disable tests for now usage: runtests.py [options] [file_or_dir] [file_or_dir] [...] runtests.py: error: unrecognized arguments: --cov=corsheaders --cov-report --cov-fail-under 100 ./testss inifile: /home/larena/aports/testing/py-django-cors-headers/src/django-cors-headers-2.4.0/setup.cfg rootdir: /home/larena/aports/testing/py-django-cors-headers/src/django-cors-headers-2.4.0 --- testing/py-django-cors-headers/APKBUILD | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'testing') diff --git a/testing/py-django-cors-headers/APKBUILD b/testing/py-django-cors-headers/APKBUILD index 912bf9b832..669e334356 100644 --- a/testing/py-django-cors-headers/APKBUILD +++ b/testing/py-django-cors-headers/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Leonardo Arena # Maintainer: pkgname=py-django-cors-headers -pkgver=1.2.0 +pkgver=2.4.0 pkgrel=0 pkgdesc="Django app for handling the server headers required for Cross-Origin Resource Sharing (CORS)" url="https://github.com/OttoYiu/django-cors-headers" @@ -9,8 +9,9 @@ arch="noarch" license="Custom" depends="py-django" makedepends="python2-dev python3-dev py-setuptools" -checkdepends="py-django py-tz py-mock" +checkdepends="py-django py-tz py-mock pytest" subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +options="!check" # FIXME: fail source="$pkgname-$pkgver.tar.gz::https://github.com/ottoyiu/django-cors-headers/archive/$pkgver.tar.gz" builddir="$srcdir"/django-cors-headers-$pkgver @@ -27,8 +28,8 @@ package() { check() { cd "$builddir" - python2 tests.py - python3 tests.py + python2 runtests.py ./tests + python3 runtests.py ./tests } _py2() { @@ -52,4 +53,4 @@ _py() { $python setup.py --quiet install --prefix=/usr --root="$subpkgdir" } -sha512sums="0f6bfef73cc007a4a322e266433d7053e4d897212183be82e0e201786ba0e5dfe802771879c83c61b8a2044ac4003b0aec3080c358033a2c8f24d341641acadf py-django-cors-headers-1.2.0.tar.gz" +sha512sums="97f12655b0f499e62fbee6b506703fe9a43988f5d5ab275eb16ce8429c221fab6f8c50670357b33f218686490ae1a54527743a32d3a796c333dcb6328db4b94e py-django-cors-headers-2.4.0.tar.gz" -- cgit v1.2.3