head 1.28;
access;
symbols
pkgsrc-2023Q4:1.28.0.2
pkgsrc-2023Q4-base:1.28
pkgsrc-2023Q3:1.27.0.4
pkgsrc-2023Q3-base:1.27
pkgsrc-2023Q2:1.27.0.2
pkgsrc-2023Q2-base:1.27
pkgsrc-2023Q1:1.24.0.10
pkgsrc-2023Q1-base:1.24
pkgsrc-2022Q4:1.24.0.8
pkgsrc-2022Q4-base:1.24
pkgsrc-2022Q3:1.24.0.6
pkgsrc-2022Q3-base:1.24
pkgsrc-2022Q2:1.24.0.4
pkgsrc-2022Q2-base:1.24
pkgsrc-2022Q1:1.24.0.2
pkgsrc-2022Q1-base:1.24
pkgsrc-2021Q4:1.23.0.2
pkgsrc-2021Q4-base:1.23
pkgsrc-2021Q3:1.22.0.2
pkgsrc-2021Q3-base:1.22
pkgsrc-2021Q2:1.21.0.2
pkgsrc-2021Q2-base:1.21
pkgsrc-2021Q1:1.20.0.2
pkgsrc-2021Q1-base:1.20
pkgsrc-2020Q4:1.19.0.2
pkgsrc-2020Q4-base:1.19
pkgsrc-2020Q3:1.17.0.4
pkgsrc-2020Q3-base:1.17
pkgsrc-2020Q2:1.17.0.2
pkgsrc-2020Q2-base:1.17
pkgsrc-2020Q1:1.14.0.2
pkgsrc-2020Q1-base:1.14
pkgsrc-2019Q4:1.13.0.10
pkgsrc-2019Q4-base:1.13
pkgsrc-2019Q3:1.13.0.6
pkgsrc-2019Q3-base:1.13
pkgsrc-2019Q2:1.13.0.4
pkgsrc-2019Q2-base:1.13
pkgsrc-2019Q1:1.13.0.2
pkgsrc-2019Q1-base:1.13
pkgsrc-2018Q4:1.12.0.2
pkgsrc-2018Q4-base:1.12
pkgsrc-2018Q3:1.9.0.4
pkgsrc-2018Q3-base:1.9
pkgsrc-2018Q2:1.9.0.2
pkgsrc-2018Q2-base:1.9
pkgsrc-2018Q1:1.8.0.4
pkgsrc-2018Q1-base:1.8
pkgsrc-2017Q4:1.8.0.2
pkgsrc-2017Q4-base:1.8
pkgsrc-2017Q3:1.6.0.6
pkgsrc-2017Q3-base:1.6
pkgsrc-2017Q2:1.6.0.2
pkgsrc-2017Q2-base:1.6
pkgsrc-2017Q1:1.5.0.4
pkgsrc-2017Q1-base:1.5
pkgsrc-2016Q4:1.5.0.2
pkgsrc-2016Q4-base:1.5
pkgsrc-2016Q3:1.4.0.4
pkgsrc-2016Q3-base:1.4
pkgsrc-2016Q2:1.4.0.2
pkgsrc-2016Q2-base:1.4
pkgsrc-2016Q1:1.3.0.18
pkgsrc-2016Q1-base:1.3
pkgsrc-2015Q4:1.3.0.16
pkgsrc-2015Q4-base:1.3
pkgsrc-2015Q3:1.3.0.14
pkgsrc-2015Q3-base:1.3
pkgsrc-2015Q2:1.3.0.12
pkgsrc-2015Q2-base:1.3
pkgsrc-2015Q1:1.3.0.10
pkgsrc-2015Q1-base:1.3
pkgsrc-2014Q4:1.3.0.8
pkgsrc-2014Q4-base:1.3
pkgsrc-2014Q3:1.3.0.6
pkgsrc-2014Q3-base:1.3
pkgsrc-2014Q2:1.3.0.4
pkgsrc-2014Q2-base:1.3
pkgsrc-2014Q1:1.3.0.2
pkgsrc-2014Q1-base:1.3
pkgsrc-2013Q4:1.2.0.8
pkgsrc-2013Q4-base:1.2
pkgsrc-2013Q3:1.2.0.6
pkgsrc-2013Q3-base:1.2
pkgsrc-2013Q2:1.2.0.4
pkgsrc-2013Q2-base:1.2
pkgsrc-2013Q1:1.2.0.2
pkgsrc-2013Q1-base:1.2;
locks; strict;
comment @# @;
1.28
date 2023.10.20.11.31.22; author adam; state Exp;
branches;
next 1.27;
commitid AiWGK1jlMyqCcmJE;
1.27
date 2023.05.05.15.46.44; author wiz; state Exp;
branches;
next 1.26;
commitid EebcnvtUYwm61NnE;
1.26
date 2023.05.05.08.47.37; author adam; state Exp;
branches;
next 1.25;
commitid bLwTcDHjetk7HKnE;
1.25
date 2023.04.30.18.45.35; author wiz; state Exp;
branches;
next 1.24;
commitid Fwaf2igR6N0qaanE;
1.24
date 2022.01.04.20.55.16; author wiz; state Exp;
branches;
next 1.23;
commitid CYyhdK9qtoffkmnD;
1.23
date 2021.11.09.20.34.41; author wiz; state Exp;
branches;
next 1.22;
commitid rCWYaTzuBaV02agD;
1.22
date 2021.07.26.18.12.20; author adam; state Exp;
branches;
next 1.21;
commitid oLZ6aMHw1X6mEw2D;
1.21
date 2021.04.06.19.51.47; author adam; state Exp;
branches;
next 1.20;
commitid I2zjEj3i5elHLgOC;
1.20
date 2021.01.27.09.43.43; author adam; state Exp;
branches;
next 1.19;
commitid lwrUoauhmbTtClFC;
1.19
date 2020.11.02.14.45.57; author adam; state Exp;
branches;
next 1.18;
commitid 4hLprGwmxLFx3kuC;
1.18
date 2020.10.04.17.12.21; author js; state Exp;
branches;
next 1.17;
commitid vXLbH5wquYwINBqC;
1.17
date 2020.05.17.20.18.35; author adam; state Exp;
branches;
next 1.16;
commitid ax38jGjmoqcGkD8C;
1.16
date 2020.04.30.09.37.26; author adam; state Exp;
branches;
next 1.15;
commitid a4sJIXddiQEuko6C;
1.15
date 2020.04.11.07.23.30; author adam; state Exp;
branches;
next 1.14;
commitid y7UQFaj9KqqncW3C;
1.14
date 2020.03.18.10.08.16; author adam; state Exp;
branches;
next 1.13;
commitid WhF0e4GSLYbuSR0C;
1.13
date 2019.01.21.12.23.39; author adam; state Exp;
branches;
next 1.12;
commitid 9jges6aXyZP4cE8B;
1.12
date 2018.10.30.09.48.29; author hauke; state Exp;
branches;
next 1.11;
commitid csU6Vcth0Ytv0YXA;
1.11
date 2018.10.26.09.11.54; author adam; state Exp;
branches;
next 1.10;
commitid THrc8gUMZlUjVrXA;
1.10
date 2018.10.02.09.02.09; author adam; state Exp;
branches;
next 1.9;
commitid nhYzS01cJt4hEmUA;
1.9
date 2018.04.09.12.14.19; author adam; state Exp;
branches;
next 1.8;
commitid xdZLzdpn8duXmLxA;
1.8
date 2017.12.10.16.56.51; author adam; state Exp;
branches;
next 1.7;
commitid lvR7skS4xmPTMmiA;
1.7
date 2017.10.05.12.58.48; author adam; state Exp;
branches;
next 1.6;
commitid WBkReQYqmONlAR9A;
1.6
date 2017.04.23.04.09.15; author markd; state Exp;
branches;
next 1.5;
commitid KBLB1QyD6tcOXBOz;
1.5
date 2016.12.15.11.21.18; author adam; state Exp;
branches;
next 1.4;
commitid hpVVS1rOfS0iv4yz;
1.4
date 2016.06.08.17.43.44; author wiz; state Exp;
branches;
next 1.3;
commitid z4yEulWexjFaJG9z;
1.3
date 2014.01.19.18.51.18; author wiz; state Exp;
branches;
next 1.2;
commitid jO2HrjqUbzSf6Llx;
1.2
date 2013.01.12.12.11.40; author ryoon; state Exp;
branches;
next 1.1;
1.1
date 2013.01.03.14.04.46; author ryoon; state Exp;
branches;
next ;
desc
@@
1.28
log
@py-bleach: updated to 6.1.0
Version 6.1.0 (October 6th, 2023)
---------------------------------
**Backwards incompatible changes**
* Dropped support for Python 3.7.
**Security fixes**
None
**Bug fixes**
* Add support for Python 3.12.
* Fix linkify with arrays in querystring
* Handle more cases with < followed by character data
* Fix entities inside a tags in linkification
* Update cap for tinycss2 to <1.3
* Updated Sphinx requirement
* Add dependabot for github actions and update github actions
@
text
@# $NetBSD: Makefile,v 1.27 2023/05/05 15:46:44 wiz Exp $
DISTNAME= bleach-6.1.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=b/bleach/}
MAINTAINER= ryoon@@NetBSD.org
HOMEPAGE= https://github.com/mozilla/bleach
COMMENT= Easy whitelist-based HTML-sanitizing tool
LICENSE= apache-2.0
DEPENDS+= ${PYPKGPREFIX}-six>=1.9.0:../../lang/py-six
DEPENDS+= ${PYPKGPREFIX}-webencodings-[0-9]*:../../textproc/py-webencodings
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner>=2.0:../../devel/py-test-runner
USE_LANGUAGES= # none
PYSETUPTESTTARGET= pytest
PYTHON_VERSIONS_INCOMPATIBLE= 27
REPLACE_SH+= bleach/_vendor/vendor_install.sh
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
@
1.27
log
@py-bleach: fix filename in REPLACE_SH
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2023/05/05 08:47:37 adam Exp $
d3 1
a3 1
DISTNAME= bleach-6.0.0
@
1.26
log
@py-bleach: updated to 6.0.0
Version 6.0.0 (January 23rd, 2023)
----------------------------------
**Backwards incompatible changes**
* ``bleach.clean``, ``bleach.sanitizer.Cleaner``,
``bleach.html5lib_shim.BleachHTMLParser``: the ``tags`` and ``protocols``
arguments were changed from lists to sets.
Old pre-6.0.0:
.. code-block:: python
bleach.clean(
"some text",
tags=["a", "p", "img"],
# ^ ^ list
protocols=["http", "https"],
# ^ ^ list
)
New 6.0.0 and later:
.. code-block:: python
bleach.clean(
"some text",
tags={"a", "p", "img"},
# ^ ^ set
protocols={"http", "https"},
# ^ ^ set
)
* ``bleach.linkify``, ``bleach.linkifier.Linker``: the ``skip_tags`` and
``recognized_tags`` arguments were changed from lists to sets.
Old pre-6.0.0:
.. code-block:: python
bleach.linkify(
"some text",
skip_tags=["pre"],
# ^ ^ list
)
linker = Linker(
skip_tags=["pre"],
# ^ ^ list
recognized_tags=html5lib_shim.HTML_TAGS + ["custom-element"],
# ^ ^ ^ list
# |
# | list concatenation
)
New 6.0.0 and later:
.. code-block:: python
bleach.linkify(
"some text",
skip_tags={"pre"},
# ^ ^ set
)
linker = Linker(
skip_tags={"pre"},
# ^ ^ set
recognized_tags=html5lib_shim.HTML_TAGS | {"custom-element"},
# ^ ^ ^ set
# |
# | union operator
)
* ``bleach.sanitizer.BleachSanitizerFilter``: ``strip_allowed_elements`` is now
``strip_allowed_tags``. We now use "tags" everywhere rather than a mishmash
of "tags" in some places and "elements" in others.
**Security fixes**
None
**Bug fixes**
* Add support for Python 3.11.
* Fix API weirness in ``BleachSanitizerFilter``.
We're using "tags" instead of "elements" everywhere--no more weird
overloading of "elements" anymore.
Also, it no longer calls the superclass constructor.
* Add warning when ``css_sanitizer`` isn't set, but the ``style``
attribute is allowed.
* Fix linkify handling of character entities.
* Rework dev dependencies to use ``requirements-dev.txt`` and
``requirements-flake8.txt`` instead of extras.
* Fix project infrastructure to be tox-based so it's easier to have CI
run the same things we're running in development and with flake8
in an isolated environment.
* Update action versions in CI.
* Switch to f-strings where possible. Make tests parametrized to be
easier to read/maintain.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2023/04/30 18:45:35 wiz Exp $
d23 1
a23 1
REPLACE_SH+= bleach/_vendor/pip_install_vendor.sh
@
1.25
log
@py-bleach: only for python 2
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2022/01/04 20:55:16 wiz Exp $
d3 1
a3 1
DISTNAME= bleach-3.3.1
a4 1
PKGREVISION= 1
a13 1
DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
d17 4
a22 2
USE_LANGUAGES= # none
a24 2
PYSETUPTESTTARGET= pytest
@
1.24
log
@*: bump PKGREVISION for egg.mk users
They now have a tool dependency on py-setuptools instead of a DEPENDS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2021/11/09 20:34:41 wiz Exp $
d15 1
d19 1
a19 1
PYTHON_VERSIONED_DEPENDENCIES+= packaging
a26 1
.include "../../lang/python/versioned_dependencies.mk"
@
1.23
log
@*: convert packaging to lang/python/versioned_dependencies.mk
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2021/07/26 18:12:20 adam Exp $
d5 1
@
1.22
log
@py-bleach: updated to 3.3.1
Version 3.3.1 (July 14th, 2021)
-------------------------------
**Features**
* add more tests for CVE-2021-23980 / GHSA-vv2x-vrpj-qqpq
* bump python version to 3.8 for tox doc, vendorverify, and lint targets
* update bug report template tag
* update vendorverify script to detect and fail when extra files are vendored
* update release process docs to check vendorverify passes locally
**Bug fixes**
* remove extra vendored django present in the v3.3.0 whl
* duplicate h1 header doc fix
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2021/04/06 19:51:47 adam Exp $
a12 1
DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
d17 2
d25 1
@
1.21
log
@py-bleach: updated to 3.3.0
Version 3.3.0 (February 1st, 2021)
----------------------------------
**Backwards incompatible changes**
* clean escapes HTML comments even when strip_comments=False
**Security fixes**
* Fix bug 1621692 / GHSA-m6xf-fq7q-8743. See the advisory for details.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2021/01/27 09:43:43 adam Exp $
d3 1
a3 1
DISTNAME= bleach-3.3.0
@
1.20
log
@py-bleach: updated to 3.2.3
Version 3.2.3 (January 26th, 2021)
----------------------------------
**Security fixes**
None
**Features**
None
**Bug fixes**
* fix clean and linkify raising ValueErrors for certain inputs.
Version 3.2.2 (January 20th, 2021)
----------------------------------
**Security fixes**
None
**Features**
* Migrate CI to Github Actions.
**Bug fixes**
* fix linkify raising an IndexError on certain inputs.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2020/11/02 14:45:57 adam Exp $
d3 1
a3 1
DISTNAME= bleach-3.2.3
d16 1
a16 1
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner>=2.0:../../devel/py-test-runner
d22 1
a22 2
do-test:
cd ${WRKSRC} && pytest-${PYVERSSUFFIX} tests
@
1.19
log
@py-bleach: updated to 3.2.1
Version 3.2.1
* change linkifier to add rel="nofollow" as documented.
* suppress html5lib sanitizer DeprecationWarnings
Version 3.2.0
* ``html5lib`` dependency to version 1.1.0.
* update tests_website terminology.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2020/10/04 17:12:21 js Exp $
d3 1
a3 1
DISTNAME= bleach-3.2.1
@
1.18
log
@www/py-bleach: Add missing dependency
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2020/05/17 20:18:35 adam Exp $
d3 1
a3 1
DISTNAME= bleach-3.1.5
a4 1
PKGREVISION= 1
d13 2
a14 1
DEPENDS+= ${PYPKGPREFIX}-six>=1.9:../../lang/py-six
a15 1
DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
@
1.17
log
@pytest from versioned depends
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2020/04/30 09:37:26 adam Exp $
d5 1
d16 1
@
1.16
log
@py-bleach: updated to 3.1.5
Version 3.1.5:
Bug fixes
* replace missing ``setuptools`` dependency with ``packaging``.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2020/04/11 07:23:30 adam Exp $
a15 1
TEST_DEPENDS+= ${PYPKGPREFIX}-test>=3.0.0:../../devel/py-test
@
1.15
log
@py-bleach: updated to 3.1.4
Version 3.1.4:
Security fixes
* ``bleach.clean`` behavior parsing style attributes could result in a
regular expression denial of service (ReDoS).
Calls to ``bleach.clean`` with an allowed tag with an allowed
``style`` attribute were vulnerable to ReDoS. For example,
``bleach.clean(..., attributes={'a': ['style']})``.
This issue was confirmed in Bleach versions v3.1.3, v3.1.2, v3.1.1,
v3.1.0, v3.0.0, v2.1.4, and v2.1.3. Earlier versions used a similar
regular expression and should be considered vulnerable too.
Anyone using Bleach <=v3.1.3 is encouraged to upgrade.
Backwards incompatible changes
* Style attributes with dashes, or single or double quoted values are
cleaned instead of passed through.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2020/03/18 10:08:16 adam Exp $
d3 1
a3 1
DISTNAME= bleach-3.1.4
@
1.14
log
@py-bleach: updated to 3.1.3
Version 3.1.3:
**Features**
* Add relative link to code of conduct.
* Drop deprecated 'setup.py test' support.
* Fix typo: curren -> current in tests/test_clean.py
* Test on PyPy 7
* Drop test support for end of life Python 3.4
Version 3.1.2:
**Security fixes**
* ``bleach.clean`` behavior parsing embedded MathML and SVG content
with RCDATA tags did not match browser behavior and could result in
a mutation XSS.
Calls to ``bleach.clean`` with ``strip=False`` and ``math`` or
``svg`` tags and one or more of the RCDATA tags ``script``,
``noscript``, ``style``, ``noframes``, ``iframe``, ``noembed``, or
``xmp`` in the allowed tags whitelist were vulnerable to a mutation
XSS.
This security issue was confirmed in Bleach version v3.1.1. Earlier
versions are likely affected too.
Version 3.1.1:
**Security fixes**
* ``bleach.clean`` behavior parsing ``noscript`` tags did not match
browser behavior.
Calls to ``bleach.clean`` allowing ``noscript`` and one or more of
the raw text tags (``title``, ``textarea``, ``script``, ``style``,
``noembed``, ``noframes``, ``iframe``, and ``xmp``) were vulnerable
to a mutation XSS.
This security issue was confirmed in Bleach versions v2.1.4, v3.0.2,
and v3.1.0. Earlier versions are probably affected too.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2019/01/21 12:23:39 adam Exp $
d3 1
a3 1
DISTNAME= bleach-3.1.3
@
1.13
log
@py-bleach: updated to 3.1.0
Version 3.1.0:
**Features**
* Add recognized_tags argument to the linkify Linker class. This
fixes issues when linkifying on its own and having some tags get escaped.
It defaults to a list of HTML5 tags.
**Bug fixes**
* Add six>=1.9 to requirements.
* Fix cases where attribute names could have invalid characters in them.
* Fix problems with LinkifyFilter not being able to match links
across &.
* Fix InputStreamWithMemory when the BleachHTMLParser is
parsing meta tags.
* Fix doctests.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2018/10/30 09:48:29 hauke Exp $
d3 1
a3 1
DISTNAME= bleach-3.1.0
d22 3
@
1.12
log
@Deal with gratuitous use of "/bin/bash" (in a one-line script, no
less).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2018/10/26 09:11:54 adam Exp $
d3 1
a3 2
DISTNAME= bleach-3.0.2
PKGREVISION= 1
d13 1
a13 1
DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
@
1.11
log
@py-bleach: updated to 3.0.2
Version 3.0.2:
Bug fixes
Merge Characters tokens after sanitizing them. This fixes issues in the
LinkifyFilter where it was only linkifying parts of urls.
Version 3.0.1:
Features
Support Python 3.7. It supported Python 3.7 just fine, but we added 3.7 to
the list of Python environments we test so this is now officially supported.
Bug fixes
Fix list object has no attribute lower in clean.
Fix abbr getting escaped in linkify.
Version 3.0.0:
Backwards incompatible changes
A bunch of functions were moved from one module to another.
These were moved from bleach.sanitizer to bleach.html5lib_shim:
convert_entity
convert_entities
match_entity
next_possible_entity
BleachHTMLSerializer
BleachHTMLTokenizer
BleachHTMLParser
These functions and classes weren't documented and aren't part of the
public API, but people read code and might be using them so we're
considering it an incompatible API change.
If you're using them, you'll need to update your code.
Features
Bleach no longer depends on html5lib. html5lib==1.0.1 is now vendored into
Bleach. You can remove it from your requirements file if none of your other
requirements require html5lib.
This means Bleach will now work fine with other libraries that depend on
html5lib regardless of what version of html5lib they require.
Bug fixes
Fixed tags getting added when using clean or linkify. This was a
long-standing regression from the Bleach 2.0 rewrite.
Fixed getting replaced with a string. Now it gets escaped or
stripped depending on whether it's in the allowed tags or not.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2018/10/02 09:02:09 adam Exp $
d4 1
d21 2
@
1.10
log
@py-bleach: updated to 2.1.4
Version 2.1.4:
Dropped support for Python 3.3.
Handle ambiguous ampersands in correctly.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2018/04/09 12:14:19 adam Exp $
d3 1
a3 1
DISTNAME= bleach-2.1.4
a12 1
DEPENDS+= ${PYPKGPREFIX}-html5lib>=0.99999999:../../textproc/py-html5lib
d14 1
@
1.9
log
@py-bleach: updated to 2.1.3
Version 2.1.3:
**Security fixes**
* Attributes that have URI values weren't properly sanitized if the
values contained character entities. Using character entities, it
was possible to construct a URI value with a scheme that was not
allowed that would slide through unsanitized.
This security issue was introduced in Bleach 2.1. Anyone using
Bleach 2.1 is highly encouraged to upgrade.
**Bug fixes**
* Fixed some other edge cases for attribute URI value sanitizing and
improved testing of this code.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2017/12/10 16:56:51 adam Exp $
d3 1
a3 1
DISTNAME= bleach-2.1.3
@
1.8
log
@py-bleach: updated to 2.1.2
Version 2.1.2:
Bug fixes
* Support html5lib-python 1.0.1.
* Add deprecation warning for supporting html5lib-python < 1.0.
* Switch to semver.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2017/10/05 12:58:48 adam Exp $
d3 1
a3 1
DISTNAME= bleach-2.1.2
a14 1
BUILD_DEPENDS+= ${PYPKGPREFIX}-test>=3.0.0:../../devel/py-test
d16 1
@
1.7
log
@py-bleach: update to 2.1.1
Version 2.1.1:
**Bug fixes**
* Fix ``setup.py`` opening files when ``LANG=``.
Version 2.1:
**Security fixes**
* Convert control characters (backspace particularly) to "?" preventing
malicious copy-and-paste situations.
See ``_ for more details.
This affects all previous versions of Bleach. Check the comments on that
issue for ways to alleviate the issue if you can't upgrade to Bleach 2.1.
**Backwards incompatible changes**
* Redid versioning. ``bleach.VERSION`` is no longer available. Use the string
version at ``bleach.__version__`` and parse it with
``pkg_resources.parse_version``.
* clean, linkify: linkify and clean should only accept text types
* clean, linkify: accept only unicode or utf-8-encoded str
**Bug fixes**
* ``bleach.clean()`` no longer unescapes entities including ones that are missing
a ``;`` at the end which can happen in urls and other places.
* linkify: fix http links inside of mailto links
* clarify security policy in docs
* fix dependency specification for html5lib 1.0b8, 1.0b9, and 1.0b10
* add Bleach vs. html5lib comparison to README
* fix KeyError exceptions on tags without href attr
* add test website and scripts to test ``bleach.clean()`` output in browser
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2017/04/23 04:09:15 markd Exp $
d3 1
a3 1
DISTNAME= bleach-2.1.1
@
1.6
log
@Update py-bleach to 2.0.0
* Supports Python 3.6.
* Supports html5lib >= 0.99999999 (8 9s).
* There's a ``bleach.sanitizer.Cleaner`` class that you can instantiate with your
favorite clean settings for easy reuse.
* There's a ``bleach.linkifier.Linker`` class that you can instantiate with your
favorite linkify settings for easy reuse.
* There's a ``bleach.linkifier.LinkifyFilter`` which is an htm5lib filter that
you can pass as a filter to ``bleach.sanitizer.Cleaner`` allowing you to clean
and linkify in one pass.
* ``bleach.clean`` and friends can now take a callable as an attributes arg value.
* Tons of bug fixes.
* Cleaned up tests.
* Documentation fixes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2016/12/15 11:21:18 adam Exp $
d3 1
a3 1
DISTNAME= bleach-2.0.0
d5 1
a5 1
CATEGORIES= www
d13 1
d15 2
a16 1
DEPENDS+= ${PYPKGPREFIX}-html5lib>=0.99999999:../../textproc/py-html5lib
@
1.5
log
@Version 1.5 (November 4th, 2016)
**Backwards incompatible changes**
- clean: The list of ``ALLOWED_PROTOCOLS`` now defaults to http, https and
mailto. Previously it was a long list of protocols something like ed2k, ftp,
http, https, irc, mailto, news, gopher, nntp, telnet, webcal, xmpp, callto,
feed, urn, aim, rsync, tag, ssh, sftp, rtsp, afs, data.
**Changes**
- clean: Added ``protocols`` to arguments list to let you override the list of
allowed protocols. Thank you, Andreas Malecki!
- linkify: Fix a bug involving periods at the end of an email address. Thank you,
Lorenz Schori!
- linkify: Fix linkification of non-ascii ports. Thank you Alexandre, Macabies!
- linkify: Fix linkify inappropriately removing node tails when dropping nodes.
- Fixed a test that failed periodically.
- Switched from nose to py.test.
- Add test matrix for all supported Python and html5lib versions.
- Limit to html5lib ``>=0.999,!=0.9999,!=0.99999,<0.99999999`` because 0.9999
and 0.99999 are busted.
- Add support for ``python setup.py test``.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2016/06/08 17:43:44 wiz Exp $
d3 1
a3 1
DISTNAME= bleach-1.5.0
d9 1
a9 1
HOMEPAGE= http://pypi.python.org/pypi/bleach
d11 1
a11 1
LICENSE= modified-bsd
d13 2
a14 2
#DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
DEPENDS+= ${PYPKGPREFIX}-html5lib-[0-9]*:../../textproc/py-html5lib
d18 1
a18 1
.include "../../lang/python/distutils.mk"
@
1.4
log
@Switch to MASTER_SITES_PYPI.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2014/01/19 18:51:18 wiz Exp $
d3 1
a3 1
DISTNAME= bleach-1.4
d13 1
a13 1
DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
@
1.3
log
@Update to 1.4:
Version 1.4
-----------
- Update linkify to use etree type Treeewalker instead of simpletree.
- Updated html5lib to version >= 0.999.
- Update all code to be compatible with Python 3 and 2 using six.
- Switch to Apache License.
Version 1.3
-----------
- Used by Python 3-only fork.
Version 1.2.2
-------------
- Pin html5lib to version 0.95 for now due to major API break.
Version 1.2.1
-------------
- clean() no longer considers "feed:" an acceptable protocol due to
inconsistencies in browser behavior.
Version 1.2
-----------
- linkify() has changed considerably. Many keyword arguments have been
replaced with a single callbacks list. Please see the documentation
for more information.
- Bleach will no longer consider unacceptable protocols when linkifying.
- linkify() now takes a tokenizer argument that allows it to skip
sanitization.
- delinkify() is gone.
- Removed exception handling from _render. clean() and linkify() may now
throw.
- linkify() correctly ignores case for protocols and domain names.
- linkify() correctly handles markup within an tag.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2013/01/12 12:11:40 ryoon Exp $
d6 1
a6 1
MASTER_SITES= http://pypi.python.org/packages/source/b/bleach/
@
1.2
log
@Bump PKGREVISION.
* Add missing dependencies.
Thank you, joerg@@.
@
text
@d1 1
a1 2
# $NetBSD: Makefile,v 1.1 2013/01/03 14:04:46 ryoon Exp $
#
d3 1
a3 2
DISTNAME= bleach-1.1.5
PKGREVISION= 1
a13 1
DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
@
1.1
log
@Import py27-bleach-1.1.5 as www/py-bleach.
Bleach is an HTML sanitizing library that escapes or strips markup
and attributes based on a white list. 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.
@
text
@d1 1
a1 1
# $NetBSD$
d5 1
d15 4
@