SHA256
1
0
forked from pool/python-panel

Accepting request 920135 from home:badshah400:branches:devel:languages:python:numeric

OBS-URL: https://build.opensuse.org/request/show/920135
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-panel?expand=0&rev=13
This commit is contained in:
Atri Bhattacharya 2021-09-22 09:39:26 +00:00 committed by Git OBS Bridge
parent 07e4e78f34
commit 1a211b644f
7 changed files with 49 additions and 78 deletions

BIN
mp3.mp3

Binary file not shown.

BIN
mp4.mp4

Binary file not shown.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e4898d60abdb82f8a429df7f59dbf8bcaf7e19b3e633555512ceb4ce06678458
size 13927063

3
panel-0.12.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c7e4049b457af6dd548806db3fee593b05a67a14d1f4596ce888217f2a712281
size 13980770

View File

@ -1,62 +0,0 @@
From 3c7104e5420e3bf5a5665ae84c3c731e7cf3a10b Mon Sep 17 00:00:00 2001
From: Philipp Rudiger <prudiger@anaconda.com>
Date: Mon, 16 Aug 2021 15:05:10 +0200
Subject: [PATCH 1/2] Ensure tests pass in packaged version
---
MANIFEST.in | 2 ++
panel/tests/pane/test_base.py | 5 ++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/MANIFEST.in b/MANIFEST.in
index b0d5d242d7..2b323f506b 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -11,6 +11,8 @@ include panel/models/vtk/*.ts
include panel/_templates/*.js
include panel/_templates/*.html
include panel/tests/test_data/*.png
+include panel/tests/pane/assets/*.mp3
+include panel/tests/pane/assets/*.mp4
recursive-include panel/template *.html
recursive-include panel/template *.css
recursive-include panel/template *.js
diff --git a/panel/tests/pane/test_base.py b/panel/tests/pane/test_base.py
index 32f9f9dfc2..1ffc078014 100644
--- a/panel/tests/pane/test_base.py
+++ b/panel/tests/pane/test_base.py
@@ -33,7 +33,10 @@ def test_pane_layout_properties(pane, document, comm):
@pytest.mark.parametrize('pane', all_panes+[Bokeh])
def test_pane_linkable_params(pane):
- p = pane()
+ try:
+ p = pane()
+ except ImportError:
+ pytest.skip("Dependent library could not be imported.")
controls = p.controls(jslink=True)
layout = Row(p, controls)
From 8ad7606eda22875cc7e24b855273c25ccec5e147 Mon Sep 17 00:00:00 2001
From: Philipp Rudiger <prudiger@anaconda.com>
Date: Mon, 16 Aug 2021 15:49:42 +0200
Subject: [PATCH 2/2] Update plotly test
---
panel/tests/pane/test_plotly.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/panel/tests/pane/test_plotly.py b/panel/tests/pane/test_plotly.py
index a71b75009e..5c56eeecfa 100644
--- a/panel/tests/pane/test_plotly.py
+++ b/panel/tests/pane/test_plotly.py
@@ -92,7 +92,7 @@ def test_plotly_pane_datetime_array_transform(document, comm):
pane = Plotly(fig)
model = pane.get_root(document, comm)
- assert all(isinstance(v, str) for v in model.data[0]['x'])
+ assert model.data_sources[0].data['x'][0].dtype.kind == 'U'
@plotly_available

View File

@ -1,3 +1,42 @@
-------------------------------------------------------------------
Sun Sep 19 10:09:33 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Add missing bleach runtime dependency
-------------------------------------------------------------------
Sat Sep 18 17:47:51 UTC 2021 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 0.12.3:
* Patch Bokeh to fix show() (gh#holoviz/panel#2748).
- Changes from version 0.12.2:
* Enhancements:
- Add option to hide constant parameters on Param pane
(gh#holoviz/panel#2637).
- Added on_session_destroyed callback (gh#holoviz/panel#2659).
- Stricter validation for linking syntax in
ReactiveHTML._template (gh#holoviz/panel#2689).
* Bug fixes:
- Improved thread safety (gh#holoviz/panel#2631).
- Ensure sessions get distinct files in config
(gh#holoviz/panel#2646).
- Fix bug when updating Trend data (gh#holoviz/panel#2647).
- Ensure sorters are applied correctly after updating
Tabulator value (gh#holoviz/panel#2639).
- Correctly reflect filtered data on Tabulator.selection
(gh#holoviz/panel#2676).
- Unescape child literal HTML in ReactiveHTML
(gh#holoviz/panel#2690).
- Ensure Trend indicator can be rendered in layout
(gh#holoviz/panel#2694).
* Documentation:
- Enhance templates docs (gh#holoviz/panel#2658).
- Add Folium reference notebook (gh#holoviz/panel#2672).
* Compatibility:
- Add support for bokeh 2.4 (gh#holoviz/panel#2644,
gh#holoviz/panel#2687, gh#holoviz/panel#2696).
- Drop mp3.mp3, mp4.mp4 as Sources and
panel-pr2636-fixtests.patch: upstream PR merged.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 26 12:28:37 UTC 2021 - Ben Greiner <code@bnavigator.de> Thu Aug 26 12:28:37 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@ -29,23 +29,18 @@
%define skip_python36 1 %define skip_python36 1
%define modname panel %define modname panel
Name: python-panel%{psuffix} Name: python-panel%{psuffix}
Version: 0.12.1 Version: 0.12.3
Release: 0 Release: 0
Summary: A high level app and dashboarding solution for Python Summary: A high level app and dashboarding solution for Python
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://panel.holoviz.org URL: https://panel.holoviz.org
Source: https://files.pythonhosted.org/packages/source/p/panel/panel-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/panel/panel-%{version}.tar.gz
# upstream forgot to package test files for 0.12.1 (See Patch1)
Source1: https://github.com/holoviz/panel/raw/v%{version}/panel/tests/pane/assets/mp3.mp3
Source2: https://github.com/holoviz/panel/raw/v%{version}/panel/tests/pane/assets/mp4.mp4
Source99: python-panel-rpmlintrc Source99: python-panel-rpmlintrc
# PATCH-FIX-UPSTREAM panel-pr2636-fixtests.patch -- gh#holoviz/panel#2636
Patch1: https://github.com/holoviz/panel/pull/2636.patch#/panel-pr2636-fixtests.patch
BuildRequires: %{python_module Markdown} BuildRequires: %{python_module Markdown}
BuildRequires: %{python_module bleach} BuildRequires: %{python_module bleach}
BuildRequires: %{python_module bokeh >= 2.2.2} BuildRequires: %{python_module bokeh >= 2.4.0}
BuildRequires: %{python_module param >= 1.9.3} BuildRequires: %{python_module param >= 1.10.0}
BuildRequires: %{python_module pyct >= 0.4.4} BuildRequires: %{python_module pyct >= 0.4.4}
BuildRequires: %{python_module pyviz-comms >= 0.7.4} BuildRequires: %{python_module pyviz-comms >= 0.7.4}
BuildRequires: %{python_module requests} BuildRequires: %{python_module requests}
@ -74,8 +69,9 @@ BuildRequires: %{python_module twine}
%endif %endif
Requires: jupyter-panel Requires: jupyter-panel
Requires: python-Markdown Requires: python-Markdown
Requires: python-bokeh >= 2.2.2 Requires: python-bleach
Requires: python-param >= 1.9.3 Requires: python-bokeh >= 2.4.0
Requires: python-param >= 1.10.0
Requires: python-pyct >= 0.4.4 Requires: python-pyct >= 0.4.4
Requires: python-pyviz-comms >= 0.7.4 Requires: python-pyviz-comms >= 0.7.4
Requires: python-requests Requires: python-requests
@ -83,7 +79,7 @@ Requires: python-tqdm >= 4.48.0
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun):update-alternatives Requires(postun):update-alternatives
Recommends: python-Pillow Recommends: python-Pillow
Recommends: python-holoviews >= 1.13.2 Recommends: python-holoviews > 1.14.1
Recommends: python-matplotlib Recommends: python-matplotlib
Recommends: python-notebook >= 5.4 Recommends: python-notebook >= 5.4
Recommends: python-plotly >= 4.0 Recommends: python-plotly >= 4.0
@ -111,8 +107,6 @@ to all Python flavors.
%autosetup -p1 -n panel-%{version} %autosetup -p1 -n panel-%{version}
# Do not try to rebuild the bundled npm stuff. We don't have network. Just use the shipped bundle. # 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 sed -i '/def _build_paneljs/ a \ return' setup.py
mkdir panel/tests/pane/assets
cp %{SOURCE1} %{SOURCE2} panel/tests/pane/assets/
%build %build
%python_build %python_build