[arch-commits] Commit in python-bleach/repos/community-any (4 files)
Jelle van der Waa
jelle at gemini.archlinux.org
Mon Jul 19 14:16:09 UTC 2021
Date: Monday, July 19, 2021 @ 14:16:09
Author: jelle
Revision: 978680
archrelease: copy trunk to community-any
Added:
python-bleach/repos/community-any/PKGBUILD
(from rev 978679, python-bleach/trunk/PKGBUILD)
python-bleach/repos/community-any/pytest5.patch
(from rev 978679, python-bleach/trunk/pytest5.patch)
Deleted:
python-bleach/repos/community-any/PKGBUILD
python-bleach/repos/community-any/pytest5.patch
---------------+
PKGBUILD | 90 ++++++++++++++++++++++++++++----------------------------
pytest5.patch | 46 ++++++++++++++--------------
2 files changed, 68 insertions(+), 68 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-07-19 14:16:03 UTC (rev 978679)
+++ PKGBUILD 2021-07-19 14:16:09 UTC (rev 978680)
@@ -1,45 +0,0 @@
-# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
-
-pkgname=python-bleach
-pkgver=3.3.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
- $pkgname-py39.patch::https://github.com/mozilla/bleach/commit/9ba905729f17.patch)
-
-sha256sums=('98b3170739e5e83dd9dc19633f074727ad848cbedb6026708c8ac2d3b697a433'
- '5b47567a3d47c8e4464b63d5d50abc38da55f2a67d2fa2f7c65041191ea6c156')
-
-prepare() {
- cd "$srcdir"/bleach-$pkgver
- # https://github.com/mozilla/bleach/pull/565
- patch -Np1 -i ../$pkgname-py39.patch
-}
-
-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
- export PYTHONHASHSEED=0
- python setup.py install --skip-build --optimize=1 --root="$pkgdir"
-}
Copied: python-bleach/repos/community-any/PKGBUILD (from rev 978679, python-bleach/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-07-19 14:16:09 UTC (rev 978680)
@@ -0,0 +1,45 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+
+pkgname=python-bleach
+pkgver=3.3.1
+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
+ $pkgname-py39.patch::https://github.com/mozilla/bleach/commit/9ba905729f17.patch)
+
+sha256sums=('306483a5a9795474160ad57fce3ddd1b50551e981eed8e15a582d34cef28aafa'
+ '5b47567a3d47c8e4464b63d5d50abc38da55f2a67d2fa2f7c65041191ea6c156')
+
+prepare() {
+ cd "$srcdir"/bleach-$pkgver
+ # https://github.com/mozilla/bleach/pull/565
+ patch -Np1 -i ../$pkgname-py39.patch
+}
+
+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
+ export PYTHONHASHSEED=0
+ python setup.py install --skip-build --optimize=1 --root="$pkgdir"
+}
Deleted: pytest5.patch
===================================================================
--- pytest5.patch 2021-07-19 14:16:03 UTC (rev 978679)
+++ pytest5.patch 2021-07-19 14:16:09 UTC (rev 978680)
@@ -1,23 +0,0 @@
-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():
Copied: python-bleach/repos/community-any/pytest5.patch (from rev 978679, python-bleach/trunk/pytest5.patch)
===================================================================
--- pytest5.patch (rev 0)
+++ pytest5.patch 2021-07-19 14:16:09 UTC (rev 978680)
@@ -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