|
 |
0e27d41 |
# Wants to download sample data, also wants firefox or geckodriver etc.
|
|
 |
0e27d41 |
# So, we skip tests and rely on upstream's CI
|
|
 |
0e27d41 |
%bcond_with tests
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
%global pypi_name bokeh
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
%global _description %{expand:
|
|
 |
0e27d41 |
Bokeh is an interactive visualization library for modern web browsers. It
|
|
 |
0e27d41 |
provides elegant, concise construction of versatile graphics, and affords
|
|
 |
0e27d41 |
high-performance interactivity over large or streaming data sets. Bokeh can help
|
|
 |
0e27d41 |
anyone who would like to quickly and easily make interactive plots, dashboards,
|
|
 |
0e27d41 |
and data applications.}
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
Name: python-%{pypi_name}
|
|
 |
699d25f |
Version: 2.3.0
|
|
 |
883749f |
Release: 11%{?dist}
|
|
 |
0e27d41 |
Summary: Interactive plots and applications in the browser from Python
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
# License breakdown: licensecheck -r . | sed '/UNKNOWN/ d' | sort -t ':' -k 2
|
|
 |
0e27d41 |
# The software is released under the BSD license, but includes files that are
|
|
 |
0e27d41 |
# independently also marked with ASL 2.0 and MIT licenses
|
|
 |
0e27d41 |
# The JS bits are npm based
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
# ASL:
|
|
 |
0e27d41 |
# bokeh/palettes.py
|
|
 |
0e27d41 |
# bokeh/server/static/lib/lib.*
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
# BSD:
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh-api.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh-api.legacy.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh-api.legacy.min.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh-api.min.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh.legacy.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh.legacy.min.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh.min.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh-tables.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh-tables.legacy.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh-widgets.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh-widgets.legacy.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh-widgets.legacy.min.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh-widgets.min.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/compiler.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/compiler/prelude.js
|
|
 |
0e27d41 |
# tests/unit/bokeh/test___init__.py
|
|
 |
0e27d41 |
# bokeh/server/static/js/lib/api/palettes.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/types/api/palettes.d.ts
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
# MIT (Expat)
|
|
 |
0e27d41 |
# bokeh/server/static/js/lib/core/util/array.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/lib/core/util/callback.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/lib/core/util/types.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/lib/core/util/wheel.js
|
|
 |
0e27d41 |
# bokeh/server/static/js/types/core/util/wheel.d.ts
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
# Multiple licenses:
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh.json: Expat License Apache License 2.0
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh-tables.legacy.min.js: Expat License BSD 3-clause "New" or "Revised" License
|
|
 |
0e27d41 |
# bokeh/server/static/js/bokeh-tables.min.js: Expat License BSD 3-clause "New" or "Revised" License
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
# Also see the breakdown in the bundled JS below
|
|
 |
0e27d41 |
# and https://github.com/bokeh/bokeh/blob/branch-2.2/bokehjs/LICENSE
|
|
 |
0e27d41 |
License: BSD and ASL 2.0 and MIT and ISC
|
|
 |
0e27d41 |
URL: https://github.com/bokeh/bokeh
|
|
 |
0e27d41 |
Source0: %pypi_source
|
|
 |
0e27d41 |
# Read package-lock.json and general list of bundled runtime libraries their versions
|
|
 |
0e27d41 |
Source1: parse-deps.py
|
|
 |
4772082 |
# From https://github.com/bokeh/bokeh/commit/865c54896e6158c1195e5ec8352f300cbf10920f
|
|
 |
4772082 |
# https://github.com/bokeh/bokeh/pull/10987
|
|
 |
4772082 |
Patch0: bokeh-pr10987-python312-configparser.patch
|
|
 |
883749f |
# https://github.com/bokeh/bokeh/commit/7047c6a90535564c9d05121fc8a095aef1de3c21
|
|
 |
883749f |
# https://github.com/bokeh/bokeh/pull/11174
|
|
 |
883749f |
Patch1: bokeh-pr11174-replace-jinja2-markup.patch
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
BuildArch: noarch
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
%description %_description
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
%package -n python3-%{pypi_name}
|
|
 |
0e27d41 |
Summary: %{summary}
|
|
 |
0e27d41 |
BuildRequires: python3-devel
|
|
 |
0e27d41 |
BuildRequires: python3-setuptools
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
###### Bundles various js bits #####
|
|
 |
0e27d41 |
# From: https://github.com/bokeh/bokeh/blob/0b9526ef553d938bf5de187e2511564c648c13bd/bokehjs/package-lock.json
|
|
 |
0e27d41 |
# using parse-deps.py
|
|
 |
0e27d41 |
# Also verify using the instructions here
|
|
 |
