summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2020-11-15 22:19:21 (GMT)
committerBritney Fransen <brfransen@gmail.com>2020-11-15 22:19:21 (GMT)
commit0c6c359df737180a355ecea24505a4f3b53b3358 (patch)
treefd45ee5f14a405b1962df46f8b08613f41206ff4 /abs
parentf4b763a5dff802f4ddad8fd5dc829efc1ba1843d (diff)
downloadlinhes_pkgbuild-0c6c359df737180a355ecea24505a4f3b53b3358.zip
linhes_pkgbuild-0c6c359df737180a355ecea24505a4f3b53b3358.tar.gz
linhes_pkgbuild-0c6c359df737180a355ecea24505a4f3b53b3358.tar.bz2
python-markupsafe: 1.1.1
Diffstat (limited to 'abs')
-rw-r--r--abs/core/python_modules/python-markupsafe/PKGBUILD39
1 files 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 <felixonmars@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Alex Anthony <alex.anthony28991@gmail.com>
+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
}