mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 02:36:34 +02:00
https://github.com/dbnicholson/ostree-push Push commits from local OSTree repo to a remote
48 lines
1 KiB
Text
Executable file
48 lines
1 KiB
Text
Executable file
# Maintainer: Jian-Hong Pan <jhp@endlessos.org>
|
|
pkgname=ostree-push
|
|
pkgver=1.2.0
|
|
pkgrel=0
|
|
pkgdesc="Push commits from local OSTree repo to a remote"
|
|
url="https://github.com/dbnicholson/ostree-push"
|
|
arch="noarch !loongarch64"
|
|
license="GPL-2.0-only"
|
|
depends="
|
|
openssh-client
|
|
ostree
|
|
ostree-gir
|
|
py3-gobject3
|
|
py3-yaml
|
|
python3
|
|
"
|
|
makedepends="
|
|
cairo-dev
|
|
py3-gobject3-dev
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
python3-dev
|
|
"
|
|
checkdepends="pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-v$pkgver.tar.gz::https://github.com/dbnicholson/ostree-push/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
90c10f004692a3ef53a22ccd5c58ca3fc5b9806ea94635d787db293b319b3c1e30fbce168a2d30db5046bd2c26f228fc3f987a1d36065dfd530e67fbbdc14dc4 ostree-push-v1.2.0.tar.gz
|
|
"
|