diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-07-20 17:14:31 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-20 17:15:09 -0300 |
commit | 22ae18e1b2da2fb26b4357b0b6580e50484bc263 (patch) | |
tree | 5c32483190e56b1f6df636460c291d39594d7c85 /testing/py3-django-debug-toolbar | |
parent | 90d82e34e89044fff6f52519577197f3ac48a5ad (diff) | |
download | aports-22ae18e1b2da2fb26b4357b0b6580e50484bc263.tar.bz2 aports-22ae18e1b2da2fb26b4357b0b6580e50484bc263.tar.xz |
testing/py3-django-debug-toolbar: upgrade to 2.0
Diffstat (limited to 'testing/py3-django-debug-toolbar')
-rw-r--r-- | testing/py3-django-debug-toolbar/APKBUILD | 56 |
1 files changed, 15 insertions, 41 deletions
diff --git a/testing/py3-django-debug-toolbar/APKBUILD b/testing/py3-django-debug-toolbar/APKBUILD index 8e152a9801..ab378a0eda 100644 --- a/testing/py3-django-debug-toolbar/APKBUILD +++ b/testing/py3-django-debug-toolbar/APKBUILD @@ -1,55 +1,29 @@ # Contributor: Leonardo Arena <rnalrd@alpinelinux.org> # Maintainer: -pkgname=py-django-debug-toolbar -pkgver=1.11 -pkgrel=1 +pkgname=py3-django-debug-toolbar +_pkgname=django-debug-toolbar +pkgver=2.0 +pkgrel=0 pkgdesc="Configurable set of panels that display various debug information about the current request/response" +options="!check" # Requires unpackaged Selenium python3 module url="https://github.com/jazzband/django-debug-toolbar" arch="noarch" license="BSD-3-Clause" -depends="py-django py-sqlparse" -makedepends="python2-dev python3-dev py-setuptools" -options="!check" #no testsuite -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" -source="$pkgname-$pkgver.tar.gz::https://github.com/jazzband/django-debug-toolbar/archive/$pkgver.tar.gz" -builddir="$srcdir"/django-debug-toolbar-$pkgver +depends="py3-django py3-sqlparse" +makedepends="py3-setuptools" +# options="!check" #no testsuite +source="$pkgname-$pkgver.tar.gz::https://github.com/jazzband/$_pkgname/archive/$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver + +replaces="py-django-debug-toolbar" # Backwards compatibility +provides="py-django-debug-toolbar=$pkgver-r$pkgrel" # Backwards compatibility build() { - cd "$builddir" - python2 setup.py --quiet build python3 setup.py --quiet build } package() { - cd "$builddir" - mkdir -p "$pkgdir"/usr/bin -} - -check() { - cd "$builddir" - python2 tests.py - python3 tests.py -} - -_py2() { - depends="${depends//py-/py2-}" - _py python2 -} - -_py3() { - depends="${depends//py-/py3-}" - _py python3 -} - -_py() { - local python="$1" - local pyver="${1:6:1}" - pkgdesc="$pkgdesc (for $python)" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - - cd "$builddir" - $python setup.py --quiet install --prefix=/usr --root="$subpkgdir" + python3 setup.py --quiet install --prefix=/usr --root="$pkgdir" } -sha512sums="8085b02fc25571e7b3bff02ff2bda8bec81a6000c6ed9e2aea10ec45eb1a3e5adf2ee95fcfbb0a11660fd716ebf2e35a9bdefbaf767b4afc732368a197857e62 py-django-debug-toolbar-1.11.tar.gz" +sha512sums="8440705a2e38f2c035a1dde4eb14ec829ead502cbbebcae46889e26877c0843389107bf14249afe9742638c4880b362fd699aed935e271bc1ade8f0a54bfea46 py3-django-debug-toolbar-2.0.tar.gz" |