Skip to content
Snippets Groups Projects

Use PEP 517 workflow, Use SPDX license

Merged loqs requested to merge (removed):update into main
1 file
+ 10
4
Compare changes
  • Side-by-side
  • Inline
+ 10
4
@@ -7,9 +7,15 @@ pkgrel=3
pkgdesc="Implements the Damerau-Levenshtein (DL) edit distance algorithm"
arch=(x86_64)
url="https://github.com/gfairchild/pyxDamerauLevenshtein"
license=(BSD)
license=(BSD-3-Clause)
depends=(python)
makedepends=(python-setuptools cython)
makedepends=(
cython
python-build
python-installer
python-setuptools
python-wheel
)
checkdepends=(python-pytest)
# No tests in PyPi tarballs
#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
@@ -23,7 +29,7 @@ prepare() {
build() {
cd ${_pkg}-${pkgver}
python setup.py build
python -m build --wheel --no-isolation
}
check() {
@@ -34,6 +40,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