2017-09-04 12:30:51 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-bokeh
|
|
|
|
#
|
2021-02-21 23:53:46 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2017-09-04 12:30:51 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-11-01 19:00:07 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-09-04 12:30:51 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-06-08 15:35:26 +02:00
|
|
|
%define skip_python2 1
|
2021-02-21 23:53:46 +01:00
|
|
|
%define skip_python36 1
|
2021-05-28 23:00:42 +02:00
|
|
|
# tests suite disabled by default. See below.
|
2021-06-05 14:56:09 +02:00
|
|
|
%bcond_with tests
|
2017-09-04 12:30:51 +02:00
|
|
|
Name: python-bokeh
|
2021-02-27 12:43:29 +01:00
|
|
|
Version: 2.3.0
|
2017-09-04 12:30:51 +02:00
|
|
|
Release: 0
|
2018-04-13 12:49:39 +02:00
|
|
|
Summary: Statistical interactive HTML plots for Python
|
2017-09-04 12:30:51 +02:00
|
|
|
License: BSD-3-Clause
|
2019-08-16 20:18:07 +02:00
|
|
|
URL: https://github.com/bokeh/bokeh/
|
2017-09-04 12:30:51 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/b/bokeh/bokeh-%{version}.tar.gz
|
2021-02-21 23:53:46 +01:00
|
|
|
BuildRequires: %{python_module Jinja2 >= 2.7}
|
|
|
|
BuildRequires: %{python_module Pillow >= 7.1.0}
|
|
|
|
BuildRequires: %{python_module PyYAML >= 3.10}
|
2020-06-08 15:35:26 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
2021-02-21 23:53:46 +01:00
|
|
|
BuildRequires: %{python_module numpy >= 1.11.3}
|
|
|
|
BuildRequires: %{python_module packaging >= 16.8}
|
2020-06-08 15:35:26 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2021-02-21 23:53:46 +01:00
|
|
|
BuildRequires: %{python_module tornado >= 5.1}
|
2021-05-28 23:00:11 +02:00
|
|
|
BuildRequires: %{python_module typing_extensions >= 3.7.4}
|
2020-06-08 15:35:26 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-07-06 10:40:09 +02:00
|
|
|
BuildConflicts: python-buildservice-tweak
|
2018-11-01 19:00:07 +01:00
|
|
|
Requires: python-Jinja2 >= 2.7
|
2021-02-21 23:53:46 +01:00
|
|
|
Requires: python-Pillow >= 7.1.0
|
2018-11-01 19:00:07 +01:00
|
|
|
Requires: python-PyYAML >= 3.10
|
2020-06-08 15:35:26 +02:00
|
|
|
Requires: python-numpy >= 1.11.3
|
2018-11-01 19:00:07 +01:00
|
|
|
Requires: python-packaging >= 16.8
|
|
|
|
Requires: python-python-dateutil >= 2.1
|
2021-02-21 23:53:46 +01:00
|
|
|
Requires: python-tornado >= 5.1
|
2021-05-28 23:00:11 +02:00
|
|
|
Requires: python-typing_extensions >= 3.7.4
|
2018-11-01 19:00:07 +01:00
|
|
|
Requires(post): update-alternatives
|
2021-05-28 18:03:14 +02:00
|
|
|
Requires(postun):update-alternatives
|
2018-11-01 19:00:07 +01:00
|
|
|
BuildArch: noarch
|
2021-05-28 23:00:42 +02:00
|
|
|
# SECTION test requirements
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: %{python_module beautifulsoup4}
|
|
|
|
BuildRequires: %{python_module flaky}
|
|
|
|
# Note: If you manage to activate the test suite, try to patch external mock out.
|
|
|
|
BuildRequires: %{python_module mock}
|
2021-06-05 14:56:09 +02:00
|
|
|
BuildRequires: %{python_module nbconvert}
|
|
|
|
BuildRequires: %{python_module networkx}
|
2021-05-28 23:00:42 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module python-dateutil >= 2.1}
|
2021-06-05 14:56:09 +02:00
|
|
|
BuildRequires: %{python_module requests}
|
2021-05-28 23:00:42 +02:00
|
|
|
BuildRequires: %{python_module selenium}
|
|
|
|
%endif
|
|
|
|
# /SECTION
|
2017-09-04 12:30:51 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-04-13 12:49:39 +02:00
|
|
|
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.
|
2017-09-04 12:30:51 +02:00
|
|
|
|
|
|
|
%prep
|
2021-05-28 23:00:11 +02:00
|
|
|
%setup -q -n bokeh-%{version}
|
2017-09-04 12:30:51 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/bokeh
|
|
|
|
|
|
|
|
# Remove hidden files
|
2020-06-08 15:35:26 +02:00
|
|
|
%python_expand rm %{buildroot}%{$python_sitelib}/bokeh/server/static/.keep
|
2017-09-04 12:30:51 +02:00
|
|
|
|
|
|
|
# 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
|
2021-05-28 18:03:14 +02:00
|
|
|
# Running the test suite (with datafiles from the GitHub archive) fails
|
2021-02-21 23:53:46 +01:00
|
|
|
# due to missing server/client setups, chromedriver, selenium etc.
|
2021-06-05 14:56:09 +02:00
|
|
|
%pytest -k 'not (selenium or sampledata)'
|
2017-09-04 12:30:51 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative bokeh
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%python_uninstall_alternative bokeh
|
|
|
|
|
|
|
|
%files %{python_files}
|
2018-07-06 10:40:09 +02:00
|
|
|
%license LICENSE.txt
|
2020-06-08 15:35:26 +02:00
|
|
|
%doc CHANGELOG README.md
|
2017-09-04 12:30:51 +02:00
|
|
|
%python_alternative %{_bindir}/bokeh
|
|
|
|
%{python_sitelib}/bokeh/
|
2020-06-08 15:35:26 +02:00
|
|
|
%{python_sitelib}/bokeh-%{version}-py%{python_version}.egg-info
|
2017-09-04 12:30:51 +02:00
|
|
|
|
|
|
|
%changelog
|