Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-bokeh for openSUSE:Factory checked in at 2022-07-08 14:02:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-bokeh (Old) and /work/SRC/openSUSE:Factory/.python-bokeh.new.1523 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-bokeh" Fri Jul 8 14:02:42 2022 rev:36 rq:987755 version:2.4.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-bokeh/python-bokeh.changes 2022-05-30 12:44:51.408462910 +0200 +++ /work/SRC/openSUSE:Factory/.python-bokeh.new.1523/python-bokeh.changes 2022-07-08 14:02:50.730511132 +0200 @@ -1,0 +2,8 @@ +Thu Jul 7 17:32:06 UTC 2022 - Ben Greiner <c...@bnavigator.de> + +- Add bokeh-pr12218-Pillow9.2.patch for fixing failures with + Pillow 9.2 + * gh#bokeh/bokeh#12216 + * gh#bokeh/bokeh#12218 + +------------------------------------------------------------------- New: ---- bokeh-pr12218-Pillow9.2.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-bokeh.spec ++++++ --- /var/tmp/diff_new_pack.9ZJhRq/_old 2022-07-08 14:02:52.622513386 +0200 +++ /var/tmp/diff_new_pack.9ZJhRq/_new 2022-07-08 14:02:52.626513391 +0200 @@ -17,7 +17,6 @@ %define skip_python2 1 -%define skip_python36 1 %bcond_without tests Name: python-bokeh Version: 2.4.3 @@ -27,6 +26,8 @@ URL: https://github.com/bokeh/bokeh/ Source0: https://files.pythonhosted.org/packages/source/b/bokeh/bokeh-%{version}.tar.gz Source1: https://raw.githubusercontent.com/bokeh/bokeh/%{version}/conftest.py +#PATCH-FIX-UPSTREAM bokeh-pr12218-Pillow9.2.patch gh#bokeh/bokeh#12218 +Patch1: https://github.com/bokeh/bokeh/pull/12218.patch#/bokeh-pr12218-Pillow9.2.patch BuildRequires: %{python_module Jinja2 >= 2.9} BuildRequires: %{python_module Pillow >= 7.1.0} BuildRequires: %{python_module PyYAML >= 3.10} ++++++ bokeh-pr12218-Pillow9.2.patch ++++++ >From b86d5458cbf6d371013a8ced744b262460005e23 Mon Sep 17 00:00:00 2001 From: Mateusz Paprocki <matt...@gmail.com> Date: Wed, 6 Jul 2022 14:59:48 +0200 Subject: [PATCH] Robustify a unit test of Image.transform() --- tests/unit/bokeh/core/property/test_visual.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/unit/bokeh/core/property/test_visual.py b/tests/unit/bokeh/core/property/test_visual.py index 3f293642b56..37620d35c1d 100644 --- a/tests/unit/bokeh/core/property/test_visual.py +++ b/tests/unit/bokeh/core/property/test_visual.py @@ -21,6 +21,7 @@ import datetime from io import BytesIO from pathlib import Path +from typing import Literal # External imports import numpy as np @@ -284,12 +285,15 @@ def test_transform_numpy(self) -> None: assert prop.transform(data) == expected @pytest.mark.parametrize('typ', ('png', 'gif', 'tiff')) - def test_transform_PIL(self, typ) -> None: + def test_transform_PIL(self, typ: Literal["png", "gif", "tiff"]) -> None: image = PIL.Image.new("RGBA", size=(50, 50), color=(155, 0, 0)) - out = BytesIO() - image.save(out, typ) - value = PIL.Image.open(out) - expected = "data:image/%s;base64," % typ + base64.b64encode(out.getvalue()).decode('ascii') + out0 = BytesIO() + image.save(out0, typ) + + value = PIL.Image.open(out0) + out1 = BytesIO() + value.save(out1, typ) + expected = "data:image/%s;base64," % typ + base64.b64encode(out1.getvalue()).decode('ascii') prop = bcpv.Image() assert prop.transform(value) == expected