testing/py3-django-compression-middleware: move from user
This commit is contained in:
parent
c6d52607b8
commit
e45bc7c6c7
1 changed files with 26 additions and 6 deletions
|
@ -5,23 +5,43 @@ pkgname=py3-django-compression-middleware
|
||||||
_pyname="django-compression-middleware"
|
_pyname="django-compression-middleware"
|
||||||
pkgver=0.5.0
|
pkgver=0.5.0
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
arch="noarch"
|
arch="noarch !s390x !armhf" # Missing checkdepends on s390x and armhf
|
||||||
pkgdesc="Django middleware to compress responses using several algorithms."
|
pkgdesc="Django middleware to compress responses using several algorithms."
|
||||||
url="https://pypi.python.org/project/$_pyname"
|
url="https://pypi.python.org/project/$_pyname"
|
||||||
license="MPL-2.0"
|
license="MPL-2.0"
|
||||||
depends='python3 py3-django'
|
depends="
|
||||||
makedepends='py3-setuptools'
|
py3-django
|
||||||
options="!check" # No testsuite
|
"
|
||||||
|
makedepends="
|
||||||
|
py3-setuptools
|
||||||
|
py3-gpep517
|
||||||
|
py3-installer
|
||||||
|
py3-wheel
|
||||||
|
"
|
||||||
|
checkdepends="
|
||||||
|
py3-pytest
|
||||||
|
py3-zstandard
|
||||||
|
py3-brotli
|
||||||
|
"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
||||||
builddir="$srcdir"/$_pyname-$pkgver
|
builddir="$srcdir"/$_pyname-$pkgver
|
||||||
|
subpackages="$pkgname-pyc"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
pytest -v
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
|
python3 -m installer -d "$pkgdir" \
|
||||||
|
dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
070e7f19daf4811188e12b657b0dd53069b851a9c5f315d44aec87b92ccdc4d053c0a64fede2a40702963f86286b3bbbebe69722ac1b720febf93d0870d2f50e py3-django-compression-middleware-0.5.0.tar.gz
|
070e7f19daf4811188e12b657b0dd53069b851a9c5f315d44aec87b92ccdc4d053c0a64fede2a40702963f86286b3bbbebe69722ac1b720febf93d0870d2f50e py3-django-compression-middleware-0.5.0.tar.gz
|
||||||
"
|
"
|
Loading…
Reference in a new issue