Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / yapf
Commits: 567067b3 by Felix Yan at 2023-09-24T15:14:34+03:00 upgpkg: 0.40.2-1 - - - - - 1 changed file: - PKGBUILD Changes: ===================================== PKGBUILD ===================================== @@ -1,30 +1,36 @@ # Maintainer: Felix Yan <felixonm...@archlinux.org> pkgname=yapf -pkgver=0.40.1 +pkgver=0.40.2 pkgrel=1 pkgdesc="Python style guide checker" arch=('any') url="https://github.com/google/yapf" license=('Apache') -depends=('python') -makedepends=('python-setuptools') -checkdepends=('python-nose' 'python-importlib-metadata') -source=("https://github.com/google/yapf/archive/v$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('7d44ea8976c93db850f0a139535962e166b4e488e47761720747686061ad7d7d3bbb2771f2e1519b7db8af630f64b7bcf71143faa56d448c9d098c2d151bffeb') +depends=('python' 'python-importlib-metadata' 'python-platformdirs') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') +checkdepends=('python-nose') +source=("https://github.com/google/yapf/archive/v$pkgver/$pkgname-$pkgver.tar.gz" + $pkgname-tomllib.patch::https://github.com/google/yapf/pull/1152.patch) +sha512sums=('be71b622efde162d64e5143c2a27de254a3791c229046309a083fa0df00afb4170cf0427c4402d3c621ca2120210ba15aa6d124ef7b8790c4b72705f5c5342e3' + '4cf96842f113b58ed3263573865bc1c00fd48c7db0a346de1a20d51114a839138c0f3cdd03ce0c9227026c3d3887f7eef53d3632aad0afe85d52d189c7757ff2') + +prepare() { + cd yapf-$pkgver + patch -p1 -i ../$pkgname-tomllib.patch +} build() { cd yapf-$pkgver - python setup.py build + python -m build -nw } -# TODO: add yapf_third-party as dep -#check() { -# cd yapf-$pkgver -# nosetests3 -#} +check() { + cd yapf-$pkgver + PYTHONPATH="$PWD/third_party" nosetests3 +} package() { cd yapf-$pkgver - python setup.py install -O1 --root="$pkgdir" + python -m installer -d "$pkgdir" dist/*.whl } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/yapf/-/commit/567067b371e6041ec762241ee3bcc5969c95a707 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/yapf/-/commit/567067b371e6041ec762241ee3bcc5969c95a707 You're receiving this email because of your account on gitlab.archlinux.org.