58 Commits

Author SHA256 Message Date
Ana Guerrero
3121d88d42 Accepting request 1225083 from devel:languages:python
- update to 6.2.0:
  * Dropped support for Python 3.8. (#737)
  * Add support for Python 3.13. (#736)
  * Remove six depdenncy. (#618)
  * Update known-good versions for tinycss2. (#732)
  * Fix additional < followed by characters and EOF issues.

OBS-URL: https://build.opensuse.org/request/show/1225083
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=21
2024-11-19 21:23:32 +00:00
27b6113a73 - update to 6.2.0:
* Dropped support for Python 3.8. (#737)
  * Add support for Python 3.13. (#736)
  * Remove six depdenncy. (#618)
  * Update known-good versions for tinycss2. (#732)
  * Fix additional < followed by characters and EOF issues.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=57
2024-11-19 12:15:21 +00:00
Ana Guerrero
ca6b125ef0 Accepting request 1120892 from devel:languages:python
- update to 6.1.0:
  * Dropped support for Python 3.7.
  * 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

- Update to V3.1.1: Security update for CVE-2020-6802
  * CVE-2020-6802: Fixed mutation XSS vulnerabilities (bsc#1165303).

OBS-URL: https://build.opensuse.org/request/show/1120892
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=20
2023-10-29 18:39:48 +00:00
2b7a6ad3d7 - update to 6.1.0:
* Dropped support for Python 3.7.
  * 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
- Update to V3.1.1: Security update for CVE-2020-6802
  * CVE-2020-6802: Fixed mutation XSS vulnerabilities (bsc#1165303).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=55
2023-10-28 09:51:39 +00:00
Dominique Leuenberger
1dd5b37b3b Accepting request 1096012 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1096012
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=19
2023-06-30 17:58:26 +00:00
6a4ad89810 Accepting request 1095966 from home:mcalabkova:branches:devel:languages:python:D
- Add patch strip-spaces.patch (bsc#1212852)
  * sent upstream: https://github.com/mozilla/bleach/pull/706

OBS-URL: https://build.opensuse.org/request/show/1095966
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=53
2023-06-29 16:26:38 +00:00
Dominique Leuenberger
264dc20c81 Accepting request 1085516 from devel:languages:python
- Update to 6.0.0:
  * bleach.clean, bleach.sanitizer.Cleaner,
    bleach.html5lib_shim.BleachHTMLParser: the tags and protocols
    arguments were changed from lists to sets.
  * bleach.linkify, bleach.linkifier.Linker: the skip_tags and
    recognized_tags arguments were changed from lists to sets.
  * 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.
  # Bug fixes
  * Add support for Python 3.11. (#675)
  * Fix API weirness in BleachSanitizerFilter. (#649)
  * 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. (#676)
  * Fix linkify handling of character entities. (#501)
  * 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.

OBS-URL: https://build.opensuse.org/request/show/1085516
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=18
2023-05-09 11:08:03 +00:00
a683d0f9c5 - Update to 6.0.0:
* bleach.clean, bleach.sanitizer.Cleaner,
    bleach.html5lib_shim.BleachHTMLParser: the tags and protocols
    arguments were changed from lists to sets.
  * bleach.linkify, bleach.linkifier.Linker: the skip_tags and
    recognized_tags arguments were changed from lists to sets.
  * 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.
  # Bug fixes
  * Add support for Python 3.11. (#675)
  * Fix API weirness in BleachSanitizerFilter. (#649)
  * 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. (#676)
  * Fix linkify handling of character entities. (#501)
  * 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=51
2023-05-08 12:00:20 +00:00
Dominique Leuenberger
16af7538d4 Accepting request 1081979 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081979
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=17
2023-04-22 20:01:47 +00:00
3ad0a28ce2 Accepting request 1081348 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081348
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=49
2023-04-21 14:52:15 +00:00
Dominique Leuenberger
178fe72bbb Accepting request 1074154 from devel:languages:python
- Remove not needed dependency python-packaging

OBS-URL: https://build.opensuse.org/request/show/1074154
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=16
2023-03-25 17:55:13 +00:00
177b1af6a1 - Remove not needed dependency python-packaging
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=47
2023-03-24 11:39:17 +00:00
Dominique Leuenberger
865d6a5ceb Accepting request 1033010 from devel:languages:python
- Remove not needed python-six dependency
- Remove python_module macro definition
- More specific python_sitelib in files

OBS-URL: https://build.opensuse.org/request/show/1033010
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=15
2022-11-04 16:31:40 +00:00
46a7d5b1cd - Remove not needed python-six dependency
- Remove python_module macro definition
- More specific python_sitelib in files

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=45
2022-11-03 09:01:34 +00:00
Richard Brown
78606a7767 Accepting request 1006839 from devel:languages:python
- Update to 5.0.1:
  * Add missing comma to tinycss2 require. Thank you, @shadchin!
  * Add url parse tests based on wpt url tests. (#688)
  * Support scheme-less urls if "https" is in allow list. (#662)
  * Handle escaping ``<`` in edge cases where it doesn't start a tag. (#544)
  * Correctly urlencode email address parts. Thank you, @larseggert! (#659)
  * ``clean`` and ``linkify`` now preserve the order of HTML attributes.
  * Drop support for Python 3.6. Thank you, @hugovk! (#629)
  * CSS sanitization in style tags is completely different now.
  * Python 3.9 support
  * Drop support for unsupported Python versions <3.6. (#520)
  * add more tests for CVE-2021-23980 / GHSA-vv2x-vrpj-qqpq
- Refresh de-vendor.patch, and convert to patch level 1

OBS-URL: https://build.opensuse.org/request/show/1006839
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=14
2022-10-01 15:42:38 +00:00
Steve Kowalik
2605210ed4 - Update to 5.0.1:
* Add missing comma to tinycss2 require. Thank you, @shadchin!
  * Add url parse tests based on wpt url tests. (#688)
  * Support scheme-less urls if "https" is in allow list. (#662)
  * Handle escaping ``<`` in edge cases where it doesn't start a tag. (#544)
  * Correctly urlencode email address parts. Thank you, @larseggert! (#659)
  * ``clean`` and ``linkify`` now preserve the order of HTML attributes.
  * Drop support for Python 3.6. Thank you, @hugovk! (#629)
  * CSS sanitization in style tags is completely different now.
  * Python 3.9 support
  * Drop support for unsupported Python versions <3.6. (#520)
  * add more tests for CVE-2021-23980 / GHSA-vv2x-vrpj-qqpq
- Refresh de-vendor.patch, and convert to patch level 1

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=43
2022-09-29 07:00:27 +00:00
Dominique Leuenberger
ea092a2076 Accepting request 884911 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/884911
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=13
2021-04-14 11:05:10 +00:00
19b3ff6175 Accepting request 884898 from home:AndreasStieger:branches:devel:languages:python
python-bleach 3.3.0 CVE-2021-23980 boo#1184547

OBS-URL: https://build.opensuse.org/request/show/884898
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=41
2021-04-13 10:30:56 +00:00
Dominique Leuenberger
c20e423e50 Accepting request 830713 from devel:languages:python
- Skip tests that fail with html5lib 1.1 ref the upstream ticket

  * replace missing ``setuptools`` dependency with ``packaging``. Thank you Benjamin Peterson.

OBS-URL: https://build.opensuse.org/request/show/830713
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=12
2020-09-04 09:02:55 +00:00
Tomáš Chvátal
efa22fed01 - Skip tests that fail with html5lib 1.1 ref the upstream ticket
* replace missing ``setuptools`` dependency with ``packaging``. Thank you Benjamin Peterson.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=39
2020-08-31 09:15:54 +00:00
Dominique Leuenberger
da3de4af4c Accepting request 800583 from devel:languages:python
- Update to 3.1.5:
  * * replace missing ``setuptools`` dependency with ``packaging``. Thank you Benjamin Peterson.

OBS-URL: https://build.opensuse.org/request/show/800583
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=11
2020-05-08 21:02:04 +00:00
Tomáš Chvátal
f264ca5fab - Update to 3.1.5:
* * replace missing ``setuptools`` dependency with ``packaging``. Thank you Benjamin Peterson.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=37
2020-05-06 07:14:32 +00:00
Dominique Leuenberger
cf65231a75 Accepting request 790549 from devel:languages:python
- update to 3.1.4 (bsc#1168280, CVE-2020-6817):
  * ``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']})``.
  * Style attributes with dashes, or single or double quoted values are
    cleaned instead of passed through.

- update to 3.1.3 (bsc#1167379, CVE-2020-6816):

OBS-URL: https://build.opensuse.org/request/show/790549
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=10
2020-04-05 18:51:47 +00:00
5e4292f9bb - update to 3.1.4 (bsc#1168280, CVE-2020-6817):
* ``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']})``.
  * Style attributes with dashes, or single or double quoted values are
    cleaned instead of passed through.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=35
2020-04-01 11:21:16 +00:00
e36ce7b3c2 address review feedback from https://build.opensuse.org/request/show/790090
- update to 3.1.3 (bsc#1167379, CVE-2020-6816):

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=34
2020-03-31 20:28:11 +00:00
Dominique Leuenberger
48b9e746b6 Accepting request 787398 from devel:languages:python
- update to 3.1.3 (bsc#1167379):
  * Add relative link to code of conduct. (#442)
  * Drop deprecated 'setup.py test' support. (#507)
  * Fix typo: curren -> current in tests/test_clean.py (#504)
  * Test on PyPy 7
  * Drop test support for end of life Python 3.4
  * ``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.

OBS-URL: https://build.opensuse.org/request/show/787398
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=9
2020-03-26 23:28:19 +00:00
2cc23971a9 - update to 3.1.3 (bsc#1167379):
* Add relative link to code of conduct. (#442)
  * Drop deprecated 'setup.py test' support. (#507)
  * Fix typo: curren -> current in tests/test_clean.py (#504)
  * Test on PyPy 7
  * Drop test support for end of life Python 3.4
  * ``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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=32
2020-03-23 10:22:56 +00:00
Dominique Leuenberger
928b2ef5b5 Accepting request 780475 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/780475
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=8
2020-03-08 21:22:00 +00:00
Tomáš Chvátal
394b9b98a6 Accepting request 780338 from home:atopt:branches:devel:languages:python
- Update to V3.1.1: Security update for CVE-2020-6802  
  * CVE-2020-6802: Fixed mutation XSS vulnerabilities (bsc#1165303).

OBS-URL: https://build.opensuse.org/request/show/780338
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=30
2020-02-29 10:05:37 +00:00
bb709d0cb6 Run spec-cleaner
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=29
2020-01-08 09:36:43 +00:00
dd30fdb54f - Switch off test_uri_value_allowed_protocols test to work around
gh#mozilla/bleach#503.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=28
2020-01-08 09:36:18 +00:00
Dominique Leuenberger
669eb1de7c Accepting request 717075 from devel:languages:python
- Restrict pytest to <5.0; upstream has an issue already reported

OBS-URL: https://build.opensuse.org/request/show/717075
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=7
2019-07-30 11:02:43 +00:00
Tomáš Chvátal
3741963f03 - Restrict pytest to <5.0; upstream has an issue already reported
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=26
2019-07-19 12:03:38 +00:00
Dominique Leuenberger
4e60753534 Accepting request 681085 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/681085
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=6
2019-03-04 08:23:44 +00:00
Tomáš Chvátal
b1e5f6a0bb Accepting request 681074 from home:jayvdb:noflake8
- Add de-vendor.patch to avoid new vendoring of html5lib in v3.1.0
- Remove direct dependency on webencodings, a dependency of html5lib
- Update to v3.1.0

OBS-URL: https://build.opensuse.org/request/show/681074
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=24
2019-03-03 12:34:08 +00:00
Dominique Leuenberger
e0bf1d7dcc Accepting request 655395 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/655395
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=5
2018-12-13 18:47:15 +00:00
Todd R
64204dd675 Accepting request 654136 from home:jengelh:branches:devel:languages:python
- Trim rhetorics and bias from descriptions.

OBS-URL: https://build.opensuse.org/request/show/654136
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=22
2018-12-05 19:22:46 +00:00
3c2753cf75 Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=21
2018-12-04 17:10:21 +00:00
2846e60ac2 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=20
2018-12-04 13:16:55 +00:00
Dominique Leuenberger
4b7c41e4e1 Accepting request 589030 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/589030
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=4
2018-03-20 21:01:11 +00:00
Tomáš Chvátal
c2eee5a36f Accepting request 589012 from home:kbabioch:branches:devel:languages:python
- Update to version 2.1.3:
  * 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.
    (CVE-2018-7753 bnc#1085969)

OBS-URL: https://build.opensuse.org/request/show/589012
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=18
2018-03-20 09:37:42 +00:00
Tomáš Chvátal
b910cc8b93 osc copypac from project:devel:languages:python package:python-bleach revision:11
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=17
2017-12-13 14:46:54 +00:00
Tomáš Chvátal
44acfc3ed6 osc copypac from project:devel:languages:python package:python-bleach revision:13
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=16
2017-12-13 14:45:06 +00:00
Tomáš Chvátal
6233b41349 Add python-six to runtime deps as per setup.py
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=15
2017-12-13 14:36:08 +00:00
Tomáš Chvátal
50e6385bd7 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=14 2017-12-13 14:28:13 +00:00
Tomáš Chvátal
9862f6181f - Add patch pytest-requirement.patch to build with new pytest-runner
- Version update to 2.1.2:
  * Support new html5lib

- Convert to singlespec and enable tests/etc.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=13
2017-12-13 14:27:19 +00:00
Tomáš Chvátal
3689b3a762 osc copypac from project:openSUSE:infrastructure:elections.opensuse.org package:python-bleach revision:3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=12
2017-12-13 14:12:06 +00:00
Dominique Leuenberger
81ccebfcf8 Accepting request 555534 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/555534
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=3
2017-12-11 17:56:32 +00:00
Tomáš Chvátal
c44a6c6eba Accepting request 555279 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/555279
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=10
2017-12-09 12:39:53 +00:00
Dominique Leuenberger
cc18d925b4 Accepting request 541217 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/541217
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=2
2017-11-15 15:57:49 +00:00