Skip to content
Snippets Groups Projects
Commit 1deff452 authored by Daniel M. Capella's avatar Daniel M. Capella
Browse files

Use PEP 517

parent 316474d1
No related branches found
No related tags found
No related merge requests found
......@@ -4,13 +4,14 @@
_name=littleutils
pkgname=python-littleutils
pkgver=0.2.2
pkgrel=3
pkgrel=4
pkgdesc='Small personal collection of python utility functions'
arch=('any')
url=https://github.com/alexmojaki/littleutils
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
'littleutils-LICENSE::https://raw.githubusercontent.com/alexmojaki/littleutils/master/LICENSE')
sha256sums=('e6cae3a4203e530d51c9667ed310ffe3b1948f2876e3d69605b3de4b7d96916f'
......@@ -20,7 +21,7 @@ b2sums=('80aec2c133e39eb0e18c948b15d475e60842689fd0e758c43511a8b014648d7c9e84318
build() {
cd $_name-$pkgver
python setup.py build
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
......@@ -32,5 +33,5 @@ package() {
install -Dm644 littleutils-LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
cd $_name-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
python -m installer --destdir="$pkgdir" dist/*.whl
}
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