The NetBSD Project

CVS log for pkgsrc/www/py-bleach/Makefile

[BACK] Up to [] / pkgsrc / www / py-bleach

Request diff between arbitrary revisions

Default branch: MAIN

Revision 1.28 / (download) - annotate - [select for diffs], Fri Oct 20 11:31:22 2023 UTC (6 weeks, 2 days ago) by adam
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

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**


**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

Revision 1.27 / (download) - annotate - [select for diffs], Fri May 5 15:46:44 2023 UTC (6 months, 4 weeks ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

py-bleach: fix filename in REPLACE_SH

Revision 1.26 / (download) - annotate - [select for diffs], Fri May 5 08:47:37 2023 UTC (6 months, 4 weeks ago) by adam
Branch: MAIN
Changes since 1.25: +6 -8 lines
Diff to previous 1.25 (colored)

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

         "some text",
         tags=["a", "p", "img"],
         #    ^               ^ list
         protocols=["http", "https"],
         #         ^               ^ list

  New 6.0.0 and later:

  .. code-block:: python

         "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

         "some text",
         #         ^     ^ list

     linker = Linker(
         #         ^     ^ list
         recognized_tags=html5lib_shim.HTML_TAGS + ["custom-element"],
         #                                       ^ ^                ^ list
         #                                       |
         #                                       | list concatenation

  New 6.0.0 and later:

  .. code-block:: python

         "some text",
         #         ^     ^ set

     linker = Linker(
         #         ^     ^ 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**


**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.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Apr 30 18:45:35 2023 UTC (7 months ago) by wiz
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

py-bleach: only for python 2

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jan 4 20:55:16 2022 UTC (22 months, 4 weeks ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

*: bump PKGREVISION for users

They now have a tool dependency on py-setuptools instead of a DEPENDS

Revision 1.23 / (download) - annotate - [select for diffs], Tue Nov 9 20:34:41 2021 UTC (2 years ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4
Changes since 1.22: +4 -2 lines
Diff to previous 1.22 (colored)

*: convert packaging to lang/python/

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jul 26 18:12:20 2021 UTC (2 years, 4 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

py-bleach: updated to 3.3.1

Version 3.3.1 (July 14th, 2021)


* 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

Revision 1.21 / (download) - annotate - [select for diffs], Tue Apr 6 19:51:47 2021 UTC (2 years, 7 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2021Q2-base, pkgsrc-2021Q2
Changes since 1.20: +4 -5 lines
Diff to previous 1.20 (colored)

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.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jan 27 09:43:43 2021 UTC (2 years, 10 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

py-bleach: updated to 3.2.3

Version 3.2.3 (January 26th, 2021)

**Security fixes**


**Bug fixes**
* fix clean and linkify raising ValueErrors for certain inputs.

Version 3.2.2 (January 20th, 2021)

**Security fixes**

* Migrate CI to Github Actions.

**Bug fixes**
* fix linkify raising an IndexError on certain inputs.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Nov 2 14:45:57 2020 UTC (3 years, 1 month ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4
Changes since 1.18: +4 -5 lines
Diff to previous 1.18 (colored)

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.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Oct 4 17:12:21 2020 UTC (3 years, 1 month ago) by js
Branch: MAIN
Changes since 1.17: +3 -1 lines
Diff to previous 1.17 (colored)

www/py-bleach: Add missing dependency

Revision 1.17 / (download) - annotate - [select for diffs], Sun May 17 20:18:35 2020 UTC (3 years, 6 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2
Changes since 1.16: +1 -2 lines
Diff to previous 1.16 (colored)

pytest from versioned depends

Revision 1.16 / (download) - annotate - [select for diffs], Thu Apr 30 09:37:26 2020 UTC (3 years, 7 months ago) by adam
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

py-bleach: updated to 3.1.5

Version 3.1.5:
Bug fixes
* replace missing ``setuptools`` dependency with ``packaging``.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Apr 11 07:23:30 2020 UTC (3 years, 7 months ago) by adam
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

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.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Mar 18 10:08:16 2020 UTC (3 years, 8 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1
Changes since 1.13: +5 -2 lines
Diff to previous 1.13 (colored)

py-bleach: updated to 3.1.3

Version 3.1.3:


* Add relative link to code of conduct.
* Drop deprecated ' test' support.
* Fix typo: curren -> current in tests/
* 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

  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.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 21 12:23:39 2019 UTC (4 years, 10 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1
Changes since 1.12: +3 -4 lines
Diff to previous 1.12 (colored)

py-bleach: updated to 3.1.0

Version 3.1.0:
* 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 &amp;.
* Fix InputStreamWithMemory when the BleachHTMLParser is
  parsing meta tags.
* Fix doctests.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Oct 30 09:48:29 2018 UTC (5 years, 1 month ago) by hauke
Branch: MAIN
CVS Tags: pkgsrc-2018Q4-base, pkgsrc-2018Q4
Changes since 1.11: +4 -1 lines
Diff to previous 1.11 (colored)

Deal with gratuitous use of "/bin/bash" (in a one-line script, no

Revision 1.11 / (download) - annotate - [select for diffs], Fri Oct 26 09:11:54 2018 UTC (5 years, 1 month ago) by adam
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

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:


 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:


  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.


 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 <isindex> getting replaced with a string. Now it gets escaped or
  stripped depending on whether it's in the allowed tags or not.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 2 09:02:09 2018 UTC (5 years, 2 months ago) by adam
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

py-bleach: updated to 2.1.4

Version 2.1.4:
Dropped support for Python 3.3.
Handle ambiguous ampersands in correctly.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Apr 9 12:14:19 2018 UTC (5 years, 7 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

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.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Dec 10 16:56:51 2017 UTC (5 years, 11 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

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.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 5 12:58:48 2017 UTC (6 years, 1 month ago) by adam
Branch: MAIN
Changes since 1.6: +6 -4 lines
Diff to previous 1.6 (colored)

py-bleach: update to 2.1.1

Version 2.1.1:
**Bug fixes**
* Fix ```` 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
* 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

Revision 1.6 / (download) - annotate - [select for diffs], Sun Apr 23 04:09:15 2017 UTC (6 years, 7 months ago) by markd
Branch: MAIN
CVS Tags: pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2
Changes since 1.5: +7 -7 lines
Diff to previous 1.5 (colored)

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.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Dec 15 11:21:18 2016 UTC (6 years, 11 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

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.

- 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 test``.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 8 17:43:44 2016 UTC (7 years, 5 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)


Revision 1.3 / (download) - annotate - [select for diffs], Sun Jan 19 18:51:18 2014 UTC (9 years, 10 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1
Changes since 1.2: +2 -5 lines
Diff to previous 1.2 (colored)

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
- delinkify() is gone.
- Removed exception handling from _render. clean() and linkify() may now
- linkify() correctly ignores case for protocols and domain names.
- linkify() correctly handles markup within an <a> tag.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jan 12 12:11:40 2013 UTC (10 years, 10 months ago) by ryoon
Branch: MAIN
CVS Tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1
Changes since 1.1: +6 -1 lines
Diff to previous 1.1 (colored)

* Add missing dependencies.
Thank you, joerg@.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jan 3 14:04:46 2013 UTC (10 years, 11 months ago) by ryoon
Branch: MAIN

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.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>