Date: Saturday, April 22, 2023 @ 12:24:23
Author: alerque
Revision: 1448301
upgpkg: python-pytimeparse 1.1.8-6; Refactor with PEP517 build
Modified:
python-pytimeparse/trunk/PKGBUILD
----------+
PKGBUILD | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-22 12:21:32 UTC (rev 1448300)
+++ PKGBUILD 2023-04-22 12:24:23 UTC (rev 1448301)
@@ -5,13 +5,14 @@
pkgname=python-pytimeparse
_pyname=${pkgname#python-}
pkgver=1.1.8
-pkgrel=5
+pkgrel=6
pkgdesc='A small library to parse various kinds of time expressions'
arch=(any)
url="https://github.com/wroberts/$_pyname"
license=(MIT)
depends=(python)
-makedepends=(python-setuptools)
+makedepends=(python-{build,installer,wheel}
+ python-setuptools)
checkdepends=(python-nose)
_archive="$_pyname-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
@@ -19,7 +20,7 @@
build() {
cd "$_archive"
- python setup.py build
+ python -m build -wn
}
check() {
@@ -29,6 +30,6 @@
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/" LICENSE.rst
}