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 2021-02-23 20:20:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-geomdl (Old) and /work/SRC/openSUSE:Factory/.python-geomdl.new.2378 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-geomdl" Tue Feb 23 20:20:42 2021 rev:3 rq:874317 version:5.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-geomdl/python-geomdl.changes 2020-11-13 18:59:55.238170663 +0100 +++ /work/SRC/openSUSE:Factory/.python-geomdl.new.2378/python-geomdl.changes 2021-02-23 20:22:25.943763254 +0100 @@ -1,0 +2,8 @@ +Sun Feb 21 18:19:09 UTC 2021 - andy great <andythe_gr...@pm.me> + +- Skip python36. +- Update to version 5.3.1. + * Fix Evaluate Curves and Surfaces outside domain limits + * Jupyter and Plotly renderer support + +------------------------------------------------------------------- Old: ---- NURBS-Python-5.3.0.tar.gz New: ---- NURBS-Python-5.3.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-geomdl.spec ++++++ --- /var/tmp/diff_new_pack.5PBc48/_old 2021-02-23 20:22:26.755763973 +0100 +++ /var/tmp/diff_new_pack.5PBc48/_new 2021-02-23 20:22:26.759763976 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-geomdl # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,9 +18,10 @@ %define archivename NURBS-Python %define packagename geomdl +%define skip_python36 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-geomdl -Version: 5.3.0 +Version: 5.3.1 Release: 0 Summary: Object-oriented B-Spline and NURBS evaluation library License: MIT ++++++ NURBS-Python-5.3.0.tar.gz -> NURBS-Python-5.3.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/NURBS-Python-5.3.0/CONTRIBUTORS.rst new/NURBS-Python-5.3.1/CONTRIBUTORS.rst --- old/NURBS-Python-5.3.0/CONTRIBUTORS.rst 2020-08-06 08:05:59.000000000 +0200 +++ new/NURBS-Python-5.3.1/CONTRIBUTORS.rst 2021-01-23 07:37:23.000000000 +0100 @@ -1,16 +1,8 @@ -The author (`@orbingol <https://github.com/orbingol>`_) would like to thank the following contributors for their help -and support in testing, bug fixing and improvement of the NURBS-Python (geomdl) project. +The author (`@orbingol <https://github.com/orbingol>`_) would like to thank all the contributors for their help +and support in testing, bug fixing and improvement of the NURBS-Python (geomdl) project and its sub-projects. -* Luke Frisken (`@kellpossible <https://github.com/kellpossible>`_) -* John-Eric Dufour (`@jedufour <https://github.com/jedufour>`_) -* Jan Heczko (`@heczis <https://github.com/heczis>`_) -* Pavel Vlasanek (`@tucna <https://github.com/tucna>`_) -* Xuefeng Zhao -* Hugo Rambure (`@Nodli <https://github.com/Nodli>`_) -* Chris Arthurs (`@carthurs <https://github.com/carthurs>`_) -* Chris Horler (`@cshorler <https://github.com/cshorler>`_) - -The author (`@orbingol <https://github.com/orbingol>`_) also acknowledges the following professors: +The author (`@orbingol <https://github.com/orbingol>`_) also acknowledges the following professors from +`Iowa State University Department of Mechanical Engineering <https://www.me.iastate.edu/>`_ * `Dr. Adarsh Krishnamurthy <https://web.me.iastate.edu/idealab>`_ * `Dr. Ming-Chen Hsu <https://web.me.iastate.edu/jmchsu>`_ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/NURBS-Python-5.3.0/build_manylinux1_32.sh new/NURBS-Python-5.3.1/build_manylinux1_32.sh --- old/NURBS-Python-5.3.0/build_manylinux1_32.sh 2020-08-06 08:05:59.000000000 +0200 +++ new/NURBS-Python-5.3.1/build_manylinux1_32.sh 1970-01-01 01:00:00.000000000 +0100 @@ -1,19 +0,0 @@ -#!/bin/bash - -# Builds "manylinux1" packages for geomdl -# Setup Docker: http://support.divio.com/local-development/docker/how-to-use-a-directory-outside-cusers-with-docker-toolboxdocker-for-windows -# Run Docker: docker run -it -v /home/docker/projects:/io quay.io/pypa/manylinux1_i686 /bin/bash - -MODULE_NAME="geomdl" -PLATFORM_NAME="linux_i686" -PYTHON_VERSIONS="cp27-cp27m cp35-cp35m cp36-cp36m cp37-cp37m" -GIT_TAG_FULL=`git describe --tags` -GIT_TAG="${GIT_TAG_FULL:1}" - -for pyver in $PYTHON_VERSIONS -do - /opt/python/$pyver/bin/pip install cython - /opt/python/$pyver/bin/python setup.py bdist_wheel --use-cython - auditwheel repair dist/$MODULE_NAME-$GIT_TAG-$pyver-$PLATFORM_NAME.whl - /opt/python/$pyver/bin/python setup.py clean --all -done diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/NURBS-Python-5.3.0/build_manylinux1_64.sh new/NURBS-Python-5.3.1/build_manylinux1_64.sh --- old/NURBS-Python-5.3.0/build_manylinux1_64.sh 2020-08-06 08:05:59.000000000 +0200 +++ new/NURBS-Python-5.3.1/build_manylinux1_64.sh 1970-01-01 01:00:00.000000000 +0100 @@ -1,19 +0,0 @@ -#!/bin/bash - -# Builds "manylinux1" packages for geomdl -# Setup Docker: http://support.divio.com/local-development/docker/how-to-use-a-directory-outside-cusers-with-docker-toolboxdocker-for-windows -# Run Docker: docker run -it -v /home/docker/projects:/io quay.io/pypa/manylinux1_x86_64 /bin/bash - -MODULE_NAME="geomdl" -PLATFORM_NAME="linux_x86_64" -PYTHON_VERSIONS="cp27-cp27m cp35-cp35m cp36-cp36m cp37-cp37m" -GIT_TAG_FULL=`git describe --tags` -GIT_TAG="${GIT_TAG_FULL:1}" - -for pyver in $PYTHON_VERSIONS -do - /opt/python/$pyver/bin/pip install cython - /opt/python/$pyver/bin/python setup.py bdist_wheel --use-cython - auditwheel repair dist/$MODULE_NAME-$GIT_TAG-$pyver-$PLATFORM_NAME.whl - /opt/python/$pyver/bin/python setup.py clean --all -done diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/NURBS-Python-5.3.0/build_manylinux2014_x86-32.sh new/NURBS-Python-5.3.1/build_manylinux2014_x86-32.sh --- old/NURBS-Python-5.3.0/build_manylinux2014_x86-32.sh 1970-01-01 01:00:00.000000000 +0100 +++ new/NURBS-Python-5.3.1/build_manylinux2014_x86-32.sh 2021-01-23 07:37:23.000000000 +0100 @@ -0,0 +1,23 @@ +#!/bin/bash + +# Builds "manylinux2014" packages for geomdl +# How-to build: +# 1) Run Docker: docker run -it -v {local dir}:/project quay.io/pypa/manylinux2014_i686 /bin/bash +# 2) {local dir} is the directory of the geomdl project +# 3) Change directory inside container prompt: cd /project +# 4) Run script ./build_manylinux2014_x86-32.sh +# + +MODULE_NAME="geomdl" +PLATFORM_NAME="linux_i686" +PYTHON_VERSIONS="cp36-cp36m cp37-cp37m cp38-cp38m" +GIT_TAG_FULL=`git describe --tags` +GIT_TAG="${GIT_TAG_FULL:1}" + +for pyver in $PYTHON_VERSIONS +do + /opt/python/$pyver/bin/pip install cython + /opt/python/$pyver/bin/python setup.py bdist_wheel --use-cython + auditwheel repair dist/$MODULE_NAME-$GIT_TAG-$pyver-$PLATFORM_NAME.whl + /opt/python/$pyver/bin/python setup.py clean --all +done diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/NURBS-Python-5.3.0/build_manylinux2014_x86-64.sh new/NURBS-Python-5.3.1/build_manylinux2014_x86-64.sh --- old/NURBS-Python-5.3.0/build_manylinux2014_x86-64.sh 1970-01-01 01:00:00.000000000 +0100 +++ new/NURBS-Python-5.3.1/build_manylinux2014_x86-64.sh 2021-01-23 07:37:23.000000000 +0100 @@ -0,0 +1,23 @@ +#!/bin/bash + +# Builds "manylinux2014" packages for geomdl +# How-to build: +# 1) Run Docker: docker run -it -v {local dir}:/project quay.io/pypa/manylinux2014_x86_64 /bin/bash +# 2) {local dir} is the directory of the geomdl project +# 3) Change directory inside container prompt: cd /project +# 4) Run script ./build_manylinux2014_x86-64.sh +# + +MODULE_NAME="geomdl" +PLATFORM_NAME="linux_x86_64" +PYTHON_VERSIONS="cp36-cp36m cp37-cp37m cp38-cp38m" +GIT_TAG_FULL=`git describe --tags` +GIT_TAG="${GIT_TAG_FULL:1}" + +for pyver in $PYTHON_VERSIONS +do + /opt/python/$pyver/bin/pip install cython + /opt/python/$pyver/bin/python setup.py bdist_wheel --use-cython + auditwheel repair dist/$MODULE_NAME-$GIT_TAG-$pyver-$PLATFORM_NAME.whl + /opt/python/$pyver/bin/python setup.py clean --all +done diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/NURBS-Python-5.3.0/geomdl/__init__.py new/NURBS-Python-5.3.1/geomdl/__init__.py --- old/NURBS-Python-5.3.0/geomdl/__init__.py 2020-08-06 08:05:59.000000000 +0200 +++ new/NURBS-Python-5.3.1/geomdl/__init__.py 2021-01-23 07:37:23.000000000 +0100 @@ -5,7 +5,7 @@ """ # Library version -__version__ = "5.3.0" +__version__ = "5.3.1" # Author and license __author__ = "Onur Rauf Bingol" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/NURBS-Python-5.3.0/geomdl/helpers.py new/NURBS-Python-5.3.1/geomdl/helpers.py --- old/NURBS-Python-5.3.0/geomdl/helpers.py 2020-08-06 08:05:59.000000000 +0200 +++ new/NURBS-Python-5.3.1/geomdl/helpers.py 2021-01-23 07:37:23.000000000 +0100 @@ -84,7 +84,7 @@ :return: knot span :rtype: int """ - span = 0 # Knot span index starts from zero + span = degree + 1 # Knot span index starts from zero while span < num_ctrlpts and knot_vector[span] <= knot: span += 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/NURBS-Python-5.3.0/geomdl/visualization/VisPlotly.py new/NURBS-Python-5.3.1/geomdl/visualization/VisPlotly.py --- old/NURBS-Python-5.3.0/geomdl/visualization/VisPlotly.py 2020-08-06 08:05:59.000000000 +0200 +++ new/NURBS-Python-5.3.1/geomdl/visualization/VisPlotly.py 2021-01-23 07:37:23.000000000 +0100 @@ -7,6 +7,7 @@ """ +import sys from . import vis import numpy as np from plotly import graph_objs @@ -60,6 +61,7 @@ self.dtype = np.float # Set Plotly custom variables self.figure_image_filename = "temp-plot.html" + self.use_renderer = kwargs.get("use_renderer", False) # Get keyword arguments self.display_ctrlpts = kwargs.get('ctrlpts', True) @@ -73,6 +75,10 @@ self.trim_size = kwargs.get('trim_size', 1) self.line_width = kwargs.get('line_width', 2) + # https://stackoverflow.com/a/37661854/3345747 + def in_notebook(self): + return 'ipykernel' in sys.modules + class VisCurve2D(vis.VisAbstract): """ Plotly visualization module for 2D curves. """ @@ -178,7 +184,9 @@ fig_display = kwargs.get('display_plot', True) # Display the plot - if fig_display: + if self.vconf.in_notebook() or self.vconf.use_renderer: + fig.show() + elif fig_display: fig.write_html(file=self.vconf.figure_image_filename if fig_filename is None else fig_filename) else: fig.write_image(file=self.vconf.figure_image_filename if fig_filename is None else fig_filename) @@ -315,7 +323,9 @@ fig_display = kwargs.get('display_plot', True) # Display the plot - if fig_display: + if self.vconf.in_notebook() or self.vconf.use_renderer: + fig.show() + elif fig_display: fig.write_html(file=self.vconf.figure_image_filename if fig_filename is None else fig_filename) else: fig.write_image(file=self.vconf.figure_image_filename if fig_filename is None else fig_filename) @@ -473,7 +483,9 @@ fig_display = kwargs.get('display_plot', True) # Display the plot - if fig_display: + if self.vconf.in_notebook() or self.vconf.use_renderer: + fig.show() + elif fig_display: fig.write_html(file=self.vconf.figure_image_filename if fig_filename is None else fig_filename) else: fig.write_image(file=self.vconf.figure_image_filename if fig_filename is None else fig_filename) @@ -602,7 +614,9 @@ fig_display = kwargs.get('display_plot', True) # Display the plot - if fig_display: + if self.vconf.in_notebook() or self.vconf.use_renderer: + fig.show() + elif fig_display: fig.write_html(file=self.vconf.figure_image_filename if fig_filename is None else fig_filename) else: fig.write_image(file=self.vconf.figure_image_filename if fig_filename is None else fig_filename)