Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pythreejs for openSUSE:Factory checked in at 2021-02-10 21:30:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pythreejs (Old) and /work/SRC/openSUSE:Factory/.python-pythreejs.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pythreejs" Wed Feb 10 21:30:07 2021 rev:5 rq:868945 version:unknown Changes: -------- --- /work/SRC/openSUSE:Factory/python-pythreejs/python-pythreejs.changes 2020-01-16 18:20:26.696947800 +0100 +++ /work/SRC/openSUSE:Factory/.python-pythreejs.new.28504/python-pythreejs.changes 2021-02-10 21:30:09.614264763 +0100 @@ -1,0 +2,10 @@ +Tue Feb 2 23:22:43 UTC 2021 - Ben Greiner <c...@bnavigator.de> + +- Update to 2.2.1 with 2.2.0 jupyterlab extension + * no upstream changelog +- Use new wheel path for pyproject_install +- Enable test suite by getting the examples from GitHub +- Deselect some examples on python36, because the examples depend + on packages following NEP 29. + +------------------------------------------------------------------- Old: ---- pythreejs-2.1.1-py2.py3-none-any.whl New: ---- pythreejs-2.2.1-gh.tar.gz pythreejs-2.2.1-py2.py3-none-any.whl ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pythreejs.spec ++++++ --- /var/tmp/diff_new_pack.LlD3jW/_old 2021-02-10 21:30:11.382267321 +0100 +++ /var/tmp/diff_new_pack.LlD3jW/_new 2021-02-10 21:30:11.386267326 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pythreejs # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -17,33 +17,41 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-pythreejs -%define mainver 2.1.1 -%define labver 2.1.1 %define skip_python2 1 +%define mainver 2.2.1 +%define labver 2.2.0 +Name: python-pythreejs Version: %{mainver} Release: 0 Summary: A Python/ThreeJS bridge utilizing the Jupyter widget infrastructure License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/jupyter-widgets/pythreejs -Source: https://files.pythonhosted.org/packages/py2.py3/p/pythreejs/pythreejs-%{mainver}-py2.py3-none-any.whl +# Get examples for testing from GitHub +Source0: https://github.com/jupyter-widgets/pythreejs/archive/%{version}.tar.gz#/pythreejs-%{version}-gh.tar.gz +# but install from wheel for bundles js stuff +Source1: https://files.pythonhosted.org/packages/py2.py3/p/pythreejs/pythreejs-%{version}-py2.py3-none-any.whl BuildRequires: %{python_module notebook} BuildRequires: %{python_module pip} -BuildRequires: jupyter-jupyterlab-filesystem BuildRequires: fdupes +BuildRequires: jupyter-jupyterlab-filesystem BuildRequires: python-rpm-macros -Requires: jupyter-pythreejs = %{mainver} -Requires: python-ipywidgets >= 7.2.1 +Recommends: jupyter-pythreejs-jupyterlab = %{labver} +Requires: jupyter-pythreejs = %{version} Requires: python-ipydatawidgets >= 1.1.1 +Requires: python-ipywidgets >= 7.2.1 Requires: python-numpy >= 1.14 BuildArch: noarch -# SECTION test requirements -BuildRequires: %{python_module ipywidgets >= 7.2.1} +# SECTION test requirements -- don't pull in python36 packages following NEP 29 BuildRequires: %{python_module ipydatawidgets >= 1.1.1} -BuildRequires: %{python_module numpy >= 1.14} +BuildRequires: %{python_module ipywebrtc} +BuildRequires: %{python_module ipywidgets >= 7.2.1} +BuildRequires: %{python_module matplotlib if %python-base >= 3.7} BuildRequires: %{python_module nbval} +BuildRequires: %{python_module numpy >= 1.14 if %python-base >= 3.7} BuildRequires: %{python_module pytest-check-links} +BuildRequires: %{python_module scikit-image if %python-base >= 3.7} +BuildRequires: %{python_module scipy if %python-base >= 3.7} # /SECTION %python_subpackages @@ -55,8 +63,9 @@ %package -n jupyter-pythreejs Summary: A Python/ThreeJS bridge utilizing the Jupyter widget infrastructure -Requires: jupyter-ipywidgets >= 7.2.1 +Group: Development/Languages/Python Requires: jupyter-ipydatawidgets >= 1.1.1 +Requires: jupyter-ipywidgets >= 7.2.1 Requires: jupyter-notebook Requires: python3-pythreejs = %{mainver} @@ -68,7 +77,9 @@ %package -n jupyter-pythreejs-jupyterlab Summary: A Python/ThreeJS bridge utilizing the Jupyter widget infrastructure +Group: Development/Languages/Python Version: %{labver} +Release: 0 Requires: jupyter-ipydatawidgets-jupyterlab >= 1.1.1 Requires: jupyter-jupyterlab Requires: python3-pythreejs = %{mainver} @@ -80,26 +91,32 @@ This package provides the JupyterLab extension. %prep -%setup -q -c -T +%setup -q -n pythreejs-%{mainver} %build # Not Needed %install -cp -a %{SOURCE0} . +%{python_expand mkdir -p build/; cp -a %{SOURCE1} build/} %pyproject_install %python_expand sed -i 's/\r$//' %{buildroot}%{$python_sitelib}/pythreejs/*.py %python_expand sed -i -e '/^#!\//, 1d' %{buildroot}%{$python_sitelib}/pythreejs/*.py +%python_compileall %python_expand %fdupes %{buildroot}%{$python_sitelib} -%{jupyter_move_config} +%jupyter_move_config cp %{buildroot}%{python3_sitelib}/pythreejs-%{mainver}.dist-info/LICENSE . -%{fdupes %{buildroot}%{_jupyter_prefix} %{buildroot}%{python3_sitelib}} +%fdupes %{buildroot}%{_jupyter_prefix} %{buildroot}%{python3_sitelib} + +%check +# these require packages from the NEP 29 family (Python > 3.6) +python36_donttest="Examples.ipynb or Picker.ipynb or superellipsoid.ipynb" +%pytest -l --nbval-lax --current-env examples ${$python_donttest:+ -k "not (${$python_donttest})"} %files %{python_files} +%license LICENSE %{python_sitelib}/pythreejs/ %{python_sitelib}/pythreejs-%{mainver}.dist-info/ -%license %{python_sitelib}/pythreejs-%{mainver}.dist-info/LICENSE %files -n jupyter-pythreejs %license LICENSE