Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/bleach/
Date: Tue, 02 Feb 2021 08:39:08
Message-Id: 1612254755.cf6be04a6d7fb6bd1cc088af9af6b169b551a70b.mgorny@gentoo
1 commit: cf6be04a6d7fb6bd1cc088af9af6b169b551a70b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 2 08:32:35 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 2 08:32:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf6be04a
7
8 dev-python/bleach: Bump to 3.3.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/bleach/Manifest | 1 +
13 dev-python/bleach/bleach-3.3.0.ebuild | 39 +++++++++++++++++++++++++++++++++++
14 2 files changed, 40 insertions(+)
15
16 diff --git a/dev-python/bleach/Manifest b/dev-python/bleach/Manifest
17 index 8fa348ef4de..831c79a3bb6 100644
18 --- a/dev-python/bleach/Manifest
19 +++ b/dev-python/bleach/Manifest
20 @@ -1,3 +1,4 @@
21 DIST bleach-3.2.1.tar.gz 179763 BLAKE2B 5288277ceae1f51fb76c360db72fb646e1d391b3e51f29ba2b25f5dba7704af8ef7cfd2db017237dad42ff4a99e502daa29cdf4edd82952e15842e288c50c0dd SHA512 61710f48f00333b38d251360736e19078063433ca4d7aada210a986f7d79b08c79c64b412686c67f360e4b2e8420c40c4b515eb175ab92bd546f88e2ba0e5835
22 DIST bleach-3.2.2.tar.gz 180189 BLAKE2B 14b496ced66abb5dadabbfaca7663124deda939c494cfc79803db875bcd4195f3b951962d219d56780de56320948c4d5be294a73a8244d1dfa1ced3fe92862d2 SHA512 20e58b58f6464d819ffbf70d0dbaf4b52eac8894d089291b40c2e27440d5c78577f653020ab6296ca72de27bbad60f58e07ce4bcf140ccb21928b0f600f1c236
23 DIST bleach-3.2.3.tar.gz 180414 BLAKE2B 2b46fbedd109649e61b17719cc6fbbaa34e03e878938eee17aa81c66e11887ca9156e5e1b2a99b19f319c99df9fd0ce4d91106acae1638cf2569df0f1c41b788 SHA512 0bee6415ed0d6349311e92b68c4897b830a9ae8c0b1399a35da8ebb76af7b989b67c3e90c24cc34fd8afb903ee5f8de1062a0fa0e34a75328a281cf1706193a0
24 +DIST bleach-3.3.0.tar.gz 181274 BLAKE2B 32883ef9a77bf1d0cd208217930474285e55f158dc8d7b9c4049ca896cdc5cfb873674aa5f5181c31d46345be29f954badd29969bf156b1cc10eb200214de367 SHA512 8e408289c5175234a383658552e48379da9f570866e4c248a4e5c0b7bdaa9a2e6be545943dd32968cdb425929d51de282cca0678fdc6dd06b6fc2c2f41b58097
25
26 diff --git a/dev-python/bleach/bleach-3.3.0.ebuild b/dev-python/bleach/bleach-3.3.0.ebuild
27 new file mode 100644
28 index 00000000000..02055abb3dd
29 --- /dev/null
30 +++ b/dev-python/bleach/bleach-3.3.0.ebuild
31 @@ -0,0 +1,39 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +PYTHON_COMPAT=( python3_{7..9} pypy3 )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="an easy whitelist-based HTML-sanitizing tool"
41 +HOMEPAGE="https://github.com/mozilla/bleach https://pypi.org/project/bleach/"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-macos"
47 +
48 +RDEPEND="
49 + dev-python/packaging[${PYTHON_USEDEP}]
50 + >=dev-python/html5lib-1.0.1-r1[${PYTHON_USEDEP}]
51 + dev-python/six[${PYTHON_USEDEP}]
52 + dev-python/webencodings[${PYTHON_USEDEP}]
53 +"
54 +
55 +distutils_enable_tests pytest
56 +
57 +PATCHES=(
58 + "${FILESDIR}"/bleach-3.2.1-py39.patch
59 +)
60 +
61 +src_prepare() {
62 + # unbundle unpatched broken html5lib
63 + rm -r bleach/_vendor || die
64 + sed -i -e 's:bleach\._vendor\.::' \
65 + bleach/html5lib_shim.py \
66 + bleach/sanitizer.py \
67 + tests/test_clean.py || die
68 +
69 + distutils-r1_src_prepare
70 +}