projects/aports·blob master · refs

37 lines · 1.1 KiB

1# Contributor: Duncan Bellamy <[email protected]>
2# Maintainer: Duncan Bellamy <[email protected]>
3pkgname=py3-jaraco.versioning
4pkgver=1.1.0
5pkgrel=1
6pkgdesc="Jaraco versioning module"
7url="https://github.com/jaraco/jaraco.versioning"
8arch="noarch"
9license="MIT"
10depends="py3-packaging"
11makedepends="py3-gpep517 py3-installer py3-setuptools_scm py3-wheel"
12checkdepends="py3-pytest"
13subpackages="$pkgname-pyc"
14source="$pkgname-$pkgver.tar.gz::https://github.com/jaraco/jaraco.versioning/archive/refs/tags/v$pkgver.tar.gz"
15builddir="$srcdir/jaraco.versioning-$pkgver"
16
17build() {
18 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
19 gpep517 build-wheel \
20 --wheel-dir .dist \
21 --output-fd 3 3>&1 >&2
22}
23
24check() {
25 python3 -m venv --clear --without-pip --system-site-packages .testenv
26 .testenv/bin/python3 -m installer .dist/*.whl
27 .testenv/bin/python3 -m pytest
28}
29
30package() {
31 python3 -m installer -d "$pkgdir" \
32 .dist/*.whl
33}
34
35sha512sums="
3636567a7d95f07ea470ad3a637758865451e6d17d50e05504755333f8ded037d7876573929063e3a7a506a07620ae4c4ded581108a9ae43ef5b8e8aa17271a437 py3-jaraco.versioning-1.1.0.tar.gz
37"