From 0c6c359df737180a355ecea24505a4f3b53b3358 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Sun, 15 Nov 2020 22:19:21 +0000 Subject: python-markupsafe: 1.1.1 --- abs/core/python_modules/python-markupsafe/PKGBUILD | 39 +++++++++------------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/abs/core/python_modules/python-markupsafe/PKGBUILD b/abs/core/python_modules/python-markupsafe/PKGBUILD index ec6d6f9..a57d99d 100644 --- a/abs/core/python_modules/python-markupsafe/PKGBUILD +++ b/abs/core/python_modules/python-markupsafe/PKGBUILD @@ -1,53 +1,46 @@ -# $Id$ # Maintainer : Felix Yan # Contributor: Ionut Biru # Contributor: Alex Anthony +pkgbase=python-markupsafe pkgname=('python-markupsafe' 'python2-markupsafe') -pkgver=1.0 -pkgrel=1 +pkgver=1.1.1 +pkgrel=6 pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python" arch=('x86_64') -url="http://pypi.python.org/pypi/MarkupSafe" -license=('custom') +url="https://pypi.python.org/pypi/MarkupSafe" +license=('BSD') makedepends=('python-setuptools' 'python2-setuptools') -source=("https://pypi.io/packages/source/M/MarkupSafe/MarkupSafe-${pkgver}.tar.gz") -sha512sums=('7437a02cb1b9c1d6d6c20b13d394f24a1cd1cb8c743f832d8b1cbb6ab8846f70f54d924dd693423b33c4d592e772983ae38fd4a35961e233457c48bd3584ecb8') - -prepare() { - cp -a MarkupSafe-$pkgver{,-py2} -} +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/pallets/markupsafe/archive/$pkgver.tar.gz") +sha512sums=('c2a1072c5dd0918e47f9cfbd30b79b0690a43635f7cfc3fdd27f3df52f8e20406d7e3cfadd29df8ab1d1110f50e23eb7c7272707e0739d862d4b1edb59bbc241') build() { - cd "$srcdir"/MarkupSafe-$pkgver + cd markupsafe-$pkgver python setup.py build - - cd "$srcdir"/MarkupSafe-$pkgver-py2 python2 setup.py build } check() { - cd "$srcdir"/MarkupSafe-$pkgver - python setup.py test - - cd "$srcdir"/MarkupSafe-$pkgver-py2 - python2 setup.py test + cd markupsafe-$pkgver + python setup.py pytest + python2 setup.py pytest } package_python-markupsafe() { depends=('python') - cd MarkupSafe-$pkgver + cd markupsafe-$pkgver python setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python-markupsafe/LICENSE + install -D -m644 LICENSE.rst "$pkgdir"/usr/share/licenses/python-markupsafe/LICENSE.rst } package_python2-markupsafe() { depends=('python2') - cd MarkupSafe-$pkgver-py2 + cd markupsafe-$pkgver python2 setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python2-markupsafe/LICENSE + install -D -m644 LICENSE.rst "$pkgdir"/usr/share/licenses/python2-markupsafe/LICENSE.rst } -- cgit v0.12