testing/py3-dacite: move from user
This commit is contained in:
parent
306237b553
commit
77a00e2bf3
2 changed files with 45 additions and 32 deletions
45
testing/py3-dacite/APKBUILD
Normal file
45
testing/py3-dacite/APKBUILD
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
|
|
||||||
|
_pyname=dacite
|
||||||
|
pkgname="py3-$_pyname"
|
||||||
|
pkgver=1.8.1
|
||||||
|
pkgrel=0
|
||||||
|
arch="noarch"
|
||||||
|
pkgdesc="This module simplifies creation of data classes (PEP 557) from dictionaries."
|
||||||
|
url="https://pypi.python.org/project/$_pyname"
|
||||||
|
license="MIT"
|
||||||
|
makedepends="
|
||||||
|
py3-setuptools
|
||||||
|
py3-gpep517
|
||||||
|
py3-installer
|
||||||
|
py3-wheel
|
||||||
|
"
|
||||||
|
checkdepends="
|
||||||
|
py3-pytest
|
||||||
|
py3-pytest-benchmark
|
||||||
|
py3-pytest-cov
|
||||||
|
py3-coveralls
|
||||||
|
"
|
||||||
|
source="$pkgname-$pkgver.tar.gz::https://github.com/konradhalas/dacite/archive/refs/tags/v$pkgver.tar.gz"
|
||||||
|
builddir="$srcdir"/$_pyname-$pkgver
|
||||||
|
subpackages="$pkgname-pyc"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
pytest -v
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
python3 -m installer -d "$pkgdir" \
|
||||||
|
dist/*.whl
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
4b40c0bdcf5490bcc77de9e7f04b7267642bcfd41e4168607a5457f38abe3ad4b3041d8a23cb43af76de14eabee45f900ad5ddf7af8f70a2be4850bccc2d3af1 py3-dacite-1.8.1.tar.gz
|
||||||
|
"
|
|
@ -1,32 +0,0 @@
|
||||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
|
|
||||||
_pyname=dacite
|
|
||||||
pkgname="py3-$_pyname"
|
|
||||||
pkgver=1.8.0
|
|
||||||
pkgrel=0
|
|
||||||
arch="noarch"
|
|
||||||
pkgdesc="This module simplifies creation of data classes (PEP 557) from dictionaries."
|
|
||||||
url="https://pypi.python.org/project/$_pyname"
|
|
||||||
license="MIT"
|
|
||||||
depends="python3"
|
|
||||||
makedepends="py3-setuptools"
|
|
||||||
checkdepends="py3-pytest"
|
|
||||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
|
||||||
builddir="$srcdir"/$_pyname-$pkgver
|
|
||||||
|
|
||||||
build() {
|
|
||||||
python3 setup.py build
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
PYTHONPATH="$PWD/src" pytest || true
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
python3 setup.py install --root="$pkgdir" --optimize=1
|
|
||||||
install -Dm644 "./LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
||||||
}
|
|
||||||
sha512sums="
|
|
||||||
7e9ebf7da56aa8e65d5a5f0576a0e268344ee40459bdcde2560d17e90d4b73f660ce9dbec3ab5377100f42a21ad8698019b5b6f4fa03ddcd959af5ebb261b465 py3-dacite-1.8.0.tar.gz
|
|
||||||
"
|
|
Loading…
Reference in a new issue