15
0
forked from pool/python-dash

Accepting request 1155757 from devel:languages:python:numeric

OBS-URL: https://build.opensuse.org/request/show/1155757
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=17
This commit is contained in:
2024-03-07 17:28:33 +00:00
committed by Git OBS Bridge
5 changed files with 76 additions and 16 deletions

3
dash-2.16.0.tar.gz Normal file
View File

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

View File

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

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Wed Mar 6 21:03:36 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Fix truncated version requirement for python3dist(dash)
-------------------------------------------------------------------
Tue Mar 5 19:40:43 UTC 2024 - Ben Greiner <code@bnavigator.de>
- 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 <arun@gmx.de>

3
python-dash.rpmlintrc Normal file
View File

@@ -0,0 +1,3 @@
# extra testing requirements not declared in python metadata
addFilter("python-leftover-require python.*-beautifulsoup4")
addFilter("python-leftover-require python.*-percy")

View File

@@ -18,45 +18,66 @@
# We can't test currenty, see below.
%bcond_with test
%define skip_python39 1
%define distver 2.16
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 +92,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) = %{distver}
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 +121,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 +137,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