2023-10-24 19:03:41 +02:00

36 lines
1.1 KiB
Plaintext

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=interrogate
pkgver=1.5.0
pkgrel=5
pkgdesc="Interrogate a codebase for docstring coverage"
url="https://github.com/econchick/interrogate"
arch="noarch"
license="MIT"
depends="py3-attrs py3-click py3-colorama py3-py py3-setuptools py3-tabulate py3-toml"
makedepends="py3-gpep517 py3-wheel"
checkdepends="py3-pytest-xdist py3-pytest-cov py3-pytest-mock"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/i/interrogate/interrogate-$pkgver.tar.gz"
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 -n auto
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
493411b1bf6a73512c0105da2a7caed5052c790429c2f499f18f8b6b5b5caa5f4b3c2d4cd490e06bfd99d82ba62ab00b623289bfe288cc95d58c089c10b6abdd interrogate-1.5.0.tar.gz
"