Date: Monday, February 28, 2022 @ 07:24:16 Author: felixonmars Revision: 1138181
upgpkg: python-path 16.4.0-1 Modified: python-path/trunk/PKGBUILD ----------+ PKGBUILD | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-02-28 07:22:54 UTC (rev 1138180) +++ PKGBUILD 2022-02-28 07:24:16 UTC (rev 1138181) @@ -1,7 +1,7 @@ # Maintainer: Felix Yan <felixonm...@archlinux.org> pkgname=python-path -pkgver=16.3.0 +pkgver=16.4.0 pkgrel=1 pkgdesc='A module wrapper for os.path' arch=('any') @@ -8,17 +8,19 @@ license=('MIT') url='https://github.com/jaraco/path' depends=('python') -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel') checkdepends=('python-pytest-black' 'python-pytest-cov' 'python-pytest-flake8' 'python-pytest-mypy') replaces=('python-path.py') conflicts=('python-path.py') provides=('python-path.py') source=("https://github.com/jaraco/path/archive/v$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('10065efeb36a05b6885eff3e91fc63b80e0418567d5be0a442c1c46283faaafe8032a7eeb2fe547416bab4208c53db3fa0048a939a6294f04393a155983ec1dd') +sha512sums=('fefb50da55ad77cdb61c7c4a05eeffaae9f6db349ce0b75d5e37ca8e3152deff19c6c1556e9efbe7faeaf569342a670fc360a4e650e65f509a68a62130d7d093') +export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + build() { cd path-$pkgver - python setup.py build + python -m build --wheel --no-isolation } check() { @@ -28,6 +30,6 @@ package() { cd path-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ }