Skip to content
Snippets Groups Projects

Change to a PEP 517 based workflow

Merged loqs requested to merge (removed):pep517 into main
1 file
+ 8
3
Compare changes
  • Side-by-side
  • Inline
+ 8
3
@@ -15,7 +15,12 @@ depends=(
python-levenshtein
python-pyxdameraulevenshtein
)
makedepends=(python-setuptools)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
checkdepends=(
python-pytest
python-hypothesis
@@ -31,7 +36,7 @@ sha256sums=('80de4a8b9a4dec554ec3f3611124ca7decf317f038a5483d8c00c93d3b919924')
build() {
cd ${_pkg}-${pkgver}
python setup.py build
python -m build --wheel --no-isolation
}
check() {
@@ -42,6 +47,6 @@ check() {
package() {
cd ${_pkg}-${pkgver}
python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
}
Loading