[arch-commits] Commit in python-bleach/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Oct 25 19:59:02 UTC 2019


    Date: Friday, October 25, 2019 @ 19:59:01
  Author: felixonmars
Revision: 519662

archrelease: copy trunk to community-staging-any

Added:
  python-bleach/repos/community-staging-any/
  python-bleach/repos/community-staging-any/PKGBUILD
    (from rev 519661, python-bleach/trunk/PKGBUILD)

----------+
 PKGBUILD |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

Copied: python-bleach/repos/community-staging-any/PKGBUILD (from rev 519661, python-bleach/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 19:59:01 UTC (rev 519662)
@@ -0,0 +1,57 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+
+pkgbase=python-bleach
+pkgname=(python-bleach python2-bleach)
+pkgver=3.1.0
+pkgrel=2
+
+pkgdesc="An easy whitelist-based HTML-sanitizing tool"
+url="https://pypi.org/project/bleach/"
+arch=('any')
+license=('Apache')
+makedepends=('python'
+             'python-setuptools'
+             'python-webencodings'
+             'python2'
+             'python2-setuptools'
+              'python2-webencodings')
+checkdepends=('python-pytest'
+              'python2-pytest')
+
+source=(https://pypi.org/packages/source/b/bleach/bleach-$pkgver.tar.gz)
+
+sha256sums=('3fdf7f77adcf649c9911387df51254b813185e32b2c6619f690b593a617e19fa')
+
+prepare() {
+	cp -a bleach-$pkgver{,-python2}
+}
+
+build() {
+	cd "$srcdir"/bleach-$pkgver
+	python setup.py build
+
+	cd "$srcdir"/bleach-$pkgver-python2
+	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-webencodings')
+
+	cd "$srcdir"/bleach-$pkgver
+	python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-bleach() {
+	depends=('python2-webencodings')
+
+	cd "$srcdir"/bleach-$pkgver-python2
+	python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list