From 07e4e78f34b75503200d215b45ace64be13576cf686432d3afd384e0e1233f9f Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Fri, 27 Aug 2021 19:35:13 +0000 Subject: [PATCH] Accepting request 914402 from home:bnavigator:branches:devel:languages:python:numeric - Use -s in pytest call - Update to version 0.12.1 * Big Changelog since 0.11 https://github.com/holoviz/panel/blob/master/CHANGELOG.md * New Features in 0.12: Add ReactiveHTML Add Terminal Widget based on xterm.js (#2090) Adding a DatetimePicker widget (#2107, #2135) Add editable sliders (#2111, #2133, #2208) Add FlexBox layout (#2233, #2511) Add ability to configure global template (#2271) Add GridStack layout (#2375) Add PDF pane (#2444) Add /panel-preview endpoint for Jupyter server extension (#2341, #2361) Add Tqdm Indicator (#2079) * Deprecations: Remove add_periodic_callback method (#2439) Remove deprecated panel.callbacks modules Remove deprecated Ace pane and Audio Widget (#2427) Remove Progress widget docs (#2451) Tabulator no longer loaded by default, must be initialized with pn.extension('tabulator') - Add missing test data and patch * mp3.mp3 * mp4.mp4 * panel-pr2636-fixtests.patch * gh#holoviz/panel#2636 OBS-URL: https://build.opensuse.org/request/show/914402 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-panel?expand=0&rev=12 --- mp3.mp3 | Bin 0 -> 72 bytes mp4.mp4 | Bin 0 -> 262 bytes panel-0.11.1.tar.gz | 3 -- panel-0.12.1.tar.gz | 3 ++ panel-pr2636-fixtests.patch | 62 ++++++++++++++++++++++++++++++++++++ python-panel.changes | 36 +++++++++++++++++++++ python-panel.spec | 29 +++++++++++------ 7 files changed, 120 insertions(+), 13 deletions(-) create mode 100644 mp3.mp3 create mode 100644 mp4.mp4 delete mode 100644 panel-0.11.1.tar.gz create mode 100644 panel-0.12.1.tar.gz create mode 100644 panel-pr2636-fixtests.patch diff --git a/mp3.mp3 b/mp3.mp3 new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..90ad846814c9c30bf3b63219c3375ee9ead165344df86be4109bd0501ab55ecc GIT binary patch literal 72 gcmezWSmFo+0|T=MkYMm}^mR4Xv$W7N0`W)!090xPTL1t6 literal 0 HcmV?d00001 diff --git a/mp4.mp4 b/mp4.mp4 new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..f69c59d4b0cf710625a59d780edfe14849f859cea7e4ef1d4fe8dbcc00882038 GIT binary patch literal 262 zcmZQzU{FXasVvAW&d+6FU}6B#Kx~v)mTZ_?U}DI?z`&7Kl$r{nb5jyafb_N8{QNQ? zos(OZkpiTV0P_nlhmnB+h!6mU0~AK%J0MhIV=(~*lS)%c5`lD7ZYr1tsZ-2I$teOc zKp;0Ivna8kAP2&Okh+;U#UKZ(t}MyV2hy@Y_k#=pTkn%tmS$?MXJV*lXkY*U4p$`j literal 0 HcmV?d00001 diff --git a/panel-0.11.1.tar.gz b/panel-0.11.1.tar.gz deleted file mode 100644 index 1dd8cfe..0000000 --- a/panel-0.11.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce531e5c0c8a8ae74d523762aeb1666650caebbe1867aba16129d29791e921f9 -size 9641612 diff --git a/panel-0.12.1.tar.gz b/panel-0.12.1.tar.gz new file mode 100644 index 0000000..ee9d095 --- /dev/null +++ b/panel-0.12.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4898d60abdb82f8a429df7f59dbf8bcaf7e19b3e633555512ceb4ce06678458 +size 13927063 diff --git a/panel-pr2636-fixtests.patch b/panel-pr2636-fixtests.patch new file mode 100644 index 0000000..12a440f --- /dev/null +++ b/panel-pr2636-fixtests.patch @@ -0,0 +1,62 @@ +From 3c7104e5420e3bf5a5665ae84c3c731e7cf3a10b Mon Sep 17 00:00:00 2001 +From: Philipp Rudiger +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 +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 diff --git a/python-panel.changes b/python-panel.changes index 3417f07..2a39d5b 100644 --- a/python-panel.changes +++ b/python-panel.changes @@ -1,3 +1,39 @@ +------------------------------------------------------------------- +Thu Aug 26 12:28:37 UTC 2021 - Ben Greiner + +- Use -s in pytest call + +------------------------------------------------------------------- +Mon Aug 23 17:13:14 UTC 2021 - Ben Greiner + +- Update to version 0.12.1 + * Big Changelog since 0.11 + https://github.com/holoviz/panel/blob/master/CHANGELOG.md + * New Features in 0.12: + Add ReactiveHTML + Add Terminal Widget based on xterm.js (#2090) + Adding a DatetimePicker widget (#2107, #2135) + Add editable sliders (#2111, #2133, #2208) + Add FlexBox layout (#2233, #2511) + Add ability to configure global template (#2271) + Add GridStack layout (#2375) + Add PDF pane (#2444) + Add /panel-preview endpoint for Jupyter server extension + (#2341, #2361) + Add Tqdm Indicator (#2079) + * Deprecations: + Remove add_periodic_callback method (#2439) + Remove deprecated panel.callbacks modules + Remove deprecated Ace pane and Audio Widget (#2427) + Remove Progress widget docs (#2451) + Tabulator no longer loaded by default, must be initialized with + pn.extension('tabulator') +- Add missing test data and patch + * mp3.mp3 + * mp4.mp4 + * panel-pr2636-fixtests.patch + * gh#holoviz/panel#2636 + ------------------------------------------------------------------- Thu Apr 1 13:47:25 UTC 2021 - Ben Greiner diff --git a/python-panel.spec b/python-panel.spec index 17adf69..fa20e5b 100644 --- a/python-panel.spec +++ b/python-panel.spec @@ -1,5 +1,5 @@ # -# spec file for package python-panel-test +# spec file # # Copyright (c) 2021 SUSE LLC # @@ -29,22 +29,28 @@ %define skip_python36 1 %define modname panel Name: python-panel%{psuffix} -Version: 0.11.1 +Version: 0.12.1 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 +# 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 +# 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 bleach} BuildRequires: %{python_module bokeh >= 2.2.2} BuildRequires: %{python_module param >= 1.9.3} 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} +BuildRequires: %{python_module tqdm >= 4.48.0} BuildRequires: fdupes BuildRequires: jupyter-notebook-filesystem BuildRequires: nodejs @@ -56,9 +62,9 @@ BuildRequires: %{python_module holoviews} BuildRequires: %{python_module ipympl} BuildRequires: %{python_module ipython >= 7.0} BuildRequires: %{python_module nbsmoke >= 0.2.0} -BuildRequires: %{python_module pandas} +BuildRequires: %{python_module pandas >= 1.3} BuildRequires: %{python_module parameterized} -BuildRequires: %{python_module plotly} +BuildRequires: %{python_module plotly >= 4.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module scipy} BuildRequires: %{python_module streamz} @@ -73,14 +79,14 @@ Requires: python-param >= 1.9.3 Requires: python-pyct >= 0.4.4 Requires: python-pyviz-comms >= 0.7.4 Requires: python-requests -Requires: python-tqdm +Requires: python-tqdm >= 4.48.0 Requires(post): update-alternatives Requires(postun):update-alternatives Recommends: python-Pillow Recommends: python-holoviews >= 1.13.2 Recommends: python-matplotlib Recommends: python-notebook >= 5.4 -Recommends: python-plotly +Recommends: python-plotly >= 4.0 BuildArch: noarch %python_subpackages @@ -102,9 +108,11 @@ This package contains the notebook and server extension configuration common to all Python flavors. %prep -%setup -q -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. sed -i '/def _build_paneljs/ a \ return' setup.py +mkdir panel/tests/pane/assets +cp %{SOURCE1} %{SOURCE2} panel/tests/pane/assets/ %build %python_build @@ -130,12 +138,13 @@ sed -i "1{s|#!/usr/bin/env python|#!%{__$python}|}" \ %if %{with test} %check # DISABLE TESTS REQUIRING NETWORK ACCESS -donttest="test_loading_a_image_from_url or test_image_alt_text or test_image_link_url or test_vtk_pane_from_url or test_vtkjs_pane" +donttest="test_loading_a_image_from_url or test_image_alt_text or test_image_link_url or test_vtk_pane_from_url or test_vtkjs_pane or test_pdf_embed" # https://github.com/holoviz/panel/issues/2101 donttest+=" or test_record_modules_not_stdlib" # flaky async test donttest+=" or test_server_async_callbacks" -%pytest -ra -k "not ($donttest)" +# -s: some tests execute twice and fail without it (?) +%pytest -s -ra -k "not ($donttest)" %endif %post