summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d307586bbb6ba499a6123c2653492fc346927172 (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
# Maintainer: naether.markus[at]gmail.com

pkgname=gto
pkgver=1.1.0
pkgrel=1
pkgdesc="Git Tag Ops. Turn your Git repository into Artifact Registry or Model Registry."
arch=('any')
url="https://github.com/iterative/gto"
license=('Apache-2.0')
depends=(
	'python'
	'python-scmrepo'
    'python-typer'
    'python-rich'
    'python-pydantic'
    'python-ruamel-yaml'
    'python-semver'
    'python-entrypoints'
    'python-tabulate'
    'python-funcy'
    'python-shortuuid'
)
makedepends=(
	'python-build'
	'python-installer'
)
source=("gto-${pkgver}::git+${url}.git#tag=${pkgver}")
sha256sums=(
	'SKIP'
)

build() {
	cd "${srcdir}/gto-${pkgver}"
	python -m build --wheel --skip-dependency-check #--no-isolation
}

package() {
    cd "$srcdir/gto-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/gto"
}