diff options
author | Kristóf Marussy | 2022-06-16 00:25:23 +0200 |
---|---|---|
committer | Kristóf Marussy | 2022-06-16 00:29:03 +0200 |
commit | 0d22872afa2969e101f4c07a7a479f12f7d89ae1 (patch) | |
tree | 8395e5b698c04ec0f0def9c4d17d9bc58e66085c | |
parent | e420186c64b00598f75111ceb18b35f58aeaa312 (diff) | |
download | aur-0d22872afa2969e101f4c07a7a479f12f7d89ae1.tar.gz |
update PKGBUILD based on the python-cleo package
* replace python-dephell with python-pyprojec2setuppy
* run tests in check()
* bump dependency versions
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 20 insertions, 21 deletions
@@ -1,17 +1,19 @@ pkgbase = python-cleo-git pkgdesc = Cleo allows you to create beautiful and testable command-line interfaces. - pkgver = 1.0.0a1.r1.ga772384 - pkgrel = 2 + pkgver = 1.0.0a5.r7.g9e8ecbe + pkgrel = 1 url = https://github.com/sdispater/cleo arch = any license = MIT + checkdepends = python-pytest + checkdepends = python-pytest-mock makedepends = git - makedepends = python-dephell + makedepends = python-pyproject2setuppy depends = python-pylev>=1.3 depends = python-pylev<2.0 - depends = python-crashtest>=0.3.0 + depends = python-crashtest>=0.3.1 depends = python-crashtest<0.4.0 - depends = python>=3.6 + depends = python>=3.7 depends = python<4.0 provides = python-cleo conflicts = python-cleo @@ -19,4 +21,3 @@ pkgbase = python-cleo-git sha256sums = SKIP pkgname = python-cleo-git - @@ -3,16 +3,17 @@ _pkgname=cleo pkgname=python-cleo-git -pkgver=1.0.0a1.r1.ga772384 -pkgrel=2 +pkgver=1.0.0a5.r7.g9e8ecbe +pkgrel=1 pkgdesc="Cleo allows you to create beautiful and testable command-line interfaces." arch=('any') provides=("python-cleo") conflicts=('python-cleo') url="https://github.com/sdispater/${_pkgname}" license=('MIT') -depends=('python-pylev>=1.3' 'python-pylev<2.0' 'python-crashtest>=0.3.0' 'python-crashtest<0.4.0' 'python>=3.6' 'python<4.0') -makedepends=('git' 'python-dephell') +depends=('python-pylev>=1.3' 'python-pylev<2.0' 'python-crashtest>=0.3.1' 'python-crashtest<0.4.0' 'python>=3.7' 'python<4.0') +makedepends=('git' 'python-pyproject2setuppy') +checkdepends=('python-pytest' 'python-pytest-mock') source=("${_pkgname}::git+${url}") sha256sums=('SKIP') @@ -21,22 +22,19 @@ pkgver() { git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } -prepare() { +build() { cd "${srcdir}"/${_pkgname} - - # poetry-generated setup.py are fatally broken, see: - # https://github.com/sdispater/poetry/issues/866 - dephell deps convert --from pyproject.toml --to setup.py + python -m pyproject2setuppy build } -build(){ - cd "${srcdir}"/${_pkgname} - python setup.py build +check() { + cd "${srcdir}"/${_pkgname} + python -m pytest } package() { - cd "${srcdir}"/${_pkgname} - python setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE + cd "${srcdir}"/${_pkgname} + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } |