blob: fc4a253c4f0326a76dd5cdf887a3b4416f53e6d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Daniel Bershatsky <bepshatsky@yandex.ru>
pkgname=python-wandb
_pkgname=${pkgname#python-}
pkgver=0.17.9
pkgrel=1
pkgdesc='A tool for visualizing and tracking your machine learning experiments'
arch=('any')
url='https://wandb.ai'
license=('MIT')
depends=(
'python-click'
'python-docker-pycreds'
'python-gitpython'
'python-platformdirs'
'python-protobuf'
'python-psutil'
'python-requests'
'python-sentry_sdk'
'python-setproctitle'
'python-setuptools'
'python-yaml'
)
makedepends=('gcc' 'go' 'python-build' 'python-hatchling' 'python-wheel')
optdepends=(
'python-moviepy: logging videos'
'python-numpy: logging multi-dimensional arrays'
'python-pillow: logging images'
'python-rdkit: logging cheminformatical data'
'python-soundfile: logging audios'
)
provides=('python-wandb')
conflicts=('python-wandb-git')
install="python-wandb.install"
source=("$pkgname-$pkgver.tar.gz::https://github.com/wandb/wandb/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('3710701698d5a0c2c19624fac56f8bb089c62a3231fd54400c7b82fa3c834fd8')
build() {
cd "$_pkgname-$pkgver"
python -m build -nw
}
check() {
cd "$_pkgname-$pkgver"
PYTHONPATH=$PWD python -c 'import wandb'
}
package() {
python -m installer \
--compile-bytecode=1 \
--destdir=$pkgdir \
$srcdir/$_pkgname-$pkgver/dist/$_pkgname-$pkgver-*.whl
}
|