0e27d41 |
# https://github.com/bokeh/bokeh/blob/branch-2.2/bokehjs/LICENSE#L45
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-@bokeh/numbro) = 1.6.2
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-@bokeh/slickgrid) = 2.4.2701
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-@types/jquery) = 3.5.1
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-@types/sizzle) = 2.3.2
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-@types/slickgrid) = 2.1.30
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-choices.js) = 9.0.1
|
|
 |
0e27d41 |
# ISC
|
|
 |
0e27d41 |
Provides: bundled(nodejs-d) = 1.0.1
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-deepmerge) = 4.2.2
|
|
 |
0e27d41 |
# ISC
|
|
 |
0e27d41 |
Provides: bundled(nodejs-es5-ext) = 0.10.53
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-es6-iterator) = 2.0.3
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-es6-map) = 0.1.5
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-es6-promise) = 4.2.8
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-es6-set) = 0.1.5
|
|
 |
0e27d41 |
# ISC
|
|
 |
0e27d41 |
Provides: bundled(nodejs-es6-symbol) = 3.1.3
|
|
 |
0e27d41 |
# ISC
|
|
 |
0e27d41 |
Provides: bundled(nodejs-es6-weak-map) = 2.0.3
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-event-emitter) = 0.3.5
|
|
 |
0e27d41 |
# ISC
|
|
 |
0e27d41 |
Provides: bundled(nodejs-ext) = 1.4.0
|
|
 |
0e27d41 |
# ISC
|
|
 |
0e27d41 |
Provides: bundled(nodejs-flatbush) = 3.3.0
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-flatpickr) = 4.6.3
|
|
 |
0e27d41 |
# ISC
|
|
 |
0e27d41 |
Provides: bundled(nodejs-flatqueue) = 1.2.1
|
|
 |
0e27d41 |
# ASL 2.0
|
|
 |
0e27d41 |
Provides: bundled(nodejs-fuse.js) = 3.6.1
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-hammerjs) = 2.0.8
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-jquery-ui) = 1.12.1
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-jquery) = 3.5.1
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-js-tokens) = 4.0.0
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-loose-envify) = 1.4.0
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-mgrs) = 1.0.0
|
|
 |
0e27d41 |
# ISC
|
|
 |
0e27d41 |
Provides: bundled(nodejs-next-tick) = 1.0.0
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-nouislider) = 14.6.0
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-proj4) = 2.6.2
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-redux) = 4.0.5
|
|
 |
0e27d41 |
# BSD
|
|
 |
0e27d41 |
Provides: bundled(nodejs-sprintf-js) = 1.1.2
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-symbol-observable) = 1.2.0
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-timezone) = 1.0.23
|
|
 |
0e27d41 |
# BSD
|
|
 |
0e27d41 |
Provides: bundled(nodejs-tslib) = 1.13.0
|
|
 |
0e27d41 |
# ISC
|
|
 |
0e27d41 |
Provides: bundled(nodejs-type) = 1.2.0
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-underscore.template) = 0.1.7
|
|
 |
0e27d41 |
# MIT
|
|
 |
0e27d41 |
Provides: bundled(nodejs-wkt-parser) = 1.2.4
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
# Optional deps
|
|
 |
0e27d41 |
# https://docs.bokeh.org/en/latest/docs/installation.html#installation
|
|
 |
0e27d41 |
Recommends: %{py3_dist jupyter-core}
|
|
 |
0e27d41 |
Recommends: %{py3_dist networkx}
|
|
 |
0e27d41 |
Recommends: %{py3_dist pandas}
|
|
 |
0e27d41 |
Recommends: %{py3_dist psutil}
|
|
 |
0e27d41 |
Recommends: %{py3_dist sphinx}
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
# Bokeh will look for whatever browser is available and use that, so not adding
|
|
 |
0e27d41 |
# firefox etc to Recommends
|
|
 |
0e27d41 |
# https://docs.bokeh.org/en/latest/docs/user_guide/export.html#userguide-export
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
%if %{with tests}
|
|
 |
0e27d41 |
BuildRequires: %{py3_dist beautifulsoup4}
|
|
 |
0e27d41 |
BuildRequires: %{py3_dist flaky}
|
|
 |
0e27d41 |
BuildRequires: %{py3_dist Jinja2} >= 2.7
|
|
 |
0e27d41 |
BuildRequires: %{py3_dist mock}
|
|
 |
0e27d41 |
BuildRequires: %{py3_dist nbconvert}
|
|
 |
0e27d41 |
BuildRequires: %{py3_dist networkx}
|
|
 |
0e27d41 |
BuildRequires: %{py3_dist numpy} >= 1.11.3
|
|
 |
0e27d41 |
BuildRequires: %{py3_dist packaging} >= 16.8
|
|
 |
0e27d41 |
BuildRequires: %{py3_dist pillow} >= 7.1.0
|
|
 |
