2018-05-11 12:28:31 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-dash
|
|
|
|
|
#
|
2022-07-11 05:59:05 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-05-11 12:28:31 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2018-12-13 18:42:37 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-11 12:28:31 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2021-01-05 17:12:46 +00:00
|
|
|
# We can't test currenty, see below.
|
|
|
|
|
%bcond_with test
|
2024-03-06 07:01:58 +00:00
|
|
|
%define skip_python39 1
|
2024-03-06 21:52:07 +00:00
|
|
|
%define distver 2.16
|
2018-05-11 12:28:31 +00:00
|
|
|
Name: python-dash
|
2024-04-06 19:12:19 +00:00
|
|
|
Version: 2.16.1
|
2018-12-13 18:42:37 +00:00
|
|
|
Release: 0
|
2018-05-11 12:28:31 +00:00
|
|
|
Summary: Python framework for building reactive web-apps
|
|
|
|
|
License: MIT
|
2020-02-03 10:13:26 +00:00
|
|
|
URL: https://github.com/plotly/dash
|
2021-01-05 17:12:46 +00:00
|
|
|
# PyPI package does not contain unit tests. GitHub does, but we don't test right now
|
2018-05-11 12:28:31 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/d/dash/dash-%{version}.tar.gz
|
2024-03-06 07:01:58 +00:00
|
|
|
Source99: python-dash.rpmlintrc
|
|
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
2021-01-05 17:12:46 +00:00
|
|
|
BuildRequires: %{python_module Flask >= 1.0.4}
|
2022-06-08 08:05:19 +00:00
|
|
|
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}
|
2021-01-05 17:12:46 +00:00
|
|
|
BuildRequires: %{python_module percy}
|
2022-06-08 08:05:19 +00:00
|
|
|
BuildRequires: %{python_module plotly >= 5.0.0}
|
2018-05-11 12:28:31 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-03-06 07:01:58 +00:00
|
|
|
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}
|
2020-03-16 09:19:16 +00:00
|
|
|
BuildRequires: fdupes
|
2018-05-11 12:28:31 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2024-03-06 07:01:58 +00:00
|
|
|
BuildRequires: jupyter-rpm-macros
|
2021-01-05 17:12:46 +00:00
|
|
|
Requires: python-Flask >= 1.0.4
|
2024-03-06 07:01:58 +00:00
|
|
|
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
|
2022-06-08 08:05:19 +00:00
|
|
|
Requires: python-dash-core-components = 2.0.0
|
|
|
|
|
Requires: python-dash-html-components = 2.0.0
|
|
|
|
|
Requires: python-dash-table = 5.0.0
|
2024-03-06 07:01:58 +00:00
|
|
|
Requires: python-plotly >= 5.0.0
|
|
|
|
|
Requires: jupyter-dash = %{version}-%{release}
|
|
|
|
|
# SECTION testing extras
|
|
|
|
|
# dash/testing/dash_page.py
|
|
|
|
|
Requires: python-beautifulsoup4
|
2020-04-01 17:08:38 +00:00
|
|
|
# needed for dash/testing/browser.py
|
|
|
|
|
Requires: python-percy
|
2024-03-06 07:01:58 +00:00
|
|
|
# /SECTION
|
2020-05-28 07:18:21 +00:00
|
|
|
Requires(post): update-alternatives
|
2022-07-11 05:59:05 +00:00
|
|
|
Requires(postun): update-alternatives
|
2020-03-16 09:19:16 +00:00
|
|
|
BuildArch: noarch
|
2021-01-05 17:12:46 +00:00
|
|
|
%if %{with test}
|
|
|
|
|
BuildRequires: %{python_module lxml}
|
|
|
|
|
BuildRequires: %{python_module pytest-mock}
|
2022-06-08 08:05:19 +00:00
|
|
|
BuildRequires: %{python_module pytest-rerunfailures}
|
2022-07-11 05:59:05 +00:00
|
|
|
BuildRequires: %{python_module pytest-sugar}
|
2021-01-05 17:12:46 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module selenium}
|
|
|
|
|
BuildRequires: %{python_module waitress}
|
|
|
|
|
BuildRequires: nodejs
|
|
|
|
|
%endif
|
2018-05-11 12:28:31 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Dash is a Python framework for building analytical web applications.
|
|
|
|
|
No JavaScript required.
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
2024-03-06 07:01:58 +00:00
|
|
|
%package -n jupyter-dash
|
|
|
|
|
Summary: Jupyter configuration for python-dash
|
2024-03-06 21:52:07 +00:00
|
|
|
Requires: python3dist(dash) = %{distver}
|
2024-03-06 07:01:58 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
2018-05-11 12:28:31 +00:00
|
|
|
%prep
|
|
|
|
|
%setup -q -n dash-%{version}
|
2020-02-10 20:56:31 +00:00
|
|
|
sed -i -e '/^#!\//, 1d' dash/extract-meta.js
|
2024-03-06 07:01:58 +00:00
|
|
|
chmod -x dash/extract-meta.js
|
|
|
|
|
find . -name .gitkeep -delete
|
2018-05-11 12:28:31 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
2020-05-28 07:18:21 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/renderer
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/dash-generate-components
|
2022-03-03 23:17:12 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/dash-update-components
|
2018-05-11 12:28:31 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2024-03-06 07:01:58 +00:00
|
|
|
%if %{with test}
|
|
|
|
|
%check
|
|
|
|
|
# Testing needs npm install from network and packages (e.g. flask_talisman) which we don't have.
|
|
|
|
|
%pytest
|
|
|
|
|
%endif
|
|
|
|
|
|
2020-05-28 07:18:21 +00:00
|
|
|
%post
|
|
|
|
|
%python_install_alternative renderer
|
|
|
|
|
%python_install_alternative dash-generate-components
|
2022-03-03 23:17:12 +00:00
|
|
|
%python_install_alternative dash-update-components
|
2020-05-28 07:18:21 +00:00
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative renderer
|
|
|
|
|
%python_uninstall_alternative dash-generate-components
|
2022-03-03 23:17:12 +00:00
|
|
|
%python_uninstall_alternative dash-update-components
|
2020-05-28 07:18:21 +00:00
|
|
|
|
2024-03-06 07:01:58 +00:00
|
|
|
%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/
|
2021-01-05 17:12:46 +00:00
|
|
|
|
2018-05-11 12:28:31 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
2020-05-28 07:18:21 +00:00
|
|
|
%python_alternative %{_bindir}/dash-generate-components
|
2022-03-03 23:17:12 +00:00
|
|
|
%python_alternative %{_bindir}/dash-update-components
|
2020-05-28 07:18:21 +00:00
|
|
|
%python_alternative %{_bindir}/renderer
|
2020-03-16 09:19:16 +00:00
|
|
|
%{python_sitelib}/dash
|
2022-06-08 08:05:19 +00:00
|
|
|
%{python_sitelib}/dash-%{version}*-info
|
2018-05-11 12:28:31 +00:00
|
|
|
|
|
|
|
|
%changelog
|