diff options
author | Universebenzene | 2021-07-03 21:13:55 +0800 |
---|---|---|
committer | Universebenzene | 2021-07-03 21:13:55 +0800 |
commit | abf04c5d99d0e0bdeb638a46316f5d5df8529167 (patch) | |
tree | f2f8ba3ed423b7a6082fef3927122eb0d5086f95 | |
parent | 14487eb80e346ac1778f9ae1ab28630f247cf3e4 (diff) | |
download | aur-python-pytest-mpl.tar.gz |
Update to version 0.13
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 23 insertions, 11 deletions
@@ -1,7 +1,7 @@ pkgbase = python-pytest-mpl pkgdesc = Pytest plugin to help with testing figures output from Matplotlib - pkgver = 0.12 - pkgrel = 2 + pkgver = 0.13 + pkgrel = 1 url = https://github.com/matplotlib/pytest-mpl arch = i686 arch = x86_64 @@ -9,10 +9,7 @@ pkgbase = python-pytest-mpl makedepends = python-setuptools depends = python-pytest depends = python-matplotlib - depends = python-pillow - depends = python-nose - source = https://files.pythonhosted.org/packages/source/p/pytest-mpl/pytest-mpl-0.12.tar.gz - md5sums = ed0042c46024c4569064dfe9c6a3eae9 + source = https://files.pythonhosted.org/packages/source/p/pytest-mpl/pytest-mpl-0.13.tar.gz + md5sums = a7515d8ba2a275385c07eec3bd9193f3 pkgname = python-pytest-mpl - @@ -1,20 +1,35 @@ # Maintainer: Astro Benzene <universebenzene at sina dot com> pkgname=python-pytest-mpl -pkgver=0.12 -pkgrel=2 +_pyname=${pkgname#python-} +pkgver=0.13 +pkgrel=1 pkgdesc="Pytest plugin to help with testing figures output from Matplotlib" arch=('i686' 'x86_64') url="https://github.com/matplotlib/pytest-mpl" license=('BSD') -depends=('python-pytest' 'python-matplotlib' 'python-pillow' 'python-nose') +depends=('python-pytest' 'python-matplotlib') makedepends=('python-setuptools') +#checkdepends=('python-pytest' 'python-matplotlib') source=("https://files.pythonhosted.org/packages/source/p/pytest-mpl/pytest-mpl-${pkgver}.tar.gz") -md5sums=('ed0042c46024c4569064dfe9c6a3eae9') +md5sums=('a7515d8ba2a275385c07eec3bd9193f3') + +build() { + cd ${srcdir}/${_pyname}-${pkgver} + + python setup.py build +} + +check() { + cd ${srcdir}/${_pyname}-${pkgver} + + pytest || warning "Tests failed" +} package() { cd ${srcdir}/pytest-mpl-${pkgver} install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}" + #install example python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 } |