-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Switch to python-build: tqdm/tqdm#1490 - Add the missing python-keras makedepends - Temporarely disable check () as it requires python-pandas v2.0.x (still in v1.5.3 in our repo currently): sdv-dev/SDV#1469 (comment)
- Loading branch information
Robin Candau
committed
Aug 16, 2023
1 parent
f5516a4
commit 0fd9cbf
Showing
1 changed file
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,44 @@ | ||
# Maintainer: Felix Yan <[email protected]> | ||
# Maintainer: Robin Candau <[email protected]> | ||
|
||
pkgname=python-tqdm | ||
pkgver=4.65.0 | ||
_commit=0bb91857eca0d4aea08f66cf1c8949abe0cd6b7a | ||
pkgrel=3 | ||
pkgver=4.66.1 | ||
_commit=4c956c20b83be4312460fc0c4812eeb3fef5e7df | ||
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=('git' 'python-setuptools-scm' 'python-toml') | ||
checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-pytest-timeout' 'python-numpy' | ||
'python-pandas' 'python-rich' 'python-dask' 'tk') | ||
makedepends=('git' 'python-setuptools-scm' 'python-toml' 'python-build' 'python-installer' 'python-wheel') | ||
checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-pytest-timeout' 'python-numpy' 'python-pandas' 'python-rich' 'python-dask' 'tk' 'python-keras') | ||
source=("git+https://github.com/tqdm/tqdm.git#commit=$_commit") | ||
sha512sums=('SKIP') | ||
|
||
build() { | ||
cd tqdm | ||
python setup.py build | ||
python -m build --wheel --no-isolation | ||
} | ||
|
||
check() { | ||
cd tqdm | ||
python -m venv --system-site-packages test-env | ||
test-env/bin/python setup.py install | ||
test-env/bin/python -m pytest | ||
|
||
# Tests fail with the following error: | ||
# ``` | ||
# E DeprecationWarning: np.find_common_type is deprecated. Please use `np.result_type` or `np.promote_types`. | ||
# E See https://numpy.org/devdocs/release/1.25.0-notes.html and the docs for more information. (Deprecated NumPy 1.25) | ||
# ``` | ||
# This is because "python-pandas" is outdated in our repo. It is currently in v1.5.3 in [extra] while the test for this package requires >= 2.0.0 | ||
# See the following link for mor details: https://github.com/sdv-dev/SDV/issues/1469#issuecomment-1616746578 | ||
# Until "python-pandas" isn't updated on our side, the tests will fail so they are disabled for now. | ||
|
||
#pytest | ||
} | ||
|
||
package() { | ||
cd tqdm | ||
python setup.py install --root="$pkgdir" --optimize=1 | ||
python -m installer --destdir="$pkgdir" dist/*.whl | ||
install -Dm644 LICENCE -t "$pkgdir"/usr/share/licenses/$pkgname/ | ||
} | ||
|
||
|