Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-bokeh2 for openSUSE:Factory 
checked in at 2023-01-05 15:01:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-bokeh2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-bokeh2.new.1563 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-bokeh2"

Thu Jan  5 15:01:22 2023 rev:2 rq:1056125 version:2.4.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-bokeh2/python-bokeh2.changes      
2022-11-23 09:48:15.439088697 +0100
+++ /work/SRC/openSUSE:Factory/.python-bokeh2.new.1563/python-bokeh2.changes    
2023-01-05 15:01:40.897301491 +0100
@@ -1,0 +2,6 @@
+Wed Jan  4 15:28:06 UTC 2023 - Ben Greiner <c...@bnavigator.de>
+
+- Add bokeh-pr12690-bool-deprecation.patch gh#bokeh/bokeh#12690
+- Move to PEP517 build
+
+-------------------------------------------------------------------

New:
----
  bokeh-pr12690-bool-deprecation.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-bokeh2.spec ++++++
--- /var/tmp/diff_new_pack.2BLU8d/_old  2023-01-05 15:01:41.549306148 +0100
+++ /var/tmp/diff_new_pack.2BLU8d/_new  2023-01-05 15:01:41.553306177 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package python-bokeh
+# spec file for package python-bokeh2
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -28,16 +28,20 @@
 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
+#PATCH-FIX-UPSTREAM bokeh-pr12690-bool-deprecation.patch gh#bokeh/bokeh#12690
+Patch2:         bokeh-pr12690-bool-deprecation.patch
 BuildRequires:  %{python_module Jinja2 >= 2.9}
 BuildRequires:  %{python_module Pillow >= 7.1.0}
 BuildRequires:  %{python_module PyYAML >= 3.10}
 BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module numpy >= 1.11.3}
 BuildRequires:  %{python_module packaging >= 16.8}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module python-dateutil >= 2.1}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module tornado >= 5.1}
 BuildRequires:  %{python_module typing_extensions >= 3.7.4}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildConflicts: python-buildservice-tweak
@@ -93,10 +97,10 @@
   ';'
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 %python_clone -a %{buildroot}%{_bindir}/bokeh
 
@@ -138,6 +142,6 @@
 %doc CHANGELOG README.md
 %python_alternative %{_bindir}/bokeh
 %{python_sitelib}/bokeh/
-%{python_sitelib}/bokeh-%{version}*-info
+%{python_sitelib}/bokeh-%{version}.dist-info
 
 %changelog

++++++ bokeh-pr12690-bool-deprecation.patch ++++++
>From 6df57b705b42a2905b51d2dd5e5287a7e7bf1650 Mon Sep 17 00:00:00 2001
From: Matthew Rocklin <mrock...@gmail.com>
Date: Tue, 20 Dec 2022 08:27:49 -0600
Subject: [PATCH] Replace numpy.bool8 with numpy.bool_

Fixes https://github.com/bokeh/bokeh/issues/12689
Fixes https://github.com/dask/distributed/issues/7422
---
 src/bokeh/core/property/primitive.py             |  2 +-
 tests/unit/bokeh/core/property/test_primitive.py | 16 ++++++++--------
 2 files changed, 9 insertions(+), 9 deletions(-)

Index: bokeh-2.4.3/bokeh/core/property/primitive.py
===================================================================
--- bokeh-2.4.3.orig/bokeh/core/property/primitive.py
+++ bokeh-2.4.3/bokeh/core/property/primitive.py
@@ -34,7 +34,7 @@ from .bases import Init, PrimitiveProper
 bokeh_bool_types = (bool,)
 try:
     import numpy as np
-    bokeh_bool_types += (np.bool8,)
+    bokeh_bool_types += (np.bool_,)
 except ImportError:
     pass
 
Index: bokeh-2.4.3/tests/unit/bokeh/core/property/test_primitive.py
===================================================================
--- bokeh-2.4.3.orig/tests/unit/bokeh/core/property/test_primitive.py
+++ bokeh-2.4.3/tests/unit/bokeh/core/property/test_primitive.py
@@ -52,8 +52,8 @@ class Test_Bool:
         assert prop.is_valid(False)
         assert prop.is_valid(True)
 
-        assert prop.is_valid(np.bool8(False))
-        assert prop.is_valid(np.bool8(True))
+        assert prop.is_valid(np.bool_(False))
+        assert prop.is_valid(np.bool_(True))
 
     def test_invalid(self) -> None:
         prop = bcpp.Bool()
@@ -159,8 +159,8 @@ class Test_Complex:
         assert not prop.is_valid(_TestHasProps())
         assert not prop.is_valid(_TestModel())
 
-        assert not prop.is_valid(np.bool8(False))
-        assert not prop.is_valid(np.bool8(True))
+        assert not prop.is_valid(np.bool_(False))
+        assert not prop.is_valid(np.bool_(True))
 
     def test_has_ref(self) -> None:
         prop = bcpp.Complex()
@@ -219,8 +219,8 @@ class Test_Float:
         assert not prop.is_valid(_TestHasProps())
         assert not prop.is_valid(_TestModel())
 
-        assert not prop.is_valid(np.bool8(False))
-        assert not prop.is_valid(np.bool8(True))
+        assert not prop.is_valid(np.bool_(False))
+        assert not prop.is_valid(np.bool_(True))
         assert not prop.is_valid(np.complex64(1.0+1.0j))
         assert not prop.is_valid(np.complex128(1.0+1.0j))
         if hasattr(np, "complex256"):
@@ -277,8 +277,8 @@ class Test_Int:
         assert not prop.is_valid(_TestHasProps())
         assert not prop.is_valid(_TestModel())
 
-        assert not prop.is_valid(np.bool8(False))
-        assert not prop.is_valid(np.bool8(True))
+        assert not prop.is_valid(np.bool_(False))
+        assert not prop.is_valid(np.bool_(True))
         assert not prop.is_valid(np.float16(0))
         assert not prop.is_valid(np.float16(1))
         assert not prop.is_valid(np.float32(0))

Reply via email to