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

Jelle van der Waa jelle at gemini.archlinux.org
Sat Jun 4 11:24:58 UTC 2022


    Date: Saturday, June 4, 2022 @ 11:24:57
  Author: jelle
Revision: 1220792

archrelease: copy trunk to community-testing-any

Added:
  python-bleach/repos/community-testing-any/
  python-bleach/repos/community-testing-any/PKGBUILD
    (from rev 1220791, python-bleach/trunk/PKGBUILD)
  python-bleach/repos/community-testing-any/pytest5.patch
    (from rev 1220791, python-bleach/trunk/pytest5.patch)

---------------+
 PKGBUILD      |   40 ++++++++++++++++++++++++++++++++++++++++
 pytest5.patch |   23 +++++++++++++++++++++++
 2 files changed, 63 insertions(+)

Copied: python-bleach/repos/community-testing-any/PKGBUILD (from rev 1220791, python-bleach/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2022-06-04 11:24:57 UTC (rev 1220792)
@@ -0,0 +1,40 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+
+pkgname=python-bleach
+pkgver=5.0.0
+pkgrel=1
+
+pkgdesc="An easy whitelist-based HTML-sanitizing tool"
+url="https://pypi.org/project/bleach/"
+arch=('any')
+license=('Apache')
+depends=('python-packaging'
+         'python-six'
+         'python-webencodings')
+makedepends=('python'
+             'python-setuptools')
+checkdepends=('python-pytest')
+
+source=(https://pypi.org/packages/source/b/bleach/bleach-$pkgver.tar.gz)
+
+sha256sums=('c6d6cc054bdc9c83b48b8083e236e5f00f238428666d2ce2e083eaa5fd568565')
+
+prepare() {
+	cd "$srcdir"/bleach-$pkgver
+}
+
+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 --skip-build --optimize=1 --root="$pkgdir"
+}

Copied: python-bleach/repos/community-testing-any/pytest5.patch (from rev 1220791, python-bleach/trunk/pytest5.patch)
===================================================================
--- community-testing-any/pytest5.patch	                        (rev 0)
+++ community-testing-any/pytest5.patch	2022-06-04 11:24:57 UTC (rev 1220792)
@@ -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