testing/py3-django-environ: move from user

This commit is contained in:
Antoine Martin 2023-08-30 13:54:44 -04:00
parent 04b4ed9090
commit f913376230

View file

@ -9,26 +9,33 @@ arch="noarch"
pkgdesc="A package that allows you to utilize 12factor inspired environment variables to configure your Django application." pkgdesc="A package that allows you to utilize 12factor inspired environment variables to configure your Django application."
url="https://pypi.python.org/project/$_pyname" url="https://pypi.python.org/project/$_pyname"
license="MIT" license="MIT"
depends="py3-django" depends="
makedepends="py3-build py3-installer py3-setuptools py3-wheel" py3-django
checkdepends="py3-pytest" "
makedepends="
py3-build
py3-installer
py3-setuptools
py3-wheel
"
checkdepends="
py3-pytest
"
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 -m build --wheel --no-isolation python3 -m build --wheel --no-isolation
} }
check() { check() {
PYTHONPATH="$PWD/src" pytest || true pytest -v
} }
package() { package() {
python3 -m installer --destdir="$pkgdir" dist/*.whl python3 -m installer -d="$pkgdir" \
install -vDm 644 AUTHORS.rst -t "$pkgdir/usr/share/doc/$pkgname/" dist/*.whl
install -vDm 644 CHANGELOG.rst -t "$pkgdir/usr/share/doc/$pkgname/"
install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
install -vDm 644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
} }
sha512sums=" sha512sums="
6631c959c61754f818a8b2c662e8b265646f29d56d4f4af27dff803445194f7f15cb02e45ced76d508a5fe67773c6e46108791fa3cb3dc6e16c74564c72acefc py3-django-environ-0.10.0.tar.gz 6631c959c61754f818a8b2c662e8b265646f29d56d4f4af27dff803445194f7f15cb02e45ced76d508a5fe67773c6e46108791fa3cb3dc6e16c74564c72acefc py3-django-environ-0.10.0.tar.gz