Skip to content
Snippets Groups Projects
Verified Commit 53732cea authored by David Runge's avatar David Runge :chipmunk:
Browse files

Switch to PEP517


Signed-off-by: default avatarDavid Runge <dvzrv@archlinux.org>
parent 1a54bf82
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,12 @@ pkgdesc='Python module to validate and convert data structures.'
arch=(any)
url="https://github.com/keleshev/$_name"
depends=(python python-contextlib2)
makedepends=(python-setuptools)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
checkdepends=(python-pytest)
license=(MIT)
source=(
......@@ -29,7 +34,7 @@ prepare() {
build() {
cd "$srcdir/$_name-$pkgver"
python setup.py build
python -m build --wheel --no-isolation
}
check() {
......@@ -39,7 +44,7 @@ check() {
package() {
cd "$srcdir/$_name-$pkgver"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
python -m installer --destdir="$pkgdir" dist/*.whl
install -D -m644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment