Port details |
- py-bleach Easy safelist-based HTML-sanitizing tool
- 4.1.0_1 www
=1 4.1.0_1Version of this port present on the latest quarterly branch. - Maintainer: sunpoet@FreeBSD.org
 - Port Added: 2012-06-01 18:04:09
- Last Update: 2022-04-02 10:22:49
- Commit Hash: 1396c41
- People watching this port, also watch:: py38-Automat, freeimage, font-misc-meltho, libjxl, py38-pycparser
- Also Listed In: python
- License: APACHE20
- Description:
- 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
- SVNWeb : git : Homepage
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}bleach>0:www/py-bleach@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/www/py-bleach/ && make install clean
- To add the package, run one of these commands:
- pkg install www/py-bleach
- pkg install py38-bleach
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.NOTE: This is a Python port. Instead of py38-bleach listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py38-bleach
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1647264688
SHA256 (bleach-4.1.0.tar.gz) = 0900d8b37eba61a802ee40ac0061f8c2b5dee29c1927dd1d233e075ebf5a71da
SIZE (bleach-4.1.0.tar.gz) = 195798
- Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py38-setuptools>0 : devel/py-setuptools@py38
- python3.8 : lang/python38
- Runtime dependencies:
-
- py38-packaging>=0 : devel/py-packaging@py38
- py38-six>=1.9.0 : devel/py-six@py38
- py38-webencodings>=0 : converters/py-webencodings@py38
- py38-setuptools>0 : devel/py-setuptools@py38
- python3.8 : lang/python38
- This port is required by:
- for Build
-
- devel/py-protobuf-compiler
- math/sage
- for Run
-
- devel/py-nbconvert
- devel/py-protobuf-compiler
- devel/py-readme-renderer
- math/sage
- net-im/py-matrix-synapse
- www/py-django-bleach
- www/py-django-post_office
-
Deleted ports which required this port:
- * - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...
- Configuration Options:
- No options to configure
- Options name:
- www_py-bleach
- USES:
- cpe python:3.6+ shebangfix
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Commit History - (may be incomplete: see SVNWeb link above for full details) |
Date | By | Description |
02 Apr 2022 10:22:49 4.1.0_1
|
Li-Wen Hsu (lwhsu)  Author: Sascha Biberhofer |
www/py-bleach: Fix typo in RUN_DEPENDS
PR: 262902
Reported by: Dan Kotowski <dan.kotowski@a9development.com>
Fixes: aaf59e6e78c21a5c0fb917455c8a4b84a46e4572
MFH: 2022Q2 |
25 Mar 2022 13:37:17 4.1.0
|
Po-Chuan Hsieh (sunpoet)  |
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 |
07 Mar 2022 19:24:01 3.1.5
|
Po-Chuan Hsieh (sunpoet)  |
*/py-*: Take maintainership |
07 Mar 2022 19:07:39 3.1.5
|
Rene Ladan (rene)  |
all: return koobs' ports to the pool after safekeeping his commit bit. |
30 Sep 2021 15:14:22 3.1.5
|
Bernhard Froehlich (decke)  |
www/py-bleach: Add CPE information
Approved by: portmgr (blanket) |
06 Apr 2021 14:31:07 3.1.5
|
Mathieu Arnold (mat)  |
Remove # $FreeBSD$ from Makefiles. |
28 Dec 2020 23:02:15
3.1.5
|
antoine  |
Drop python 2.7 support from a few ports
With hat: portmgr |
08 May 2020 12:14:12
3.1.5
|
dbaio  |
www/py-bleach: Update to 3.1.5, Fix security issue
Changelog: https://github.com/mozilla/bleach/blob/v3.1.5/CHANGES
PR: 245943
Approved by: koobs (maintainer)
MFH: 2020Q2 (security, bugfix release(s))
Security: 4c52ec3c-86f3-11ea-b5b4-641c67a117d8 |
18 Mar 2020 07:28:16
3.1.3 
|
koobs  |
www/py-bleach: Update to 3.1.3
Changelog:
https://github.com/mozilla/bleach/blob/v3.1.3/CHANGES
MFH: 2020Q1 (security: 3.1.1, 3.1.2 + bugfix releases)
Security: 3d19c776-68e7-11ea-91db-0050562a4d7b |
28 May 2019 13:35:40
3.1.0 
|
koobs  |
www/py-bleach: Update to 3.1.0
Changelog:
https://github.com/mozilla/bleach/blob/v3.1.0/CHANGES |
20 Jun 2018 17:05:44
2.1.3 
|
mat  |
Use PY_FLAVOR for dependencies.
FLAVOR is the current port's flavor, it should not be used outside of
this scope.
Sponsored by: Absolight |
15 May 2018 06:48:19
2.1.3 
|
koobs  |
www/py-bleach: Update to 2.1.3 [1]
- Update TEST_DEPENDS (upstream switched from nose -> pytest)
This version also fixes notifications in the existing version of
net-im/py-matrix-synapse. [2]
Changelog:
https://github.com/mozilla/bleach/blob/v2.1.3/CHANGES
PR: 226851 [1][2]
Submitted by: mi
MFH: 2018Q2 |
30 Nov 2017 15:50:34
1.4.2 
|
mat  |
Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored. They will
automatically get flavors (py27, py34, py35, py36) depending on what
versions they support.
There is also a USE_PYTHON=flavors for ports that do not use distutils
but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
using distutils but flavors are not wanted.
A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
added to cope with Python ports that did not have the Python
PKGNAMEPREFIX but are flavored.
USES=python now also exports a PY_FLAVOR variable that contains the (Only the first 15 lines of the commit message are shown above ) |
01 Apr 2016 14:33:58
1.4.2 
|
mat  |
Remove ${PORTSDIR}/ from dependencies, categories v, w, x, y, and z.
With hat: portmgr
Sponsored by: Absolight |
28 Oct 2015 12:11:20
1.4.2 
|
koobs  |
www/py-bleach: Update to 1.4.2
- Update PORTVERSION and distinfo checksum (1.4.2)
- six is a RUN not BUILD dependency
- Remove TEST options and hooks since the framework now supports
TEST_DEPENDS. Remove html5lib from TEST_DEPENDS.
Changes:
https://github.com/mozilla/bleach/blob/v1.4.2/CHANGES |
30 Jan 2015 08:19:39
1.4.1 
|
koobs  |
www/py-bleach: Update to 1.4.1
- Update to 1.4.1
- Update LICENSE (APACHE20)
- Match COMMENT to upstream (setup.py) description field
- Update html5lib {RUN,TEST}_DEPENDS version
- Switch nose from binary to package-based dependency
- Update TESTS_DESC
- Sort USE_PYTHON values
- Remove setup.py patch (upstreamed)
Reported by: Nathan Fisher <nfisher.sr gmx com> (via email) |
30 Aug 2014 04:01:25
1.4 
|
koobs  |
www/py-bleach: Update to 1.4
- Update to 1.4
- Switch from GITHUB to CHEESESHOP for MASTER_SITES
- Add BUILD_DEPENDS on six
- Update minimum version for html5lib RUN_DEPENDS
- Add TESTS option and tweak existing QA/Test entries
- Modernize Python framework entries
- Add LICENSE_FILE
Changes:
* https://github.com/jsocol/bleach/blob/v1.4/CHANGES
PR: 146461
Submitted by: Muhammad Rahman <5u623l20 at gmail dotcom> (with changes) |
17 Feb 2014 13:14:57
1.2.2_2 
|
koobs  |
www/py-bleach: Tweak RUN_DEPENDS, Update LICENSE & COMMENT
- Adjust RUN_DEPENDS for html5lib after portrev bump (0.95_1 != 0.95) [1]
- Update LICENSE (BSD3CLAUSE)
- Remove indefinite article in COMMENT
- Move TEST_DEPENDS to *_DEPENDS section
Reported by: antoine [1] |
29 Jan 2014 15:04:46
1.2.2_1 
|
miwi  |
- Convert to PYDISTUTILS_AUTOPLIST
- Stage support
- Bump PORTREVISION |
29 Jan 2014 13:18:39
1.2.2_1 
|
miwi  |
- Convert to PYDISTUTILS_AUTOPLIST
- Stage support
- Bump PORTREVISION |
20 Sep 2013 23:36:54
1.2.2 
|
bapt  |
Add NO_STAGE all over the place in preparation for the staging support (cat:
www) |
10 Jun 2013 01:48:20
1.2.2 
|
koobs  |
www/py-bleach: Update to 1.2.2
- Update to 1.2.2
- Pin html5lib version in RUN_DEPENDS
- Make regression-test target use test command
- Patch setup.py: Add test_suite integration (and report upstream)
Changes:
- Pin html5lib to version 0.95 for now due to major API break. |
18 Mar 2013 07:15:09
1.2.1 
|
koobs  |
- Update to 1.2.1
- Update pkg-plist
- Use GITHUB for DISTFILES
- Tab->space in pkg-desc
- Whitespace alignment
- Add TEST_DEPENDS and regression-test target
Changes: https://github.com/jsocol/bleach/blob/v1.2.1/CHANGES
Approved by: rm (mentor) |
09 Feb 2013 14:50:27
1.1.5 
|
koobs  |
Update MAINTAINER address for all my ports. While I'm here,
standardise and canonicalise Makefile header format and contents.
Approved by: eadler (mentor) |
24 Aug 2012 16:45:48
1.1.5 
|
culot  |
- Update to 1.1.5
PR: ports/170990
Submitted by: Kubilay Kocak <koobs.freebsd@gmail.com> (maintainer) |
22 Jul 2012 07:35:18
1.1.4 
|
mva  |
- Update to 1.1.4
PR: ports/169993
Submitted by: Kubilay Kocak <koobs.freebsd@gmail.com> (maintainer) |
16 Jul 2012 18:37:42
1.1.3 
|
culot  |
- Update to 1.1.3
- Remove unneeded BSD LICENSE_FILE
PR: ports/169845
Submitted by: Kubilay Kocak <koobs.freebsd@gmail.com> (maintainer) |
02 Jun 2012 06:52:06
1.1.2 
|
culot  |
- Update to 1.1.2
PR: ports/168549
Submitted by: koobs <koobs.freebsd@gmail.com> (maintainer) |
01 Jun 2012 17:54:19
1.1.1 
|
lwhsu  |
Add py-bleach 1.1.1, an easy whitelist-based HTML-sanitizing tool for
Python.
PR: ports/168459
Submitted by: koobs <koobs.freebsd@gmail.com> |