Files
python-bqplot/python-bqplot.spec
Todd R b4fad542b0 Accepting request 764786 from home:TheBlackCat:branches:devel:languages:python:jupyter
- Update to 0.12.2
  * Tests: Use DOM element API for fetching the fill style
  * Hist: Add tests 
  * Hist: Add support for selected_style and unselected_style in Hist
  * Hist: Remove unused method
  * Hist: Respect the 'colors' attribute when coloring the bars
  * Hist: Use same default colors value as in Bars
  * test: background color changed due to css fix
  * test: tests should include css
  * fix: screenshot CSS was missing CSS variables
  * Refactor Figure sizing logic 
  * Cleaning Heatmap implementation
  * fix: make pan and zoom work with Logscale
  * fix: use z-index:0 for all layers to not overlap with higher z-index …
  * fix: avoids CORS error when building css for svg screenshot
  * fix: ColorScale can miss events because render does not return a Promise
  * add event listeners and classes to render tooltip for OHLC mark 
  * add labels to bar mark
  * Add TypeScript annotations, refactoring, setters/getters
  * Bump lodash from 4.17.11 to 4.17.15 in /js
  * Bump mixin-deep from 1.3.1 to 1.3.2 in /js
  * Bump js-yaml from 3.7.0 to 3.13.1 in /js

OBS-URL: https://build.opensuse.org/request/show/764786
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-bqplot?expand=0&rev=13
2020-01-15 19:12:01 +00:00

108 lines
3.5 KiB
RPMSpec

#
# spec file for package python-bqplot
#
# Copyright (c) 2020 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-bqplot
Version: 0.12.2
Release: 0
Summary: Interactive plotting package for the Jupyter notebook
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/bloomberg/bqplot
Source: https://files.pythonhosted.org/packages/source/b/bqplot/bqplot-%{version}.tar.gz
BuildRequires: %{python_module notebook}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: jupyter-bqplot = %{version}
Requires: python-ipywidgets >= 7.0.0a8
Requires: python-numpy >= 1.10.4
Requires: python-pandas
Requires: python-traitlets >= 4.3.0
Requires: python-traittypes >= 0.0.6
Provides: python-jupyter_bqplot = %{version}
Obsoletes: python-jupyter_bqplot < %{version}
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module ipywidgets >= 7.0.0a8}
BuildRequires: %{python_module numpy >= 1.10.4}
BuildRequires: %{python_module pandas}
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
Summary: Interactive plotting package for the Jupyter notebook
Requires: jupyter-notebook
Requires: python3-bqplot = %{version}
%description -n jupyter-bqplot
Plotting system for the Jupyter notebook based on the
interactive Jupyter widgets.
This package provides the jupyter notebook extension.
%prep
%setup -q -n bqplot-%{version}
%build
%python_build
%install
%python_install
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%fdupes %{buildroot}%{_jupyter_nb_notebook_confdir}
%fdupes %{buildroot}%{_jupyter_nbextension_dir}
%{python_expand sed -i -e "s|^#!%{_bindir}/env python|#!%{__$python}|" %{buildroot}%{$python_sitelib}/bqplot/install.py
chmod a+x %{buildroot}%{$python_sitelib}/bqplot/install.py
$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/bqplot/
$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/bqplot/
%python_expand %fdupes %{buildroot}%{$python_sitelib}
}
%{jupyter_move_config}
%check
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
$python -c "import bqplot"
}
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/bqplot/
%{python_sitelib}/bqplot-%{version}-py*.egg-info
%files -n jupyter-bqplot
%license LICENSE
%config %{_jupyter_nb_notebook_confdir}/bqplot.json
%{_jupyter_nbextension_dir}/bqplot/
%changelog