Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-geomdl for openSUSE:Factory checked in at 2023-04-03 17:45:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-geomdl (Old) and /work/SRC/openSUSE:Factory/.python-geomdl.new.9019 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-geomdl" Mon Apr 3 17:45:52 2023 rev:4 rq:1076823 version:5.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-geomdl/python-geomdl.changes 2021-02-23 20:22:25.943763254 +0100 +++ /work/SRC/openSUSE:Factory/.python-geomdl.new.9019/python-geomdl.changes 2023-04-03 17:45:52.639443608 +0200 @@ -1,0 +2,7 @@ +Mon Apr 3 05:59:40 UTC 2023 - Steve Kowalik <[email protected]> + +- Stop skipping Python 3.6. +- Add patch support-numpy-124.patch: + * Support numpy >= 1.24 + +------------------------------------------------------------------- New: ---- support-numpy-124.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-geomdl.spec ++++++ --- /var/tmp/diff_new_pack.t222je/_old 2023-04-03 17:45:53.351995303 +0200 +++ /var/tmp/diff_new_pack.t222je/_new 2023-04-03 17:45:53.355998403 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-geomdl # -# Copyright (c) 2021 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 @@ -18,8 +18,6 @@ %define archivename NURBS-Python %define packagename geomdl -%define skip_python36 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-geomdl Version: 5.3.1 Release: 0 @@ -27,6 +25,8 @@ License: MIT URL: https://github.com/orbingol/NURBS-Python Source: https://github.com/orbingol/NURBS-Python/archive/v%{version}.tar.gz#/%{archivename}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM gh#orbingol/NURBS-Python#163 +Patch0: support-numpy-124.patch BuildRequires: %{python_module matplotlib >= 2.2.3} BuildRequires: %{python_module numpy >= 1.15.4} BuildRequires: %{python_module plotly} @@ -45,7 +45,7 @@ B-Spline and NURBS spline library. %prep -%setup -q -n %{archivename}-%{version} +%autosetup -p1 -n %{archivename}-%{version} %build %python_build ++++++ support-numpy-124.patch ++++++ >From 71923eeb8e8ec8e057b253a744c89d7dfa1cf89d Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" <[email protected]> Date: Sat, 4 Mar 2023 13:37:41 -0500 Subject: [PATCH] Stop using deprecated/removed np.float/np.int See: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations --- geomdl/visualization/VisMPL.py | 2 +- geomdl/visualization/VisPlotly.py | 2 +- geomdl/visualization/VisVTK.py | 26 +++++++++++++------------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/geomdl/visualization/VisMPL.py b/geomdl/visualization/VisMPL.py index a23dbba7..2dba037c 100644 --- a/geomdl/visualization/VisMPL.py +++ b/geomdl/visualization/VisMPL.py @@ -68,7 +68,7 @@ class VisConfig(vis.VisConfigAbstract): def __init__(self, **kwargs): super(VisConfig, self).__init__(**kwargs) - self.dtype = np.float + self.dtype = np.float64 self.display_ctrlpts = kwargs.get('ctrlpts', True) self.display_evalpts = kwargs.get('evalpts', True) self.display_bbox = kwargs.get('bbox', False) diff --git a/geomdl/visualization/VisPlotly.py b/geomdl/visualization/VisPlotly.py index 8dfce642..c5073410 100644 --- a/geomdl/visualization/VisPlotly.py +++ b/geomdl/visualization/VisPlotly.py @@ -58,7 +58,7 @@ class VisConfig(vis.VisConfigAbstract): """ def __init__(self, **kwargs): super(VisConfig, self).__init__(**kwargs) - self.dtype = np.float + self.dtype = np.float64 # Set Plotly custom variables self.figure_image_filename = "temp-plot.html" self.use_renderer = kwargs.get("use_renderer", False) diff --git a/geomdl/visualization/VisVTK.py b/geomdl/visualization/VisVTK.py index 9d75ec99..ae44163d 100644 --- a/geomdl/visualization/VisVTK.py +++ b/geomdl/visualization/VisVTK.py @@ -132,10 +132,10 @@ def render(self, **kwargs): # Plot control points if plot['type'] == 'ctrlpts' and self.vconf.display_ctrlpts: # Points as spheres - pts = np.array(plot['ptsarr'], dtype=np.float) + pts = np.array(plot['ptsarr'], dtype=np.float64) # Handle 2-dimensional data if pts.shape[1] == 2: - pts = np.c_[pts, np.zeros(pts.shape[0], dtype=np.float)] + pts = np.c_[pts, np.zeros(pts.shape[0], dtype=np.float64)] vtkpts = numpy_to_vtk(pts, deep=False, array_type=VTK_FLOAT) vtkpts.SetName(plot['name']) actor1 = vtkh.create_actor_pts(pts=vtkpts, color=vtkh.create_color(plot['color']), @@ -148,10 +148,10 @@ def render(self, **kwargs): # Plot evaluated points if plot['type'] == 'evalpts' and self.vconf.display_evalpts: - pts = np.array(plot['ptsarr'], dtype=np.float) + pts = np.array(plot['ptsarr'], dtype=np.float64) # Handle 2-dimensional data if pts.shape[1] == 2: - pts = np.c_[pts, np.zeros(pts.shape[0], dtype=np.float)] + pts = np.c_[pts, np.zeros(pts.shape[0], dtype=np.float64)] vtkpts = numpy_to_vtk(pts, deep=False, array_type=VTK_FLOAT) vtkpts.SetName(plot['name']) actor1 = vtkh.create_actor_polygon(pts=vtkpts, color=vtkh.create_color(plot['color']), @@ -200,14 +200,14 @@ def render(self, **kwargs): vertices = [v.data for v in plot['ptsarr'][0]] faces = [q.data for q in plot['ptsarr'][1]] # Points as spheres - pts = np.array(vertices, dtype=np.float) + pts = np.array(vertices, dtype=np.float64) vtkpts = numpy_to_vtk(pts, deep=False, array_type=VTK_FLOAT) vtkpts.SetName(plot['name']) actor1 = vtkh.create_actor_pts(pts=vtkpts, color=vtkh.create_color(plot['color']), name=plot['name'], index=plot['idx']) vtk_actors.append(actor1) # Quad mesh - lines = np.array(faces, dtype=np.int) + lines = np.array(faces, dtype=int) actor2 = vtkh.create_actor_mesh(pts=vtkpts, lines=lines, color=vtkh.create_color(plot['color']), name=plot['name'], index=plot['idx'], size=self.vconf.line_width) vtk_actors.append(actor2) @@ -218,7 +218,7 @@ def render(self, **kwargs): vtkpts = numpy_to_vtk(vertices, deep=False, array_type=VTK_FLOAT) vtkpts.SetName(plot['name']) faces = [t.data for t in plot['ptsarr'][1]] - tris = np.array(faces, dtype=np.int) + tris = np.array(faces, dtype=int) actor1 = vtkh.create_actor_tri(pts=vtkpts, tris=tris, color=vtkh.create_color(plot['color']), name=plot['name'], index=plot['idx']) vtk_actors.append(actor1) @@ -226,7 +226,7 @@ def render(self, **kwargs): # Plot trim curves if self.vconf.display_trims: if plot['type'] == 'trimcurve': - pts = np.array(plot['ptsarr'], dtype=np.float) + pts = np.array(plot['ptsarr'], dtype=np.float64) vtkpts = numpy_to_vtk(pts, deep=False, array_type=VTK_FLOAT) vtkpts.SetName(plot['name']) actor1 = vtkh.create_actor_polygon(pts=vtkpts, color=vtkh.create_color(plot['color']), @@ -269,7 +269,7 @@ def render(self, **kwargs): # Plot control points if plot['type'] == 'ctrlpts' and self.vconf.display_ctrlpts: # Points as spheres - pts = np.array(plot['ptsarr'], dtype=np.float) + pts = np.array(plot['ptsarr'], dtype=np.float64) vtkpts = numpy_to_vtk(pts, deep=False, array_type=VTK_FLOAT) vtkpts.SetName(plot['name']) temp_actor = vtkh.create_actor_pts(pts=vtkpts, color=vtkh.create_color(plot['color']), @@ -278,7 +278,7 @@ def render(self, **kwargs): # Plot evaluated points if plot['type'] == 'evalpts' and self.vconf.display_evalpts: - pts = np.array(plot['ptsarr'], dtype=np.float) + pts = np.array(plot['ptsarr'], dtype=np.float64) vtkpts = numpy_to_vtk(pts, deep=False, array_type=VTK_FLOAT) vtkpts.SetName(plot['name']) temp_actor = vtkh.create_actor_pts(pts=vtkpts, color=vtkh.create_color(plot['color']), @@ -321,7 +321,7 @@ def render(self, **kwargs): # Plot control points if plot['type'] == 'ctrlpts' and self.vconf.display_ctrlpts: # Points as spheres - pts = np.array(plot['ptsarr'], dtype=np.float) + pts = np.array(plot['ptsarr'], dtype=np.float64) vtkpts = numpy_to_vtk(pts, deep=False, array_type=VTK_FLOAT) vtkpts.SetName(plot['name']) temp_actor = vtkh.create_actor_pts(pts=vtkpts, color=vtkh.create_color(plot['color']), @@ -330,8 +330,8 @@ def render(self, **kwargs): # Plot evaluated points if plot['type'] == 'evalpts' and self.vconf.display_evalpts: - faces = np.array(plot['ptsarr'][1], dtype=np.float) - filled = np.array(plot['ptsarr'][2], dtype=np.int) + faces = np.array(plot['ptsarr'][1], dtype=np.float64) + filled = np.array(plot['ptsarr'][2], dtype=int) grid_filled = faces[filled == 1] temp_actor = vtkh.create_actor_hexahedron(grid=grid_filled, color=vtkh.create_color(plot['color']), name=plot['name'], index=plot['idx'])
