diff options
author | Matthew Sexton | 2023-12-24 02:04:36 -0500 |
---|---|---|
committer | Matthew Sexton | 2023-12-24 02:04:36 -0500 |
commit | 33c187e56634321c919b4d266428bb487c686e7f (patch) | |
tree | d4e1932e75410052d363800260170fb393e8a4aa | |
parent | 8d3873e6f4e8fa1dccf2acba0220fbc03a726417 (diff) | |
download | aur-python-pyexcel-ods.tar.gz |
0.6.0 and added check function
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 29 insertions, 22 deletions
@@ -1,17 +1,24 @@ pkgbase = python-pyexcel-ods - pkgdesc = A wrapper library to read, manipulate and write data in ods format - pkgver = 0.5.6 + pkgdesc = A plugin to pyexcel to read, manipulate and write data in ods format using odfpy + pkgver = 0.6.0 pkgrel = 1 url = https://github.com/pyexcel/pyexcel-ods arch = i686 arch = x86_64 license = BSD-3-clause + checkdepends = python-pyexcel + checkdepends = python-pyexcel-xls + checkdepends = python-nose + checkdepends = python-psutil + checkdepends = python-coverage makedepends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel depends = python depends = python-odfpy depends = python-pyexcel-io - source = https://github.com/pyexcel/pyexcel-ods/archive/0.5.6.tar.gz - md5sums = d51b9a481c1cd3d1fc8776004835faf8 + source = https://github.com/pyexcel/pyexcel-ods/archive/v0.6.0.tar.gz + md5sums = 0d9557135f9b3d16fd42ecde8ff979c5 pkgname = python-pyexcel-ods - @@ -1,31 +1,31 @@ -# Maintainer: Eduardo Parra Mazuecos <eduparra90@gmail.com> - -# I maintain this on github, feel free to submit a pull request to -# https://github.com/soker90/paquetes-archinux.git +# Maintainer: Matthew Sexton <matthew@asylumtech.com> +# Contributor: Eduardo Parra Mazuecos <eduparra90@gmail.com> pkgname=python-pyexcel-ods -pkgver=0.5.6 +_pkgname=${pkgname#python-} +pkgver=0.6.0 pkgrel=1 -pkgdesc="A wrapper library to read, manipulate and write data in ods format" +pkgdesc="A plugin to pyexcel to read, manipulate and write data in ods format using odfpy" arch=('i686' 'x86_64') url="https://github.com/pyexcel/pyexcel-ods" license=('BSD-3-clause') -makedepends=('python-setuptools') +makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') +checkdepends=('python-pyexcel' 'python-pyexcel-xls' 'python-nose' 'python-psutil' 'python-coverage') depends=('python' 'python-odfpy' 'python-pyexcel-io') -source=("https://github.com/pyexcel/pyexcel-ods/archive/$pkgver.tar.gz") -md5sums=('d51b9a481c1cd3d1fc8776004835faf8') +source=("https://github.com/pyexcel/pyexcel-ods/archive/v$pkgver.tar.gz") +md5sums=('0d9557135f9b3d16fd42ecde8ff979c5') build() { - cd "$srcdir/${pkgname#python-}-$pkgver" + cd "${_pkgname}-$pkgver" + python -m build --wheel --no-isolation +} - msg2 'Building...' - python setup.py build +check(){ + cd "${_pkgname}-$pkgver" + nosetests --with-coverage --cover-package pyexcel_ods --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyexcel_ods } package() { - cd "$srcdir/${pkgname#python-}-$pkgver" - - msg2 'Installing...' - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - + cd "${_pkgname}-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |