diff options
author | Iyán Méndez Veiga | 2022-04-03 16:30:40 +0200 |
---|---|---|
committer | Iyán Méndez Veiga | 2022-04-03 16:30:40 +0200 |
commit | b1d087f41ba619834511a4696eec5d4e5d0f8157 (patch) | |
tree | 342992924a7a3536f0702c65d8e8a68cb1de4610 | |
parent | 180f95b2bdf1e99832fe7521c78c23ce0bace4cb (diff) | |
download | aur-b1d087f41ba619834511a4696eec5d4e5d0f8157.tar.gz |
Use PEP 517 build & install method
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 12 insertions, 6 deletions
@@ -1,11 +1,14 @@ pkgbase = python-dwdweather2 pkgdesc = Client to access weather data from Deutscher Wetterdienst (DWD), the federal meteorological service in Germany pkgver = 0.14.0 - pkgrel = 2 + pkgrel = 3 url = https://github.com/panodata/dwdweather2 arch = x86_64 license = MIT + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel depends = python-tqdm depends = python-dateutil depends = python-requests @@ -2,7 +2,7 @@ _pkgname=dwdweather2 pkgname=python-${_pkgname} pkgver=0.14.0 -pkgrel=2 +pkgrel=3 pkgdesc="Client to access weather data from Deutscher Wetterdienst (DWD), the federal meteorological service in Germany" arch=('x86_64') url="https://github.com/panodata/dwdweather2" @@ -15,17 +15,20 @@ depends=( 'python-beautifulsoup4' ) makedepends=( + 'python-build' + 'python-installer' 'python-setuptools' + 'python-wheel' ) source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/panodata/${_pkgname}/archive/${pkgver}.tar.gz") sha256sums=('876b83b0e008e001e7ad73e366981aa0eab88e966ecd9cffdfb3fae57198957c') build() { - cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py build + cd "${srcdir}/${_pkgname}-${pkgver}" + python -m build --wheel --no-isolation } package() { - cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build + cd "${srcdir}/${_pkgname}-${pkgver}" + python -m installer --destdir="$pkgdir" dist/*.whl } |