python-bokeh/python-bokeh.spec
Todd R 90ab1536e5 Accepting request 718987 from home:TheBlackCat:branches:devel:languages:python:numeric
- Update to version 1.3.0
  + bugfixes:
    * [component: bokehjs] [widgets] Bokeh datepicker value format inconsistent
    * [component: server] Bokeh charts load very slow with uncaught typeerror: in browser console
    * [component: bokehjs] [widgets] Rangeslider stuck when modified by pressing the keyboard arrows
    * [component: server] [bug] error in the bokeh --serve documentation
    * [component: bokehjs] [widgets] [bug] datatable copy-paste doesn't work with 0s present in a row
    * [component: bokehjs] [widgets] [bug] datatable copy-paste doesn't keep the order of rows after sorting
    * [component: bokehjs] [widgets] [bug] datepicker displayed value is not updating
    * [component: bokehjs] [performance] Inspection indices' filtering is very slow
    * [component: bokehjs] [widgets] [bug] "cannot read property 'style' of null" javascript error when moving slider
    * [component: bokehjs] [bug] typeerror after replacing tools on a toolbar
    * [component: bokehjs] [bug] incompatible definitions of `vbar.width` in bokeh and bokehjs
    * [component: docs] [bug] development guide missing `test` argument for conda install and pytest install failure on windows
    * [component: server] [bug] double slash before prefix in autoreload.js
    * Update docker to work with new conda and bokeh
  + features:
    * [component: bokehjs] [widgets] File open dialog
    * [API: models] [widgets] [feature request] option to collapse datatable rows
    * [component: bokehjs] Make a bokeh textinput callback responsive as text is typed
    * [component: bokehjs] Add hover support for patch, harea, and varea
    * [component: bokehjs] [feature] implement hover anchor on more glyphs
    * Let source.data accept dataframe
  + tasks:
    * [component: examples] Geojsondatasource not bringing in all attributes
    * [component: docs] [component: server] Document signed session usage
    * [component: docs] Texturerepetition missing from docs and `all`
    * [component: tests] Don't call show in tests
    * [component: bokehjs] [component: build] Bump nwmatcher from 1.4.3 to 1.4.4 in /bokehjs
    * [component: docs] Docs typo
    * [component: docs] Documentation: duplicate $name description
    * [component: docs] Fixed analysis
    * [component: build] [task] add downstream tests for pandas-bokeh
    * [component: build] Upload to s3 cdn in parallel
    * [component: docs] [docs] developer notes rendered in live docs
    * [component: docs] Typo/misspelling on mapping geo data page[bug]
    * [component: build] Fix yamlloadwarning in deps.py
    * Color regex needs raw string
    * Use sampledata.bokeh.org cdn
    * [component: docs] [docs] update links to bokehplots.com, gitter and mailing-list
    * [component: build] Exclude landing-2.0 issues from changelog for now
    * [component: bokehjs] [widgets] [feature] extend fileinput to return filename and make output clearer
    * [component: docs] Docs: update documentation urls in readme
    * [component: tests] Update dask test location
    * [component: build] [component: docs] Remove dev build installation instructions

OBS-URL: https://build.opensuse.org/request/show/718987
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-bokeh?expand=0&rev=18
2019-07-26 18:10:49 +00:00

138 lines
4.8 KiB
RPMSpec

#
# spec file for package python-bokeh
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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-%{**}}
# Tests fail due to missing git data
%bcond_with tests
Name: python-bokeh
Version: 1.3.0
Release: 0
Summary: Statistical interactive HTML plots for Python
License: BSD-3-Clause
Group: Development/Languages/Python
URL: http://bokeh.pydata.org/
Source: https://files.pythonhosted.org/packages/source/b/bokeh/bokeh-%{version}.tar.gz
BuildRequires: %{python_module Jinja2 >= 2.7}
BuildRequires: %{python_module Pillow >= 4.0}
BuildRequires: %{python_module PyYAML >= 3.10}
BuildRequires: %{python_module jupyter_ipython}
BuildRequires: %{python_module numpy >= 1.7.1}
BuildRequires: %{python_module packaging >= 16.8}
BuildRequires: %{python_module python-dateutil >= 2.1}
BuildRequires: %{python_module requests >= 1.2.3}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.5.2}
BuildRequires: %{python_module tornado >= 4.3}
BuildRequires: fdupes
# Python2 dependencies
BuildRequires: python-futures >= 3.0.3
BuildRequires: python-rpm-macros
BuildConflicts: python-buildservice-tweak
Requires: python-Jinja2 >= 2.7
Requires: python-Pillow >= 4.0
Requires: python-PyYAML >= 3.10
Requires: python-numpy >= 1.7.1
Requires: python-packaging >= 16.8
Requires: python-python-dateutil >= 2.1
Requires: python-requests >= 1.2.3
Requires: python-six >= 1.5.2
Requires: python-tornado >= 4.3
Requires(post): update-alternatives
Requires(preun): update-alternatives
Recommends: python-icalendar
Recommends: python-networkx
Recommends: python-pscript
Recommends: python-vincent
BuildArch: noarch
%if %{with tests}
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module boto}
BuildRequires: %{python_module certifi}
BuildRequires: %{python_module colorama}
BuildRequires: %{python_module jupyter_nbconvert}
BuildRequires: %{python_module jupyter_nbformat}
BuildRequires: %{python_module mock >= 1.0.1}
BuildRequires: %{python_module networkx}
BuildRequires: %{python_module pscript}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module selenium}
BuildRequires: chromedriver
%endif
%ifpython2
Requires: python-futures >= 3.0.3
%endif
%python_subpackages
%description
Bokeh is a Python interactive visualization library that targets web
browsers for presentation. It provides concise construction of
graphics in the style of D3.js, and favors delivering this capability
with interactivity over large or streaming datasets.
%prep
%setup -q -n bokeh-%{version}
sed -i 's/\r$//' examples/app/apply_theme.py
sed -i 's/\r$//' examples/reference/models/Dash.py
sed -i 's/\r$//' examples/app/apply_theme.py
sed -i 's/\r$//' examples/reference/models/Dash.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/bokeh
# Remove hidden files
%python_expand mkdir -p %{buildroot}%{_docdir}/%{$python_prefix}-bokeh
%python_expand cp -r examples %{buildroot}%{_docdir}/%{$python_prefix}-bokeh/
%python_expand rm -rf examples %{buildroot}%{_docdir}/%{$python_prefix}-bokeh/examples/*/.ipynb_checkpoints
%python_expand rm -rf examples %{buildroot}%{_docdir}/%{$python_prefix}-bokeh/examples/*/*/.ipynb_checkpoints
%python_expand %fdupes %{buildroot}%{_docdir}/%{$python_prefix}-bokeh/
# Remove test and script files
%python_expand rm -rf %{buildroot}%{$python_sitelib}/scripts/
%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests/
%if %{with tests}
%check
rm -rf build _build.*
%{python_expand rm -rf build _build.*
py.test-%{$python_bin_suffix} -s -m js -rs
py.test-%{$python_bin_suffix} -m 'not (examples or js or integration)' --cov=bokeh --cov-config=bokeh/.coveragerc -rs
py.test-%{$python_bin_suffix} -m integration -rs -v
}
%endif
%post
%python_install_alternative bokeh
%preun
%python_uninstall_alternative bokeh
%files %{python_files}
%license LICENSE.txt
%{_docdir}/%{python_prefix}-bokeh
%python_alternative %{_bindir}/bokeh
%{python_sitelib}/bokeh/
%{python_sitelib}/bokeh-%{version}-py*.egg-info
%changelog