mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-17 18:36:42 +02:00
37 lines
1.3 KiB
Text
37 lines
1.3 KiB
Text
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=py3-jaraco.vcs
|
|
pkgver=2.4.1
|
|
pkgrel=0
|
|
pkgdesc="Classes for inspecting and working with repositories in the Mercurial and Git version control systems"
|
|
url="https://github.com/jaraco/jaraco.vcs"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-dateutil py3-jaraco.classes py3-jaraco.versioning py3-more-itertools py3-packaging py3-tempora"
|
|
makedepends="py3-gpep517 py3-installer py3-setuptools_scm py3-wheel"
|
|
checkdepends="py3-jaraco.path py3-pytest py3-pytest-home"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/jaraco/jaraco.vcs/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/jaraco.vcs-$pkgver"
|
|
|
|
build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
|
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 --ignore jaraco/vcs/__init__.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
939221929f9762fd83083958f06d9c3ed328b084e07f2e90ec0da0f3e8b2f4800f19e0d67f9817080e47e5ec0173581ba8cfcfea30acc54e397b4abf882d9778 py3-jaraco.vcs-2.4.1.tar.gz
|
|
"
|