0e27d41 |
BuildRequires: %{py3_dist pytest}
|
|
 |
0e27d41 |
BuildRequires: %{py3_dist python-dateutil} >= 2.1
|
|
 |
0e27d41 |
BuildRequires: %{py3_dist PyYAML} >= 3.10
|
|
 |
0e27d41 |
BuildRequires: %{py3_dist requests}
|
|
 |
0e27d41 |
BuildRequires: %{py3_dist selenium}
|
|
 |
0e27d41 |
BuildRequires: %{py3_dist tornado} >= 5.1
|
|
 |
0e27d41 |
BuildRequires: %{py3_dist typing_extensions} >= 3.7.4
|
|
 |
0e27d41 |
%endif
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
%description -n python3-%{pypi_name} %_description
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
%prep
|
|
 |
4772082 |
%autosetup -n %{pypi_name}-%{version} -p1
|
|
 |
0e27d41 |
rm -rf %{pypi_name}.egg-info
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
%build
|
|
 |
0e27d41 |
%py3_build
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
%install
|
|
 |
0e27d41 |
%py3_install
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
# Remove zero length file
|
|
 |
0e27d41 |
rm -f %{buildroot}/%{python3_sitelib}/bokeh/server/static/.keep
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
%check
|
|
 |
0e27d41 |
%if %{with tests}
|
|
 |
0e27d41 |
# https://docs.bokeh.org/en/latest/docs/dev_guide/testing.html
|
|
 |
0e27d41 |
# skip js tests, skip selenium tests
|
|
 |
0e27d41 |
%pytest -m "not selenium" tests/unit
|
|
 |
0e27d41 |
%endif
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
%files -n python3-%{pypi_name}
|
|
 |
0e27d41 |
%license LICENSE.txt
|
|
 |
0e27d41 |
%doc README.md
|
|
 |
0e27d41 |
%{_bindir}/%{pypi_name}
|
|
 |
0e27d41 |
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
 |
0e27d41 |
%{python3_sitelib}/%{pypi_name}
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
%changelog
|
|
 |
883749f |
* Tue Jul 25 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.3.0-11
|
|
 |
883749f |
- Backport upstream patch for Jinja2 3.1 change
|
|
 |
883749f |
|
|
 |
4772082 |
* Tue Jul 25 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.3.0-10
|
|
 |
4772082 |
- Backport upstream patch for python 3.12 SafeConfigParser removal
|
|
 |
4772082 |
|
|
 |
0fede97 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-9
|
|
 |
0fede97 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
 |
0fede97 |
|
|
 |
2129376 |
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2.3.0-8
|
|
 |
2129376 |
- Rebuilt for Python 3.12
|
|
 |
2129376 |
|
|
 |
9817fe3 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-7
|
|
 |
9817fe3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
 |
9817fe3 |
|
|
 |
fe6ab22 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-6
|
|
 |
fe6ab22 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
 |
fe6ab22 |
|
|
 |
fa289b0 |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.3.0-5
|
|
 |
fa289b0 |
- Rebuilt for Python 3.11
|
|
 |
fa289b0 |
|
|
 |
06c8afb |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-4
|
|
 |
06c8afb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
 |
06c8afb |
|
|
 |
6b58ed0 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
|
|
 |
6b58ed0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
 |
6b58ed0 |
|
|
 |
da92077 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.3.0-2
|
|
 |
da92077 |
- Rebuilt for Python 3.10
|
|
 |
da92077 |
|
|
 |
699d25f |
* Sun Mar 28 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.3.0-1
|
|
 |
699d25f |
- Update to latest release
|
|
 |
699d25f |
|
|
 |
8ed09cb |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-4
|
|
 |
8ed09cb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
8ed09cb |
|
|
 |
0e27d41 |
* Fri Sep 18 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.2.1-3
|
|
 |
0e27d41 |
- Update naming scheme for bundled bits, also in script
|
|
 |
0e27d41 |
- Comment use of parse script
|
|
 |
0e27d41 |
- Correct parse script shebang
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
* Thu Sep 17 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.2.1-2
|
|
 |
0e27d41 |
- Include detailed licensing
|
|
 |
0e27d41 |
- Add optional requirements
|
|
 |
0e27d41 |
- Remove commented shebang correction command
|
|
 |
0e27d41 |
- List bundled nodejs libs with licenses
|
|
 |
0e27d41 |
- include parse script in srpm
|
|
 |
0e27d41 |
- Remove zero length files
|
|
 |
0e27d41 |
|
|
 |
0e27d41 |
* Wed Sep 16 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.2.1-1
|
|
 |
0e27d41 |
- Remove dependency generator: no longer needed since F30
|
|
 |
0e27d41 |
- Remove python provide line: no longer needed for F33+
|
|
 |
0e27d41 |
- Initial build
|