mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
we never use pip in the venv manually made for tests- this might break 1-2 things unexpectedly, but - those should be looked at anyway - this has a severe speedup- even on a desktop machine with nvme, this makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small optimisation.
43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
|
pkgname=py3-versioningit
|
|
pkgver=2.1.0
|
|
pkgrel=1
|
|
pkgdesc="Versioning It with your Version In Git"
|
|
url="https://github.com/jwodder/versioningit"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
python3
|
|
py3-setuptools
|
|
py3-packaging
|
|
py3-pydantic
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-installer
|
|
py3-wheel
|
|
"
|
|
checkdepends="mercurial py3-build py3-pytest py3-pytest-mock py3-pytest-cov"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/jwodder/versioningit/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/${pkgname#py3-}-$pkgver"
|
|
|
|
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 -v test
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/versioningit-$pkgver-py3-none-any.whl
|
|
}
|
|
|
|
sha512sums="
|
|
3d0e935511067ef71a6632190d5b538d02ca7ae1747bdbb418e4058846d84ea29ab5b2c192333a90c5f725a572b1b55042b9e2331ff4aada0530ffbffceda648 py3-versioningit-2.1.0.tar.gz
|
|
"
|