From c9e5b1e3df03a470721da31a2518ef90125c897286b686d63947b9bd565c3c4b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 6 Mar 2024 07:01:58 +0000 Subject: [PATCH 1/2] Accepting request 1155344 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.16.0 * Lots ofchanges since 2.6.2: https://github.com/plotly/dash/compare/v2.6.2...v2.16.0 - Skip python39: plotly no longer available (due to ipython) - Add jupyter-dash package OBS-URL: https://build.opensuse.org/request/show/1155344 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-dash?expand=0&rev=7 --- dash-2.16.0.tar.gz | 3 ++ dash-2.6.2.tar.gz | 3 -- python-dash.changes | 9 ++++++ python-dash.rpmlintrc | 3 ++ python-dash.spec | 68 ++++++++++++++++++++++++++++++++++--------- 5 files changed, 70 insertions(+), 16 deletions(-) create mode 100644 dash-2.16.0.tar.gz delete mode 100644 dash-2.6.2.tar.gz create mode 100644 python-dash.rpmlintrc diff --git a/dash-2.16.0.tar.gz b/dash-2.16.0.tar.gz new file mode 100644 index 0000000..a151c03 --- /dev/null +++ b/dash-2.16.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7887998e278f6cc1b8200ec9d9d6f82b5cb599997a31723c926487a25ce52117 +size 9930544 diff --git a/dash-2.6.2.tar.gz b/dash-2.6.2.tar.gz deleted file mode 100644 index a813cc6..0000000 --- a/dash-2.6.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:00c7d1dddaf40154c0faa1f212faf8907907b8c2eb50b5d70ac8c72e51b5319d -size 9553490 diff --git a/python-dash.changes b/python-dash.changes index ce29fda..e0094fe 100644 --- a/python-dash.changes +++ b/python-dash.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Mar 5 19:40:43 UTC 2024 - Ben Greiner + +- Update to 2.16.0 + * Lots ofchanges since 2.6.2: + https://github.com/plotly/dash/compare/v2.6.2...v2.16.0 +- Skip python39: plotly no longer available (due to ipython) +- Add jupyter-dash package + ------------------------------------------------------------------- Sun Sep 25 20:21:02 UTC 2022 - Arun Persaud diff --git a/python-dash.rpmlintrc b/python-dash.rpmlintrc new file mode 100644 index 0000000..3890185 --- /dev/null +++ b/python-dash.rpmlintrc @@ -0,0 +1,3 @@ +# extra testing requirements not declared in python metadata +addFilter("python-leftover-require python.*-beautifulsoup4") +addFilter("python-leftover-require python.*-percy") diff --git a/python-dash.spec b/python-dash.spec index f7465ee..2c698f7 100644 --- a/python-dash.spec +++ b/python-dash.spec @@ -18,45 +18,65 @@ # We can't test currenty, see below. %bcond_with test +%define skip_python39 1 Name: python-dash -Version: 2.6.2 +Version: 2.16.0 Release: 0 Summary: Python framework for building reactive web-apps License: MIT URL: https://github.com/plotly/dash # PyPI package does not contain unit tests. GitHub does, but we don't test right now Source: https://files.pythonhosted.org/packages/source/d/dash/dash-%{version}.tar.gz +Source99: python-dash.rpmlintrc +BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module Flask >= 1.0.4} -BuildRequires: %{python_module Flask-Compress} BuildRequires: %{python_module dash-core-components = 2.0.0} BuildRequires: %{python_module dash-html-components = 2.0.0} BuildRequires: %{python_module dash-table = 5.0.0} BuildRequires: %{python_module percy} BuildRequires: %{python_module plotly >= 5.0.0} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module importlib-metadata} +BuildRequires: %{python_module typing-extensions >= 4.1.1} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module retrying} +BuildRequires: %{python_module nest-asyncio} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module Werkzeug} +BuildRequires: %{python_module beautifulsoup4} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: jupyter-rpm-macros Requires: python-Flask >= 1.0.4 -Requires: python-Flask-Compress -# dash/testing/dash_page.py -Requires: python-beautifulsoup4 +Requires: python-Werkzeug +Requires: python-importlib-metadata +Requires: python-typing-extensions >= 4.1.1 +Requires: python-requests +Requires: python-retrying +Requires: python-nest-asyncio +Requires: python-setuptools Requires: python-dash-core-components = 2.0.0 Requires: python-dash-html-components = 2.0.0 Requires: python-dash-table = 5.0.0 +Requires: python-plotly >= 5.0.0 +Requires: jupyter-dash = %{version}-%{release} +# SECTION testing extras +# dash/testing/dash_page.py +Requires: python-beautifulsoup4 # needed for dash/testing/browser.py Requires: python-percy -Requires: python-plotly >= 5.0.0 +# /SECTION Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch %if %{with test} -BuildRequires: %{python_module beautifulsoup4} BuildRequires: %{python_module lxml} BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest-rerunfailures} BuildRequires: %{python_module pytest-sugar} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module requests} BuildRequires: %{python_module selenium} BuildRequires: %{python_module waitress} BuildRequires: nodejs @@ -71,9 +91,24 @@ Build on top of Plotly.js, React, and Flask, Dash ties modern UI elements like dropdowns, sliders, and graphs directly to your analytical python code. +%package -n jupyter-dash +Summary: Jupyter configuration for python-dash +Requires: python3dist(dash) = %{version} +Suggests: python3-dash + +%description -n jupyter-dash + +Dash is a Python framework for building analytical web applications. + +This package provides the jupyter notebook and jupyterlab configuration +for python-dash + + %prep %setup -q -n dash-%{version} sed -i -e '/^#!\//, 1d' dash/extract-meta.js +chmod -x dash/extract-meta.js +find . -name .gitkeep -delete %build %python_build @@ -85,6 +120,12 @@ sed -i -e '/^#!\//, 1d' dash/extract-meta.js %python_clone -a %{buildroot}%{_bindir}/dash-update-components %python_expand %fdupes %{buildroot}%{$python_sitelib} +%if %{with test} +%check +# Testing needs npm install from network and packages (e.g. flask_talisman) which we don't have. +%pytest +%endif + %post %python_install_alternative renderer %python_install_alternative dash-generate-components @@ -95,11 +136,12 @@ sed -i -e '/^#!\//, 1d' dash/extract-meta.js %python_uninstall_alternative dash-generate-components %python_uninstall_alternative dash-update-components -%if %{with test} -%check -# Testing needs npm install from network and packages (e.g. flask_talisman) which we don't have. -%pytest -%endif +%files -n jupyter-dash +%doc README.md +%license LICENSE +%{?_jupyter_config} %{_jupyter_nb_notebook_confdir}/dash.json +%{_jupyter_labextensions_dir}/dash-jupyterlab.tgz +%{_jupyter_nbextension_dir}/dash/ %files %{python_files} %doc README.md From 7b58def33800a3a5cb0659b7e453ca0331274b44ad40cee86db1806358ecffc9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 6 Mar 2024 21:52:07 +0000 Subject: [PATCH 2/2] Accepting request 1155756 from home:bnavigator:branches:devel:languages:python:numeric - Fix truncated version requirement for python3dist(dash) OBS-URL: https://build.opensuse.org/request/show/1155756 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-dash?expand=0&rev=8 --- python-dash.changes | 5 +++++ python-dash.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/python-dash.changes b/python-dash.changes index e0094fe..bc357c3 100644 --- a/python-dash.changes +++ b/python-dash.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 6 21:03:36 UTC 2024 - Ben Greiner + +- Fix truncated version requirement for python3dist(dash) + ------------------------------------------------------------------- Tue Mar 5 19:40:43 UTC 2024 - Ben Greiner diff --git a/python-dash.spec b/python-dash.spec index 2c698f7..053c1a8 100644 --- a/python-dash.spec +++ b/python-dash.spec @@ -19,6 +19,7 @@ # We can't test currenty, see below. %bcond_with test %define skip_python39 1 +%define distver 2.16 Name: python-dash Version: 2.16.0 Release: 0 @@ -93,7 +94,7 @@ analytical python code. %package -n jupyter-dash Summary: Jupyter configuration for python-dash -Requires: python3dist(dash) = %{version} +Requires: python3dist(dash) = %{distver} Suggests: python3-dash %description -n jupyter-dash