user/py3-pytest-django: in community
This commit is contained in:
parent
67cebc80bd
commit
0f2b0e8155
1 changed files with 0 additions and 35 deletions
|
@ -1,35 +0,0 @@
|
||||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
|
|
||||||
_pyname=pytest-django
|
|
||||||
pkgname="py3-$_pyname"
|
|
||||||
pkgver=4.5.2
|
|
||||||
pkgrel=0
|
|
||||||
arch="noarch"
|
|
||||||
pkgdesc="A Django plugin for py.test"
|
|
||||||
url="https://pypi.python.org/project/$_pyname"
|
|
||||||
license="BSD-3-Clause"
|
|
||||||
depends="py3-pytest"
|
|
||||||
makedepends="py3-setuptools_scm"
|
|
||||||
checkdepends="py3-pytest-xdist py3-django"
|
|
||||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
|
||||||
builddir="$srcdir"/$_pyname-$pkgver
|
|
||||||
|
|
||||||
build() {
|
|
||||||
python setup.py build
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
python setup.py install --root="$PWD/tmp_install" --optimize=1
|
|
||||||
PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH:$PWD" \
|
|
||||||
DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite \
|
|
||||||
py.test tests || true
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
python setup.py install --root="$pkgdir" --optimize=1
|
|
||||||
install -Dm664 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
||||||
}
|
|
||||||
sha512sums="
|
|
||||||
bde0ee6f1c728ff2b6f965150fbbcb25c8ef5a24732256d2d688ee95c243ca2dd0f9606fac559b2c204dd2835ff5362a934cd176fabc7479b21a1e55fe284f4d py3-pytest-django-4.5.2.tar.gz
|
|
||||||
"
|
|
Loading…
Reference in a new issue