--- PKGBUILD 2023-04-17 15:14:53.249735230 +0200 +++ PKGBUILD 2023-04-17 15:18:17.754625861 +0200 @@ -4,13 +4,13 @@ _pkgname=PyBrowserID pkgname=python-browserid pkgver=0.14.0 -pkgrel=13 +pkgrel=14 pkgdesc='Python client library for the BrowserID protocol' arch=('any') url='https://github.com/mozilla/PyBrowserID' license=('MPL2') depends=('python-requests') -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') source=("https://github.com/mozilla/$_pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz" "unittest-mock.patch") sha256sums=('2a59531db7a847fbc1cdd0449e601149e3bab33a8b5629f23bc40c5794b83932' '086c48ce4e2e95231562eb4bf7413a2e8d09882143664a2b3e07d6835a7a89c8') @@ -22,15 +22,15 @@ build() { cd $_pkgname-$pkgver - python setup.py build + python -m build --wheel } check() { cd $_pkgname-$pkgver - python setup.py test + python -m unittest discover "browserid.tests" "test_*" } package() { cd $_pkgname-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl }