Accepting request 868945 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/868945 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pythreejs?expand=0&rev=5
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 2 23:22:43 UTC 2021 - Ben Greiner <code@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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 11 13:59:18 UTC 2020 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
|
||||
@@ -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-%{**}}
|
||||
%define skip_python2 1
|
||||
%define mainver 2.2.1
|
||||
%define labver 2.2.0
|
||||
Name: python-pythreejs
|
||||
%define mainver 2.1.1
|
||||
%define labver 2.1.1
|
||||
%define skip_python2 1
|
||||
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 @@ This package provides the python interface.
|
||||
|
||||
%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 @@ This package provides the jupyter notebook extension.
|
||||
|
||||
%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 @@ using Three.js from Jupyter interactive widgets.
|
||||
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
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:aa11d7f2f6864b3c0491db0831d12396be284cfedb34a61fbe2bf8083f612924
|
||||
size 4205899
|
||||
3
pythreejs-2.2.1-gh.tar.gz
Normal file
3
pythreejs-2.2.1-gh.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bf4a07000deae5c9ca163bbb4a2dde33766c991a2b05a9527c2aeae4c500b388
|
||||
size 1554571
|
||||
3
pythreejs-2.2.1-py2.py3-none-any.whl
Normal file
3
pythreejs-2.2.1-py2.py3-none-any.whl
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:73dd43946c5c042a2fea8cfcdc6ddd6723c0d281c4fa9c9efd1ffde554ba6371
|
||||
size 3308702
|
||||
Reference in New Issue
Block a user