Commit dd26b4e4 authored by Leo's avatar Leo Committed by Michał Polański
Browse files

testing/py3-clikit: enable tests

use pyproject2setuppy so we can use GitHub tarballs
parent fef24cb0
......@@ -2,23 +2,29 @@
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-clikit
pkgver=0.6.2
pkgrel=1
pkgrel=2
pkgdesc="Python3 library to create beautiful and testable command-line interfaces"
options="!check" # No tests on pypi tarball, github uses pyproject.toml
url="https://github.com/sdispater/clikit"
arch="noarch"
license="MIT"
depends="python3 py3-crashtest py3-pastel py3-pylev"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/c/clikit/clikit-$pkgver.tar.gz"
makedepends="py3-setuptools pyproject2setuppy"
checkdepends="py3-pytest py3-pytest-mock"
source="$pkgname-$pkgver.tar.gz::https://github.com/sdispater/clikit/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/clikit-$pkgver"
build() {
python3 setup.py build
python3 -m pyproject2setuppy.main build
}
check() {
PYTHONPATH="$PWD/build/lib" py.test-3 -v
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
python3 -m pyproject2setuppy.main install --prefix=/usr --root="$pkgdir"
}
sha512sums="669bc8f3f82cc7c876042cef7baf850ec9116fced38293b7624bfd89b9a183a6f147d739d5a9a6c4465b963a5d3d6e439e5c3d8681dc531b51ce2ea4fd5d3f09 clikit-0.6.2.tar.gz"
sha512sums="
6f6e436b2161349ce03c705df594e564dbc594b03370dfd62e3b1c8f2accbbc12a1cda881ca392a096435ee243e4f772589ce6f6dfbd3af63d1656d49c3fcb04 py3-clikit-0.6.2.tar.gz
"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment