Skip to content
Snippets Groups Projects
Commit 9c9c9a89 authored by Caleb Maclennan's avatar Caleb Maclennan
Browse files

update to PEP 517 tooling

parent 759542c6
No related branches found
No related tags found
No related merge requests found
......@@ -4,14 +4,15 @@
_pyname=leather
pkgname=python-$_pyname
pkgver=0.3.4
pkgrel=1
pkgrel=2
pkgdesc='Python charting for 80% of humans'
arch=(any)
url="https://$_pyname.readthedocs.io"
license=(MIT)
depends=(python
python-six)
makedepends=(python-setuptools)
makedepends=(python-{build,installer,wheel}
python-setuptools)
checkdepends=(python-cssselect
python-lxml)
_archive="$_pyname-$pkgver"
......@@ -20,16 +21,16 @@ sha256sums=('8dc9545ccdd998527e283c7990535bfe0628ac71c660737c5c266ee0e461e341')
build() {
cd "$_archive"
python setup.py build
python -m build -wn
}
check() {
cd "$_archive"
python setup.py test --test-suite=tests
python -m unittest discover -vs tests
}
package() {
cd "$_archive"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
python -m installer -d "$pkgdir" dist/*.whl
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING
}
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