Commit 93ba7680 authored by Leo's avatar Leo Committed by Francesco Colista
Browse files

testing/py3-cleo: enable tests, fix dependencies

switch to GitHub tarballs and use pyproject2setuppy to generate the
setup.py on the fly

We also found out while running the tests that this package needs
py3-clickit so add it to depends
parent 246179aa
......@@ -4,23 +4,29 @@
pkgname=py3-cleo
_realname=cleo
pkgver=0.8.1
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/cleo"
arch="noarch"
license="MIT"
depends="python3 py3-pastel py3-pylev"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_realname:0:1}/$_realname/$_realname-$pkgver.tar.gz"
depends="python3 py3-pastel py3-pylev py3-clikit"
checkdepends="py3-pytest py3-pytest-mock"
makedepends="pyproject2setuppy"
source="$pkgname-$pkgver.tar.gz::https://github.com/sdispater/cleo/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/$_realname-$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="dd7b7e4a6574f3ff47089d42aab7ca5ea0d04fe1affb7015a6c9edadc655fe9a76afcef2a3fd776d9745216581d4f7d7a330e366748bac2fa831840eceee44d3 cleo-0.8.1.tar.gz"
sha512sums="
9cd470063db9866a526f0bb8619d772c585377d5b1a662e0f94bad9fb9c853598b176444ca1ac0fadec82992196c471646504d6a28d4dcd1171433b8d160be9c py3-cleo-0.8.1.tar.gz
"
Markdown is supported
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