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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 16:54:31 UTC 2020


    Date: Monday, November 9, 2020 @ 16:54:30
  Author: foutrelis
Revision: 747682

archrelease: copy trunk to community-staging-any

Added:
  python-bleach/repos/community-staging-any/
  python-bleach/repos/community-staging-any/PKGBUILD
    (from rev 747679, python-bleach/trunk/PKGBUILD)
  python-bleach/repos/community-staging-any/pytest5.patch
    (from rev 747680, python-bleach/trunk/pytest5.patch)

---------------+
 PKGBUILD      |   34 ++++++++++++++++++++++++++++++++++
 pytest5.patch |   23 +++++++++++++++++++++++
 2 files changed, 57 insertions(+)

Copied: python-bleach/repos/community-staging-any/PKGBUILD (from rev 747679, python-bleach/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:54:30 UTC (rev 747682)
@@ -0,0 +1,34 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+
+pkgname=python-bleach
+pkgver=3.2.1
+pkgrel=2
+
+pkgdesc="An easy whitelist-based HTML-sanitizing tool"
+url="https://pypi.org/project/bleach/"
+arch=('any')
+license=('Apache')
+depends=('python-webencodings')
+makedepends=('python'
+             'python-setuptools')
+checkdepends=('python-pytest')
+
+source=(https://pypi.org/packages/source/b/bleach/bleach-$pkgver.tar.gz)
+
+sha256sums=('52b5919b81842b1854196eaae5ca29679a2f2e378905c346d3ca8227c2c66080')
+
+build() {
+	cd "$srcdir"/bleach-$pkgver
+	python setup.py build
+}
+
+# Upstream broke the test suite.
+check() {
+	cd "$srcdir"/bleach-$pkgver
+	python -m pytest
+}
+
+package() {
+	cd "$srcdir"/bleach-$pkgver
+	python setup.py install --root="$pkgdir" --optimize=1
+}

Copied: python-bleach/repos/community-staging-any/pytest5.patch (from rev 747680, python-bleach/trunk/pytest5.patch)
===================================================================
--- community-staging-any/pytest5.patch	                        (rev 0)
+++ community-staging-any/pytest5.patch	2020-11-09 16:54:30 UTC (rev 747682)
@@ -0,0 +1,23 @@
+From 9201b4708a90dc1f841285c6ec47814f6ed17495 Mon Sep 17 00:00:00 2001
+From: Emin Mastizada <emin at linux.com>
+Date: Wed, 16 Oct 2019 17:47:27 +0300
+Subject: [PATCH] Support pytest5 syntax for tests
+
+diff --git a/tests/test_clean.py b/tests/test_clean.py
+index e306cc5..d041ffa 100644
+--- a/tests/test_clean.py
++++ b/tests/test_clean.py
+@@ -24,11 +24,11 @@ def test_only_text_is_cleaned():
+ 
+     with pytest.raises(TypeError) as e:
+         clean(some_type)
+-    assert "argument cannot be of 'type' type" in str(e)
++    assert "argument cannot be of 'type' type" in str(e.value)
+ 
+     with pytest.raises(TypeError) as e:
+         clean(no_type)
+-    assert "NoneType" in str(e)
++    assert "NoneType" in str(e.value)
+ 
+ 
+ def test_empty():



More information about the arch-commits mailing list