SHA256
1
0
forked from pool/python-panel
python-panel/python-panel.spec
Atri Bhattacharya 090a41238c Accepting request 1076602 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.14.4
  ## Bugs
  * Fix Tabulator client-side string filters by not parsing them as
    regex (4423)
  * Fix the RGGPlot pane (#4380)
  * Fix panel examples command by ensuring examples are correctly
    packaged (#4484)
  * Fix event generation by considering NaNs as equal when
    comparing Numpy arrays (#4481)
  * Use cache from previous sessions when using to_disk (#4481)
  * Fix relative imports when running inside Jupyter Kernel (#4489)
  * Do not re-create Vega.selections object unless selections
    changed (#4497)
  ## Enhancements
  * Add support for altair and vega-lite v5 (#4488)
- Version 0.14.3
  * This release introduces a large number of bug fixes and minor
    enhancements. Due to the upcoming release of Panel 1.0 we have
    also made the unconventional decision to issue new deprecation
    in a micro release. Specifically the IDOM pane and Viewable.app
    and Viewable.pprint methods have been scheduled for
    deprecation. Many thanks to the contributors to this release
    which include @wendrul, @droumis and the core team
    @MarcSkovMadsen, @maximlt, @Hoxbro and @philippjfr.
  ## Bugs
  ### Tabulator
  * Ensure streamed rows on Tabulator can be edited (#4292)
  * Ensure changes on Tabulator formatter and editor models are
    reflected in frontend (#4296)
  * Ensure cancelling edit does not clear cell on Tabulator (#4343)
  * Ensure inserting empty data on numeric column in Tabulator does
    not error (#4343)
  ### Notebook
  * Fix issues rendering components as ipywidgets for some versions
    of ipykernel (#4289)
  * Add warning if custom resources could not be loaded in notebook
    (#4329)
  * Ensure notifications are enabled even if hv.extension has been
    loaded (#4330)
  * Ensure global notification object can be used inside notebook
    callbacks (#4331)
  ### Type definitions
  * Fix return type of Widget.from_param (#4335)
  * Ensure type annotation allows str and PathLike objects on
    panel.serve (#4336)
  * Fix type annotations on panel.io.convert.convert_app(s) (#4342)
  ### Misc
  * Ensure markdown links render correctly in template sidebar
    (#4222)
  * Improve .applies for ECharts and DeckGL (#4224)
  * Fix specifying custom --index with relative path (#4288)
  * Skip on_load callbacks in liveness check (#4302)
  * Ensure re-rendered FileDownload still fetches live data (#4328)
  * Fix handling of panel.cache on undecorated Parameterized method
    (#4332)
  * Ensure user provided hash_funcs are applied in panel.cache
    (#4334)
  * Fix plotly eventdata undefined val (#4355)
  * Ensure panel convert respects panel.config options (#4359)
  * Propagate options from HoloViews and Bokeh plots to enclosing
    Pane (#4360)
  * Propagate options from dynamic components such as ParamMethod
    and Interactive to enclosing layout (#4360)
  ## Minor enhancements
  * Allow to set the log level of the Admin logger (#3495)
  * Make refresh_token available in Auth (#4227)
  * Simplify determining whether script is executed as application
    with pn.state.served property (#4252)
  * Add loading_indicator to global config (#4259)
  * IPython display compatibility in pyodide builds (#4270)
  * Split PanelJupyterExecutor into separate module (#4276)
  * Allow dynamic loading of javascript modules in ReactiveHTML
    (#4319)
  * Add Plotly.link_figure parameter (#4333)
  * Ensure CrossSelector filters apply on each keystroke (#4339)
  * Improve startup, error handling and shutdown of Jupyter kernels
    in jupyter_server_extension (#4364)
  ## Compatibility and Version Updates
  * Upgrade plotly.js to 2.10.1 (#4320)
  * Upgrade to pyodide 0.22.1 in panel convert (#4334)
  * Upgrade to pyscript 2022.12.01 in panel convert (#4334)
  * Fix compatibility of Perspective pane with Numpy 1.24 (#4362)
  ## Deprecations
  * Add deprecation warning to IDOM pane (#4293)
  * Add deprecation warning for Viewable.app and Viewable.pprint
    methods (#4293, #4347)

OBS-URL: https://build.opensuse.org/request/show/1076602
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-panel?expand=0&rev=23
2023-04-02 19:06:32 +00:00

177 lines
6.0 KiB
RPMSpec

#
# spec file
#
# 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/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-panel%{psuffix}
Version: 0.14.4
Release: 0
Summary: A high level app and dashboarding solution for Python
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://panel.holoviz.org
Source: https://files.pythonhosted.org/packages/source/p/panel/panel-%{version}.tar.gz
Source99: python-panel-rpmlintrc
BuildRequires: %{python_module Markdown}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module bokeh >= 2.4.3 with %python-bokeh < 2.5}
BuildRequires: %{python_module nbval}
BuildRequires: %{python_module param >= 1.12.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyct >= 0.4.4}
BuildRequires: %{python_module pyviz-comms >= 0.7.4}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tqdm >= 4.48.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: jupyter-notebook-filesystem
BuildRequires: nodejs
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module altair}
BuildRequires: %{python_module diskcache}
BuildRequires: %{python_module flaky}
BuildRequires: %{python_module folium}
BuildRequires: %{python_module holoviews}
BuildRequires: %{python_module ipympl}
BuildRequires: %{python_module ipython >= 7.0}
BuildRequires: %{python_module markdown-it-py}
BuildRequires: %{python_module pandas >= 1.3}
BuildRequires: %{python_module parameterized}
BuildRequires: %{python_module plotly >= 4.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module scipy}
BuildRequires: %{python_module streamz}
# Tests segfault
# BuildRequires: %%{python_module vtk}
%endif
Requires: jupyter-panel
Requires: python-Markdown
Requires: python-bleach
Requires: python-param >= 1.10.0
Requires: python-pyct >= 0.4.4
Requires: python-pyviz-comms >= 0.7.4
Requires: python-requests
Requires: python-setuptools
Requires: python-tqdm >= 4.48.0
Requires: python-typing_extensions
Requires: (python-bokeh >= 2.4.3 with python-bokeh < 2.5)
Requires(post): update-alternatives
Requires(postun):update-alternatives
Recommends: python-Pillow
Recommends: python-holoviews > 1.14.1
Recommends: python-jupyterlab
Recommends: python-matplotlib
Recommends: python-plotly >= 4.0
BuildArch: noarch
%python_subpackages
%description
Panel is a Python library that lets you create custom interactive web apps and
dashboards by connecting user-defined widgets to plots, images, tables, or
text.
%package -n jupyter-panel
Summary: Jupyter notebook and server cofiguration for python-panel
Group: Development/Languages/Python
%description -n jupyter-panel
Panel is a Python library that lets you create custom interactive web apps and
dashboards by connecting user-defined widgets to plots, images, tables, or
text.
This package contains the notebook and server extension configuration common
to all Python flavors.
%prep
%autosetup -p1 -n panel-%{version}
# Do not try to rebuild the bundled npm stuff. We don't have network. Just use the shipped bundle.
sed -i '/def _build_paneljs/ a \ return' setup.py
# fix python call in test, upstream expects them to be run inside tox or venv
sed -i -e '/import ast/ a import sys' -e 's/"python",/sys.executable,/' panel/tests/test_docs.py
echo "# Empty module" >> panel/tests/io/reload_module.py
echo "# Empty module" >> examples/apps/django/sliders/models.py
%if ! %{with test}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/panel
%{python_expand #
pushd %{buildroot}%{$python_sitelib}
rm panel/dist/bundled/js/@microsoft/fast-colors@5.3.1/.prettierignore
rm panel/dist/bundled/js/@microsoft/fast-colors@5.3.1/.eslintignore
sed -i '1{s|^#!/usr/bin/env python.*|#!%{__$python}|}' panel/examples/apps/django*/manage.py
$python -m py_compile panel/examples/apps/django*/manage.py
popd
%fdupes %{buildroot}%{$python_sitelib}
}
%endif
%if %{with test}
%check
# DISABLE TESTS REQUIRING NETWORK ACCESS
donttest="test_loading_a_image_from_url"
donttest="$donttest or test_image_alt_text"
donttest="$donttest or test_image_link_url"
donttest="$donttest or test_vtk_pane_from_url"
donttest="$donttest or test_vtkjs_pane"
donttest="$donttest or test_pdf_embed"
donttest="$donttest or test_server"
donttest="$donttest or (test_markdown_codeblocks and build_app.md)"
donttest="$donttest or (test_markdown_codeblocks and APIs.md)"
# https://github.com/holoviz/panel/issues/2101
donttest="$donttest or test_record_modules_not_stdlib"
# flaky async test
donttest="$donttest or test_server_async_callbacks"
%pytest -ra -k "not ($donttest)"
%endif
%post
%python_install_alternative panel
%postun
%python_uninstall_alternative panel
%if ! %{with test}
%files %{python_files}
%license LICENSE.txt
%doc README.md
%python_alternative %{_bindir}/panel
%{python_sitelib}/panel
%{python_sitelib}/panel-%{version}.dist-info
%files -n jupyter-panel
%license LICENSE.txt
%_jupyter_config %{_jupyter_servextension_confdir}/panel-client-jupyter.json
%_jupyter_config %{_jupyter_server_confdir}/panel-client-jupyter.json
%endif
%changelog