Date: Thursday, April 22, 2021 @ 15:27:08 Author: ffy00 Revision: 921163
upgpkg: tqdm-tqdm 4.60.0-1 Modified: python-tqdm/trunk/PKGBUILD ----------+ PKGBUILD | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-04-22 15:25:54 UTC (rev 921162) +++ PKGBUILD 2021-04-22 15:27:08 UTC (rev 921163) @@ -1,7 +1,8 @@ # Maintainer: Felix Yan <felixonm...@archlinux.org> -pkgname=python-tqdm -pkgver=4.59.0 +_pkgname=tqdm +pkgname=$_pkgname-tqdm +pkgver=4.60.0 pkgrel=1 pkgdesc='Fast, Extensible Progress Meter' arch=('any') @@ -11,26 +12,36 @@ optdepends=('python-requests: telegram') makedepends=('python-setuptools-scm' 'python-toml') checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-pytest-timeout' 'python-numpy' - 'python-pandas' 'python-tensorflow') + 'python-pandas' 'python-tensorflow' 'python-rich' 'python-dask' 'tk') source=("$pkgname-$pkgver.tar.gz::https://github.com/tqdm/tqdm/archive/v$pkgver.tar.gz") -sha512sums=('2e61fd6ec6e8cd0c18bf72bfbc1ed7c22497a0df421dabdfe659b33c662f7fbec580c3e5d241bc5013bbb67397e5ba1c84ed4e459687ff958b76922bbbe7337e') +sha512sums=('6a572bb3c4812620f562879793448b086ac07323dea9185177bc0c701060293443d4bdde9f7fcd90aa32094d82bb4fa519fa86c6f36ad5fcf68f1ef3d5ec5956') -export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver +build() { + cd $_pkgname-$pkgver -build() { - cd tqdm-$pkgver + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + python setup.py build } check() { - cd tqdm-$pkgver - python setup.py egg_info - python -m pytest + cd $_pkgname-$pkgver + + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + + python -m venv --system-site-packages test-env + + test-env/bin/python setup.py install + test-env/bin/python -m pytest -k 'not test_dask' } package() { - cd tqdm-$pkgver + cd $_pkgname-$pkgver + + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENCE }