diff --git a/testing/kubesplit/APKBUILD b/testing/kubesplit/APKBUILD index 21c465b1a5f..05e76503200 100644 --- a/testing/kubesplit/APKBUILD +++ b/testing/kubesplit/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Galen Abell # Maintainer: Galen Abell pkgname=kubesplit -pkgver=0.3.3 -pkgrel=2 +pkgver=0.5.0 +pkgrel=0 pkgdesc="Split multidoc yaml formatted kubernetes descriptors to a set of single resource files" url="https://github.com/looztra/kubesplit" arch="noarch" @@ -10,24 +10,30 @@ license="Apache-2.0" depends="python3 py3-ruamel.yaml yamkix" makedepends=" py3-gpep517 - py3-installer - py3-poetry-core - py3-poetry-dynamic-versioning + py3-hatchling + py3-hatch-vcs + py3-packaging + py3-typer py3-wheel " checkdepends="py3-pytest py3-pytest-runner" subpackages="$pkgname-pyc" -source="$pkgname-$pkgver.tar.gz::https://github.com/looztra/kubesplit/archive/v$pkgver.tar.gz" +source=" + $pkgname-$pkgver.tar.gz::https://github.com/looztra/kubesplit/archive/v$pkgver.tar.gz + hatch-vcs.patch + " build() { - export POETRY_DYNAMIC_VERSIONING_BYPASS="$pkgver" + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { - pytest + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest } package() { @@ -36,5 +42,6 @@ package() { } sha512sums=" -b2122caed952de1bc70bafd993f6d16d153f0511ab19481ab346c3399a2660eb493e46b36a7bb3703bfa7beae6c9822067316e2242f03faac7445eeb2649931c kubesplit-0.3.3.tar.gz +3886440a603122782baff2ebbbd810fb1842ae3f8fdff18158a5dc26a28353634252eb0227fe57780318507dc1a08001addd70dda6a6b672000b0f6973bd5b2e kubesplit-0.5.0.tar.gz +1517041bef88e50f4b1f7ce7fd32c14bb727feca455887b63fcda4ac5b56fd2282833fa4d0b62442123e3e3957c6482f7d1c4e47488b6cf0925d35a5d0047667 hatch-vcs.patch " diff --git a/testing/kubesplit/hatch-vcs.patch b/testing/kubesplit/hatch-vcs.patch new file mode 100644 index 00000000000..3ec112c1a82 --- /dev/null +++ b/testing/kubesplit/hatch-vcs.patch @@ -0,0 +1,15 @@ +# Use vcs plugin instead of versioningit for hatch version. Not only is the former packaged for Alpine, it allows +# overriding the version using the SETUPTOOLS_SCM_PRETEND_VERSION variable instead of needing to manually patch a file. +diff --git i/pyproject.toml w/pyproject.toml +index ebf3f1a..6af71c3 100644 +--- i/pyproject.toml ++++ w/pyproject.toml +@@ -53,7 +53,7 @@ dev = [ + ] + + [tool.hatch.version] +-source = "versioningit" ++source = "vcs" + + [tool.hatch.build.targets.wheel] + include = [