-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
33 lines (31 loc) · 905 Bytes
/
PKGBUILD
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
# Maintainer: Benoît Allard <[email protected]>
# Maintainer: Daniel Bershatsky <[email protected]>
pkgname=python-optuna
_pkgname=${pkgname#python-}
pkgver=3.3.0
pkgrel=1
pkgdesc="A hyperparameter optimization framework"
arch=('any')
url="https://optuna.org"
license=('MIT')
depends=(
'python-alembic'
'python-cmaes'
'python-colorlog'
'python-numpy'
'python-packaging'
'python-sqlalchemy'
'python-yaml'
)
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/optuna/$_pkgname/archive/v$pkgver.tar.gz")
sha256sums=('17f4b6605fb34d6c3ad65b547110b5d920ed3486e61e33d980fb272a0d991b35')
build() {
python -m build -nw $_pkgname-$pkgver
}
package() {
python -m installer \
--compile-bytecode 1 \
--destdir="$pkgdir" \
$_pkgname-$pkgver/dist/$_pkgname-*.whl
}