--- PKGBUILD_ORG 2023-04-17 18:56:49.487913514 +0200 +++ PKGBUILD 2023-04-17 19:21:53.306340318 +0200 @@ -4,8 +4,8 @@ # Contributor: Melissa Padilla pkgname=python-future -pkgver=0.18.2 -pkgrel=8 +pkgver=0.18.3 +pkgrel=1 pkgdesc="Clean single-source support for Python 3 and 2" url="https://python-future.org/" arch=('any') @@ -13,26 +13,30 @@ depends=('python') provides=('futurize' 'pasteurize') checkdepends=('python-requests') -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') optdepends=('python-setuptools: futurize and pasteurize scripts') options=('!emptydirs') source=("https://pypi.io/packages/source/f/future/future-$pkgver.tar.gz") -sha512sums=('91c025f7d94bcdf93df838fab67053165a414fc84e8496f92ecbb910dd55f6b6af5e360bbd051444066880c5a6877e75157bd95e150ead46e5c605930dfc50f2') +sha512sums=('6de56a5aa5c5dd56a0dc5a6732c753530f9868036bd97e9d355f9ee6e1305e266a60c167de779cba93f09b5b3fae615193074caba2afe857ca7ea944532ef910') build() { cd "$srcdir"/future-$pkgver - python setup.py build + + python -m build --wheel } check() { cd "$srcdir"/future-$pkgver -#PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python setup.py test || warning "Tests failed" + + # test_future needs python2 so it is disabled here +# PYTHONPATH="$PWD/build/lib:$PYTHONPATH" pytest -v tests/test_future + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" pytest -v tests/test_past } package() { cd future-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl install -D -m644 LICENSE.txt \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt }