[arch-commits] Commit in python-bleach/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Mon Jul 16 17:33:46 UTC 2018
Date: Monday, July 16, 2018 @ 17:33:46
Author: eschwartz
Revision: 360003
upgpkg: python-bleach 2.1.3-2
python 3.7 rebuild
add tests
Modified:
python-bleach/trunk/PKGBUILD
----------+
PKGBUILD | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-07-16 17:32:52 UTC (rev 360002)
+++ PKGBUILD 2018-07-16 17:33:46 UTC (rev 360003)
@@ -3,16 +3,20 @@
pkgbase=python-bleach
pkgname=(python-bleach python2-bleach)
pkgver=2.1.3
-pkgrel=1
+pkgrel=2
pkgdesc="An easy whitelist-based HTML-sanitizing tool"
-url="http://pypi.python.org/pypi/bleach"
+url="https://pypi.org/project/bleach/"
arch=('any')
license=('Apache')
makedepends=('python'
'python-setuptools'
+ 'python-html5lib'
'python2'
- 'python2-setuptools')
+ 'python2-setuptools'
+ 'python2-html5lib')
+checkdepends=('python-pytest'
+ 'python2-pytest')
source=(https://pypi.org/packages/source/b/bleach/bleach-$pkgver.tar.gz)
@@ -30,6 +34,14 @@
python2 setup.py build
}
+check() {
+ cd "$srcdir"/bleach-$pkgver
+ python -m pytest
+
+ cd "$srcdir"/bleach-$pkgver-python2
+ python2 -m pytest
+}
+
package_python-bleach() {
depends=("python-html5lib")
cd "$srcdir"/bleach-$pkgver
More information about the arch-commits
mailing list