Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-nbconvert for openSUSE:Factory checked in at 2023-02-13 16:40:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-nbconvert (Old) and /work/SRC/openSUSE:Factory/.python-nbconvert.new.1848 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nbconvert" Mon Feb 13 16:40:44 2023 rev:19 rq:1064697 version:7.2.9 Changes: -------- --- /work/SRC/openSUSE:Factory/python-nbconvert/python-nbconvert.changes 2023-01-23 18:31:55.420047248 +0100 +++ /work/SRC/openSUSE:Factory/.python-nbconvert.new.1848/python-nbconvert.changes 2023-02-13 16:42:52.452066437 +0100 @@ -1,0 +2,7 @@ +Thu Feb 9 16:19:54 UTC 2023 - Arun Persaud <a...@gmx.de> + +- update to version 7.2.9: + * Bugs fixed + + Fix handling of css sanitizer #1940 (@blink1073) + +------------------------------------------------------------------- Old: ---- nbconvert-7.2.8.tar.gz New: ---- nbconvert-7.2.9.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-nbconvert.spec ++++++ --- /var/tmp/diff_new_pack.NtDogA/_old 2023-02-13 16:42:52.900069077 +0100 +++ /var/tmp/diff_new_pack.NtDogA/_new 2023-02-13 16:42:52.908069124 +0100 @@ -29,9 +29,8 @@ %else %bcond_with libalternatives %endif - Name: python-nbconvert%{psuffix} -Version: 7.2.8 +Version: 7.2.9 Release: 0 Summary: Conversion of Jupyter Notebooks License: BSD-3-Clause AND MIT @@ -60,9 +59,6 @@ Requires: python-tinycss2 Requires: python-traitlets >= 5.0 Requires: (python-mistune >= 2.0.3 with python-mistune < 3) -%if 0%{python_version_nodots} < 310 -Requires: python-importlib-metadata >= 3.6 -%endif Recommends: pandoc Recommends: python-tornado >= 6.1 Suggests: %{name}-latex @@ -70,6 +66,9 @@ Provides: python-jupyter_nbconvert = %{version} Obsoletes: python-jupyter_nbconvert < %{version} BuildArch: noarch +%if 0%{python_version_nodots} < 310 +Requires: python-importlib-metadata >= 3.6 +%endif %if %{with libalternatives} BuildRequires: alts Requires: alts ++++++ nbconvert-7.2.8.tar.gz -> nbconvert-7.2.9.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbconvert-7.2.8/CHANGELOG.md new/nbconvert-7.2.9/CHANGELOG.md --- old/nbconvert-7.2.8/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100 +++ new/nbconvert-7.2.9/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100 @@ -2,6 +2,22 @@ <!-- <START NEW CHANGELOG ENTRY> --> +## 7.2.9 + +([Full Changelog](https://github.com/jupyter/nbconvert/compare/v7.2.8...14b1d7aa75485ea754c2d0ffc67cc528e3984a99)) + +### Bugs fixed + +- Fix handling of css sanitizer [#1940](https://github.com/jupyter/nbconvert/pull/1940) ([@blink1073](https://github.com/blink1073)) + +### Contributors to this release + +([GitHub contributors page for this release](https://github.com/jupyter/nbconvert/graphs/contributors?from=2023-01-16&to=2023-01-24&type=c)) + +[@blink1073](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Ablink1073+updated%3A2023-01-16..2023-01-24&type=Issues) + +<!-- <END NEW CHANGELOG ENTRY> --> + ## 7.2.8 ([Full Changelog](https://github.com/jupyter/nbconvert/compare/v7.2.7...73f7b1b93a4526d7e9d987f5a5b207eaed8171f2)) @@ -24,8 +40,6 @@ [@blink1073](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Ablink1073+updated%3A2022-12-19..2023-01-16&type=Issues) | [@maartenbreddels](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Amaartenbreddels+updated%3A2022-12-19..2023-01-16&type=Issues) | [@martinRenou](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3AmartinRenou+updated%3A2022-12-19..2023-01-16&type=Issues) | [@minrk](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Aminrk+updated%3A2022-12-19..2023-01-16&type=Issues) | [@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Apre-commit-ci+updated%3A2022-12-19..2023-01-16&type=Issues) -<!-- <END NEW CHANGELOG ENTRY> --> - ## 7.2.7 ([Full Changelog](https://github.com/jupyter/nbconvert/compare/v7.2.6...a32c3c1063e081d7e639b7f1670788d220b93810)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbconvert-7.2.8/PKG-INFO new/nbconvert-7.2.9/PKG-INFO --- old/nbconvert-7.2.8/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 +++ new/nbconvert-7.2.9/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: nbconvert -Version: 7.2.8 +Version: 7.2.9 Summary: Converting Jupyter Notebooks Project-URL: Homepage, https://jupyter.org Author-email: Jupyter Development Team <jupy...@googlegroups.com> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbconvert-7.2.8/nbconvert/_version.py new/nbconvert-7.2.9/nbconvert/_version.py --- old/nbconvert-7.2.8/nbconvert/_version.py 2020-02-02 01:00:00.000000000 +0100 +++ new/nbconvert-7.2.9/nbconvert/_version.py 2020-02-02 01:00:00.000000000 +0100 @@ -3,7 +3,7 @@ from typing import List # Version string must appear intact for versioning -__version__ = "7.2.8" +__version__ = "7.2.9" # Build up version_info tuple for backwards compatibility pattern = r"(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbconvert-7.2.8/nbconvert/filters/strings.py new/nbconvert-7.2.9/nbconvert/filters/strings.py --- old/nbconvert-7.2.8/nbconvert/filters/strings.py 2020-02-02 01:00:00.000000000 +0100 +++ new/nbconvert-7.2.9/nbconvert/filters/strings.py 2020-02-02 01:00:00.000000000 +0100 @@ -20,6 +20,8 @@ # defusedxml does safe(r) parsing of untrusted XML data from defusedxml import ElementTree # type:ignore +from nbconvert.preprocessors.sanitize import _get_default_css_sanitizer + __all__ = [ "wrap_text", "html2text", @@ -86,6 +88,10 @@ element = element.decode() else: element = str(element) + kwargs = {} + css_sanitizer = _get_default_css_sanitizer() + if css_sanitizer: + kwargs['css_sanitizer'] = css_sanitizer return bleach.clean( element, tags=[*bleach.ALLOWED_TAGS, *ALLOWED_SVG_TAGS, "div", "pre", "code", "span"], @@ -95,6 +101,7 @@ **{svg_tag: list(ALLOWED_SVG_ATTRIBUTES) for svg_tag in ALLOWED_SVG_TAGS}, "*": ["class", "id"], }, + **kwargs, ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbconvert-7.2.8/nbconvert/preprocessors/sanitize.py new/nbconvert-7.2.9/nbconvert/preprocessors/sanitize.py --- old/nbconvert-7.2.8/nbconvert/preprocessors/sanitize.py 2020-02-02 01:00:00.000000000 +0100 +++ new/nbconvert-7.2.9/nbconvert/preprocessors/sanitize.py 2020-02-02 01:00:00.000000000 +0100 @@ -168,3 +168,8 @@ kwargs.update(styles=self.styles) return clean(html_str, **kwargs) + + +def _get_default_css_sanitizer(): + if _USE_BLEACH_CSS_SANITIZER: + return CSSSanitizer(allowed_css_properties=ALLOWED_STYLES)