From nobody Fri Mar 25 13:45:45 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 50B561A2F845; Fri, 25 Mar 2022 13:45:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KQ3JV23qYz3N6g; Fri, 25 Mar 2022 13:45:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648215946; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nx91UQhdiOFh3tVcbFV7AqLwTb0AoCJJ4MS/0wGArFY=; b=bQdtw/CNpYGS9wCRblMt85BKiDfeNpEmFBbFd8C4Q7h5dDAZBU+dzKWSCnZIlUrPibKouc H4NwBQVFmnITdwjSqJwZYFTjc+8x3tf3+L+X0GATlofWHhU8zC+5FgRQcm548X5pu5oKNN pKF65UcFPogrMumnOnqNfEZeAK7oJf5xsxfLP3Vt8pmO1/z3Qp+XX3PBW80M8W03BFPbQP CSd6ZiVRYoettlKYjE2HTc5b8VlSnAsD8qDm0ijglOVWc+yhmVP4NsU1ce7L+PtmYvDaim e6WFSUeXCwK/eAakdZy36em6eTaxwHwnLzAWqB/QU66RwwNgLC04HNFOKGvPKA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 258C8591C; Fri, 25 Mar 2022 13:45:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22PDjjX2022471; Fri, 25 Mar 2022 13:45:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22PDjjCY022470; Fri, 25 Mar 2022 13:45:45 GMT (envelope-from git) Date: Fri, 25 Mar 2022 13:45:45 GMT Message-Id: <202203251345.22PDjjCY022470@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: aaf59e6e78c2 - main - www/py-bleach: Update to 4.1.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: aaf59e6e78c21a5c0fb917455c8a4b84a46e4572 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648215946; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nx91UQhdiOFh3tVcbFV7AqLwTb0AoCJJ4MS/0wGArFY=; b=YKN5Idg51//RfrirtIy7yXENRfAuLU4C2AIbSUDkqSBQwP9lXbnD5ESUdtBk38BEn2r8cF gb5yg6wWxbRiNnyxDlN1kUvZ07NY7K8gBKlaf7gl0tV2TrVdcSt+K748BkrO9tDSGxWtQm QLiR6bP+Pm72vp/jvtXXwzu4y63MN/sGnTj6+XsCmQhzGK0mgJ5i0Z7inpw/bouEtNul/d alThnlWaTtPrDU2xuLm7LsS/B6ewnrOvIhI/3dIyEj+TPYpaTx/OGkrUTY0NpVUmGgLr3l Lad4ICrrv/z3ffb/AmsAoWv3IRUeJ9ewvFhok/V9ai+gHpK69LE6Kk8SYhFhHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648215946; a=rsa-sha256; cv=none; b=DyqQmIfhW/DdRVxLp4L8LKKAcleLPNW3Yta4wHSEpWGq/hXUWGyn3R0weyBKFK11GiAVjk BgLC+zJqZoNXqdHDB3oM6YAy1UMoxhVI4wHvH6g7wMK3lvMxyanPq6AjGlzk1TzY7weL7c r2FisH7vk3MXGPdXsJ44SQWR/QnnzNlCaXaJWwS443GGXK3ttrNk4f+zGro00r5+qrso+7 7Rg374n3v3/AE85Od7f6wBSVnl0Y5r98ErZ8KMUQtKqStQTbAmhTpsmFXggCjw7gUDaygu ew9OWF053ED7c8m4aE2ZChkn7EmDpkW2GmcLSOxv2bUeq6mr455PQNnmM5+6kw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=aaf59e6e78c21a5c0fb917455c8a4b84a46e4572 commit aaf59e6e78c21a5c0fb917455c8a4b84a46e4572 Author: Po-Chuan Hsieh AuthorDate: 2022-03-25 13:04:53 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-03-25 13:37:17 +0000 www/py-bleach: Update to 4.1.0 - Remove LICENSE_FILE: it only has the link but no content - Update pkg-descr Changes: https://github.com/mozilla/bleach/blob/main/CHANGES --- www/py-bleach/Makefile | 26 +++++++++++--------------- www/py-bleach/distinfo | 6 +++--- www/py-bleach/pkg-descr | 18 +++++++++++++++--- 3 files changed, 29 insertions(+), 21 deletions(-) diff --git a/www/py-bleach/Makefile b/www/py-bleach/Makefile index 7eef3bb0a048..9b71a380e0c3 100644 --- a/www/py-bleach/Makefile +++ b/www/py-bleach/Makefile @@ -1,7 +1,7 @@ # Created by: Kubilay Kocak PORTNAME= bleach -PORTVERSION= 3.1.5 +PORTVERSION= 4.1.0 CATEGORIES= www python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -10,26 +10,22 @@ MAINTAINER= sunpoet@FreeBSD.org COMMENT= Easy safelist-based HTML-sanitizing tool LICENSE= APACHE20 -LICENSE_FILE= ${WRKSRC}/LICENSE -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.9.0:devel/py-six@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}webencodings>0:converters/py-webencodings@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.0.0:devel/py-pytest@${PY_FLAVOR} +xRUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>=1.9.0:devel/py-six@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}webencodings>=0:converters/py-webencodings@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0,1:devel/py-pytest@${PY_FLAVOR} -USES= cpe python:3.6+ -USE_PYTHON= autoplist distutils - -CPE_VENDOR= mozilla +USES= cpe python:3.6+ shebangfix +USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes -# This is a development script -# TODO: Remove from sdist (via MANIFEST.ini) -post-extract: - ${RM} ${WRKSRC}/bleach/_vendor/pip_install_vendor.sh +CPE_VENDOR= mozilla + +SHEBANG_FILES= bleach/_vendor/vendor_install.sh do-test: - @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts= + cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v .include diff --git a/www/py-bleach/distinfo b/www/py-bleach/distinfo index 9bef3591ecd4..6ad3db7f84d8 100644 --- a/www/py-bleach/distinfo +++ b/www/py-bleach/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1588872176 -SHA256 (bleach-3.1.5.tar.gz) = 3c4c520fdb9db59ef139915a5db79f8b51bc2a7257ea0389f30c846883430a4b -SIZE (bleach-3.1.5.tar.gz) = 177972 +TIMESTAMP = 1647264688 +SHA256 (bleach-4.1.0.tar.gz) = 0900d8b37eba61a802ee40ac0061f8c2b5dee29c1927dd1d233e075ebf5a71da +SIZE (bleach-4.1.0.tar.gz) = 195798 diff --git a/www/py-bleach/pkg-descr b/www/py-bleach/pkg-descr index 2b4180e181f1..cd710a3f814c 100644 --- a/www/py-bleach/pkg-descr +++ b/www/py-bleach/pkg-descr @@ -1,5 +1,17 @@ -Bleach is a Python HTML sanitizing library that escapes or strips markup and -attributes based on a white list. Bleach is intended for sanitizing text from -untrusted sources. +Bleach is an allowed-list-based HTML sanitizing library that escapes or strips +markup and attributes. + +Bleach can also linkify text safely, applying filters that Django's urlize +filter cannot, and optionally setting rel attributes, even on links already in +the text. + +Bleach is intended for sanitizing text from untrusted sources. If you find +yourself jumping through hoops to allow your site administrators to do lots of +things, you're probably outside the use cases. Either trust those users, or +don't. + +Because it relies on html5lib, Bleach is as good as modern browsers at dealing +with weird, quirky HTML fragments. And any of Bleach's methods will fix +unbalanced or mis-nested tags. WWW: https://github.com/mozilla/bleach