Date: Tuesday, January 31, 2023 @ 20:30:20 Author: felixonmars Revision: 1391553
archrelease: copy trunk to community-any Added: python-tqdm/repos/community-any/PKGBUILD (from rev 1391552, python-tqdm/trunk/PKGBUILD) Deleted: python-tqdm/repos/community-any/PKGBUILD ----------+ PKGBUILD | 85 ++++++++++++++++++++++++++----------------------------------- 1 file changed, 37 insertions(+), 48 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2023-01-31 20:30:08 UTC (rev 1391552) +++ PKGBUILD 2023-01-31 20:30:20 UTC (rev 1391553) @@ -1,48 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -_pkgname=tqdm -pkgname=python-$_pkgname -pkgver=4.64.1 -pkgrel=1 -pkgdesc='Fast, Extensible Progress Meter' -arch=('any') -license=('MIT' 'MPL') -url='https://github.com/tqdm/tqdm' -depends=('python') -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-rich' 'python-dask' 'tk') -source=("$pkgname-$pkgver.tar.gz::https://github.com/tqdm/tqdm/archive/v$pkgver.tar.gz") -sha512sums=('87cb0c0daebb66ccdbf6f55207459795fcaa93d9bfacb767008ca9e536c0e2738c3639162d02fd0b9d91b18a75b411d5a0d53feb7d6c4786be31640c35a8d9b5') - -build() { - cd $_pkgname-$pkgver - - export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver - - python setup.py build -} - -check() { - 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 $_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 -} - -# vim:set ts=2 sw=2 et: Copied: python-tqdm/repos/community-any/PKGBUILD (from rev 1391552, python-tqdm/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2023-01-31 20:30:20 UTC (rev 1391553) @@ -0,0 +1,37 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-tqdm +pkgver=4.64.1 +_commit=6791e8c5b3d6c30bdd2060c346996bfb5a6f10d1 +pkgrel=2 +pkgdesc='Fast, Extensible Progress Meter' +arch=('any') +license=('MIT' 'MPL') +url='https://github.com/tqdm/tqdm' +depends=('python') +optdepends=('python-requests: telegram') +makedepends=('git' 'python-setuptools-scm' 'python-toml') +checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-pytest-timeout' 'python-numpy' + 'python-pandas' 'python-rich' 'python-dask' 'tk') +source=("git+https://github.com/tqdm/tqdm.git#commit=$_commit") +sha512sums=('SKIP') + +build() { + cd tqdm + python setup.py build +} + +check() { + cd tqdm + 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 + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENCE -t "$pkgdir"/usr/share/licenses/$pkgname/ +} + +# vim:set ts=2 sw=2 et: