* fix: remove numpy upper bound pin by @maartenbreddels in #1601 * fix: background color of figure was not computed properly by @maartenbreddels in #1603 * fix: axis formatting depended on initial values or changes #1541 * fix: resize not always working by @mariobuikhuizen in #1598 * Backport PR #1511 on branch 0.12.x (Fix missing interpolation options) by @meeseeksmachine in #1525 * feature: custom axis labeling from kernel side (tick_labels). by @maartenbreddels in #1526 * Backport PR #1506 on branch 0.12.x (Add +, x and . as markers) by @meeseeksmachine in #1529 * Backport PR #1505 on branch 0.12.x (Plotting Widgets) by @meeseeksmachine in #1530 * Backport PR #1539: fix: figure is not updating when margins change by @mariobuikhuizen in #1581 * Backport resize observer PR #1531 by @martinRenou in #1593 * fix: panning in a by CSS rotated plot doesn't work correctly by @mariobuikhuizen in #1585 * Fix luminowidget error for ipywidgets 7 by @martinRenou in #1523 * Exclude tests top-level package, add some JupyterLab trove classifiers by @meeseeksmachine in #1518 * Fix processPhosphorMessage for ipywidgets 7 by @meeseeksmachine in #1522 * ipywidgets 8 support by @martinRenou in #1517 * fix: line label invisible in dark theme by @meeseeksmachine in #1472 * Add default color CSS selectors to node text by OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-bqplot?expand=0&rev=29
131 lines
4.5 KiB
RPMSpec
131 lines
4.5 KiB
RPMSpec
#
|
|
# spec file for package python-bqplot
|
|
#
|
|
# 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define pyver 0.12.40
|
|
%define jupver 0.5.41
|
|
Name: python-bqplot
|
|
Version: %{pyver}
|
|
Release: 0
|
|
Summary: Interactive plotting package for the Jupyter notebook
|
|
License: Apache-2.0
|
|
URL: https://github.com/bqplot/bqplot
|
|
# bundled js stuff from PyPI sdist
|
|
Source0: https://files.pythonhosted.org/packages/source/b/bqplot/bqplot-%{pyver}.tar.gz
|
|
# tests from GitHub source
|
|
Source1: https://github.com/bqplot/bqplot/archive/refs/tags/%{pyver}.tar.gz#/bqplot-%{pyver}-gh.tar.gz
|
|
BuildRequires: %{python_module jupyter-packaging}
|
|
BuildRequires: %{python_module jupyterlab}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: jupyter-jupyterlab-filesystem >= 20211114
|
|
BuildRequires: jupyter-notebook-filesystem
|
|
BuildRequires: python-rpm-macros
|
|
Requires: jupyter-bqplot-notebook = %{jupver}
|
|
Requires: python-numpy >= 1.10.4
|
|
Requires: python-traitlets >= 4.3.0
|
|
Requires: python-traittypes >= 0.0.6
|
|
Requires: (python-ipywidgets >= 7.5.0 with python-ipywidgets < 9)
|
|
Requires: (python-pandas >= 1 with python-pandas < 3)
|
|
Provides: python-jupyter_bqplot = %{pyver}
|
|
Obsoletes: python-jupyter_bqplot < %{pyver}
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module ipywidgets >= 7.5.0 with %python-ipywidgets < 9}
|
|
BuildRequires: %{python_module nbval}
|
|
BuildRequires: %{python_module numpy >= 1.10.4}
|
|
BuildRequires: %{python_module pandas >= 1 with %python-pandas < 3}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module traitlets >= 4.3.0}
|
|
BuildRequires: %{python_module traittypes >= 0.0.6}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Plotting system for the Jupyter notebook based on the
|
|
interactive Jupyter widgets.
|
|
|
|
This package provides the python interface.
|
|
|
|
%package -n jupyter-bqplot-notebook
|
|
Version: %{jupver}
|
|
Summary: Interactive plotting package for Jupyter Notebooke
|
|
Requires: jupyter-notebook
|
|
Requires: python3-bqplot = %{pyver}
|
|
Provides: jupyter-bqplot = %{pyver}-%{release}
|
|
# the jupyter-bqplot rpm package had the python package version until 0.12.13
|
|
Obsoletes: jupyter-bqplot < %{pyver}-%{release}
|
|
|
|
%description -n jupyter-bqplot-notebook
|
|
Plotting system for the Jupyter notebook based on the
|
|
interactive Jupyter widgets.
|
|
|
|
This package provides the jupyter notebook extension.
|
|
|
|
%package -n jupyter-bqplot-jupyterlab
|
|
Version: %{jupver}
|
|
Summary: Interactive plotting package for Jupyterlab
|
|
Requires: jupyter-bqplot-notebook
|
|
Requires: jupyter-jupyterlab
|
|
|
|
%description -n jupyter-bqplot-jupyterlab
|
|
Plotting system for the Jupyter notebook based on the
|
|
interactive Jupyter widgets.
|
|
|
|
This package provides the jupyterlab extension.
|
|
|
|
%prep
|
|
%setup -q -n bqplot-%{pyver}
|
|
tar -x --strip-components=1 -f %{SOURCE1} bqplot-%{pyver}/{tests,ui-tests}
|
|
rm bqplot/install.py
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
mkdir -p %{buildroot}%{_jupyter_confdir}
|
|
cp -r etc/jupyter/* %{buildroot}%{_jupyter_confdir}/
|
|
cp -r share/ %{buildroot}%{_datadir}
|
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests
|
|
%fdupes %{buildroot}%{_jupyter_prefix}
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -c "import bqplot"
|
|
%pytest tests/
|
|
%pytest --nbval ui-tests/tests/notebooks
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/bqplot/
|
|
%{python_sitelib}/bqplot-%{pyver}.dist-info
|
|
|
|
%files -n jupyter-bqplot-notebook
|
|
%license LICENSE
|
|
%{!?_jupyter_distconfig:%config} %{_jupyter_nb_notebook_confdir}/bqplot.json
|
|
%{_jupyter_nbextension_dir}/bqplot/
|
|
|
|
%files -n jupyter-bqplot-jupyterlab
|
|
%license LICENSE
|
|
%{_jupyter_labextensions_dir3}/bqplot/
|
|
|
|
%changelog
|