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