Port details |
- py-bleach Easy safelist-based HTML-sanitizing tool
- 6.2.0 www =3 6.2.0Version of this port present on the latest quarterly branch.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2012-06-01 18:04:09
- Last Update: 2024-10-31 09:22:54
- Commit Hash: 194c17c
- People watching this port, also watch:: qtkeychain-qt5, py39-treq, py311-Automat, linux-c7-atk, py39-beautifulsoup
- Also Listed In: python
- License: APACHE20
- WWW:
- https://bleach.readthedocs.io/en/latest/
- https://github.com/mozilla/bleach
- 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.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- 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 py311-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 py311-bleach listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py311-bleach
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1730301026
SHA256 (bleach-6.2.0.tar.gz) = 123e894118b8a599fd80d3ec1a6d4cc7ce4e5882b1317a7e1ba69b56e95f991f
SIZE (bleach-6.2.0.tar.gz) = 203083
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:
-
- py311-setuptools>=0 : devel/py-setuptools@py311
- py311-wheel>=0 : devel/py-wheel@py311
- python3.11 : lang/python311
- py311-build>=0 : devel/py-build@py311
- py311-installer>=0 : devel/py-installer@py311
- Test dependencies:
-
- py311-pytest>=7,1 : devel/py-pytest@py311
- python3.11 : lang/python311
- Runtime dependencies:
-
- py311-webencodings>=0 : converters/py-webencodings@py311
- py311-tinycss2>=1.1.0<1.5 : textproc/py-tinycss2@py311
- python3.11 : lang/python311
- This port is required by:
- for Build
-
- deskutils/py-paperless-ngx
- devel/py-protobuf-compiler
-
Deleted ports which required this port:
- for Run
-
- deskutils/py-paperless-ngx
- devel/py-nbconvert
- devel/py-protobuf-compiler
- net-im/py-matrix-synapse
- www/py-calibreweb
- 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:
- ===> The following configuration options are available for py311-bleach-6.2.0:
CSS=on: CSS support
===> Use 'make config' to modify these settings
- Options name:
- www_py-bleach
- USES:
- cpe python shebangfix
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
6.2.0 31 Oct 2024 09:22:54 |
Po-Chuan Hsieh (sunpoet) |
www/py-bleach: Update to 6.2.0
Changes: https://github.com/mozilla/bleach/blob/main/CHANGES
https://bleach.readthedocs.io/en/latest/changes.html |
6.1.0_2 29 Oct 2024 14:38:40 |
Po-Chuan Hsieh (sunpoet) |
www/py-bleach: Allow build with py-tinycss2 1.4.0+
- Bump PORTREVISION for package change
Obtained
from: https://github.com/mozilla/bleach/commit/6a2ec5ca371cb666fbd843f14ecf1e93e8f7ea87 |
6.1.0_1 19 May 2024 17:15:58 |
Po-Chuan Hsieh (sunpoet) |
www/py-bleach: Allow build with py-tinycss2 1.3.0+
- Bump PORTREVISION for package change |
6.1.0_1 16 May 2024 06:22:11 |
Po-Chuan Hsieh (sunpoet) |
www/py-bleach: Add LICENSE_FILE |
6.1.0_1 13 May 2024 14:11:44 |
Po-Chuan Hsieh (sunpoet) |
www/py-bleach: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for package change |
6.1.0 08 Oct 2023 11:55:41 |
Po-Chuan Hsieh (sunpoet) |
www/py-bleach: Update to 6.1.0
- Update WWW
Changes: https://github.com/mozilla/bleach/blob/main/CHANGES
https://bleach.readthedocs.io/en/latest/changes.html |
6.0.0 09 Jul 2023 10:20:53 |
Po-Chuan Hsieh (sunpoet) |
www/py-bleach: Update to 6.0.0
Changes: https://github.com/mozilla/bleach/blob/main/CHANGES |
5.0.1_1 27 Jun 2023 19:34:34 |
Rene Ladan (rene) |
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568> |
5.0.1_1 11 Jan 2023 15:58:34 |
Dmitry Marakasov (amdmi3) |
*/*: rename CHEESESHOP to PYPI in MASTER_SITES
PR: 267994
Differential revision: D37518
Approved by: bapt |
5.0.1_1 30 Dec 2022 09:05:10 |
Po-Chuan Hsieh (sunpoet) |
www/py-bleach: Allow build with py-tinycss2 1.2.0+
- Bump PORTREVISION for package change |
07 Sep 2022 21:58:51 |
Stefan Eßer (se) |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
5.0.1 07 Sep 2022 21:10:59 |
Stefan Eßer (se) |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
5.0.1 20 Jul 2022 14:23:26 |
Tobias C. Berner (tcberner) |
www: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
*
* <hvo.pm@xs4all.nl>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Dalton <aaron@daltons.ca>
* Aaron LI <aly@aaronly.me>
* Aaron Zauner <az_mail@gmx.at>
* Abel Chow <achow@transoft.net>
* Adam Weinberger <adamw@FreeBSD.org>
* Ade Lovett <ade@FreeBSD.org>
* Adrian Steinmann <ast@marabu.ch>
* Akinori MUSHA aka knu <knu@idaemons.org> (Only the first 15 lines of the commit message are shown above ) |
5.0.1 29 Jun 2022 21:50:20 |
Po-Chuan Hsieh (sunpoet) |
www/py-bleach: Update to 5.0.1
Changes: https://github.com/mozilla/bleach/blob/main/CHANGES |
5.0.0 03 Jun 2022 16:57:39 |
Po-Chuan Hsieh (sunpoet) |
www/py-bleach: Convert to USE_PYTHON=pytest |
5.0.0 22 May 2022 04:37:31 |
Po-Chuan Hsieh (sunpoet) |
www/py-bleach: Update to 5.0.0
- Add CSS option
Changes: https://github.com/mozilla/bleach/blob/main/CHANGES |
4.1.0_1 02 Apr 2022 10:22:49 |
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 |
4.1.0 25 Mar 2022 13:37:17 |
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 |
3.1.5 07 Mar 2022 19:24:01 |
Po-Chuan Hsieh (sunpoet) |
*/py-*: Take maintainership |
3.1.5 07 Mar 2022 19:07:39 |
Rene Ladan (rene) |
all: return koobs' ports to the pool after safekeeping his commit bit. |
3.1.5 30 Sep 2021 15:14:22 |
Bernhard Froehlich (decke) |
www/py-bleach: Add CPE information
Approved by: portmgr (blanket) |
3.1.5 06 Apr 2021 14:31:07 |
Mathieu Arnold (mat) |
Remove # $FreeBSD$ from Makefiles. |
3.1.5 28 Dec 2020 23:02:15 |
antoine |
Drop python 2.7 support from a few ports
With hat: portmgr |
3.1.5 08 May 2020 12:14:12 |
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 |
3.1.3 18 Mar 2020 07:28:16 |
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 |
3.1.0 28 May 2019 13:35:40 |
koobs |
www/py-bleach: Update to 3.1.0
Changelog:
https://github.com/mozilla/bleach/blob/v3.1.0/CHANGES |
2.1.3 20 Jun 2018 17:05:44 |
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 |
2.1.3 15 May 2018 06:48:19 |
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 |
1.4.2 30 Nov 2017 15:50:34 |
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 ) |
1.4.2 01 Apr 2016 14:33:58 |
mat |
Remove ${PORTSDIR}/ from dependencies, categories v, w, x, y, and z.
With hat: portmgr
Sponsored by: Absolight |
1.4.2 28 Oct 2015 12:11:20 |
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 |
1.4.1 30 Jan 2015 08:19:39 |
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) |
1.4 30 Aug 2014 04:01:25 |
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) |
1.2.2_2 17 Feb 2014 13:14:57 |
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] |
1.2.2_1 29 Jan 2014 15:04:46 |
miwi |
- Convert to PYDISTUTILS_AUTOPLIST
- Stage support
- Bump PORTREVISION |
1.2.2_1 29 Jan 2014 13:18:39 |
miwi |
- Convert to PYDISTUTILS_AUTOPLIST
- Stage support
- Bump PORTREVISION |
1.2.2 20 Sep 2013 23:36:54 |
bapt |
Add NO_STAGE all over the place in preparation for the staging support (cat:
www) |
1.2.2 10 Jun 2013 01:48:20 |
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. |
1.2.1 18 Mar 2013 07:15:09 |
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) |
1.1.5 09 Feb 2013 14:50:27 |
koobs |
Update MAINTAINER address for all my ports. While I'm here,
standardise and canonicalise Makefile header format and contents.
Approved by: eadler (mentor) |
1.1.5 24 Aug 2012 16:45:48 |
culot |
- Update to 1.1.5
PR: ports/170990
Submitted by: Kubilay Kocak <koobs.freebsd@gmail.com> (maintainer) |
1.1.4 22 Jul 2012 07:35:18 |
mva |
- Update to 1.1.4
PR: ports/169993
Submitted by: Kubilay Kocak <koobs.freebsd@gmail.com> (maintainer) |
1.1.3 16 Jul 2012 18:37:42 |
culot |
- Update to 1.1.3
- Remove unneeded BSD LICENSE_FILE
PR: ports/169845
Submitted by: Kubilay Kocak <koobs.freebsd@gmail.com> (maintainer) |
1.1.2 02 Jun 2012 06:52:06 |
culot |
- Update to 1.1.2
PR: ports/168549
Submitted by: koobs <koobs.freebsd@gmail.com> (maintainer) |
1.1.1 01 Jun 2012 17:54:19 |
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> |