Date: Friday, June 15, 2018 @ 14:06:52 Author: eschwartz Revision: 343315
upgpkg: python-markdown-math 0.6-1 upstream release add tests Modified: python-markdown-math/trunk/PKGBUILD ----------+ PKGBUILD | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-06-15 14:01:51 UTC (rev 343314) +++ PKGBUILD 2018-06-15 14:06:52 UTC (rev 343315) @@ -4,19 +4,17 @@ pkgbase=python-markdown-math pkgname=('python-markdown-math' 'python2-markdown-math') -pkgver=0.5 -pkgrel=2 +pkgver=0.6 +pkgrel=1 pkgdesc="Math extension for Python-Markdown" arch=('any') url="https://github.com/mitya57/python-markdown-math" license=('BSD') makedepends=('python-setuptools' 'python2-setuptools') -source=("https://files.pythonhosted.org/packages/source/${pkgbase:0:1}/${pkgbase}/${pkgbase}-${pkgver}.tar.gz"{,.asc} - # license not in PyPI https://github.com/mitya57/python-markdown-math/issues/20 - "${pkgbase}-${pkgver}.LICENSE::${url}/raw/${pkgver}/LICENSE") -sha256sums=('8f8803c92ac0847d18bd82a51fdb6acec90b2b54a4990650e627a0d4d3a78445' - 'SKIP' - '790098f2d689d037aed29c5e11d185390bc1c122a6b97f91c0ccfa90f6fcdbae') +checkdepends=('python-markdown' 'python2-markdown') +source=("https://files.pythonhosted.org/packages/source/${pkgbase:0:1}/${pkgbase}/${pkgbase}-${pkgver}.tar.gz"{,.asc}) +sha256sums=('c68d8cb9695cb7b435484403dc18941d1bad0ff148e4166d9417046a0d5d3022' + 'SKIP') validpgpkeys=('F24299FF1BBC9018B906A4CB6026936D2F1C8AE0') # Dmitry Shachnev <mity...@debian.org> build() { @@ -26,18 +24,25 @@ python2 setup.py build } +check() { + cd "python-markdown-math-${pkgver}" + + python setup.py test + python2 setup.py test +} + package_python-markdown-math() { - depends=('python') + depends=('python-markdown') cd "python-markdown-math-${pkgver}" python setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm644 ../${pkgbase}-${pkgver}.LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } package_python2-markdown-math() { - depends=('python2') + depends=('python2-markdown') cd "python-markdown-math-${pkgver}" python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm644 ../${pkgbase}-${pkgver}.LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE }