- Fix dependency issue. - Update to version 3.5.0 OBS-URL: https://build.opensuse.org/request/show/668731 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=10
114 lines
4.1 KiB
RPMSpec
114 lines
4.1 KiB
RPMSpec
#
|
|
# spec file for package python-plotly
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-plotly
|
|
Version: 3.5.0
|
|
Release: 0
|
|
Summary: Library for collaborative, interactive, publication-quality graphs
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
Url: https://github.com/plotly/plotly.py
|
|
Source: https://files.pythonhosted.org/packages/py2.py3/p/plotly/plotly-%{version}-py2.py3-none-any.whl
|
|
BuildRequires: %{python_module decorator >= 4.0.6}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module jupyter_nbformat >= 4.2}
|
|
BuildRequires: %{python_module jupyter_ipython}
|
|
BuildRequires: %{python_module jupyter_ipywidgets}
|
|
BuildRequires: %{python_module jupyter_notebook}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytz}
|
|
BuildRequires: %{python_module retrying >= 1.3.3}
|
|
BuildRequires: %{python_module requests}
|
|
BuildRequires: %{python_module six}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-decorator >= 4.0.6
|
|
Requires: python-pytz
|
|
Requires: python-requests
|
|
Requires: python-retrying >= 1.3.3
|
|
Requires: python-six
|
|
Recommends: python-matplotlib >= 1.3.1
|
|
Recommends: python-numpy
|
|
Recommends: python-pandas
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Use this package to make collaborative, interactive,
|
|
publication-quality graphs from Python on https://plot.ly.
|
|
|
|
Plotly is an online collaborative data analysis and graphing tool. The
|
|
Python API allows you to access all of Plotly's functionality from Python.
|
|
Plotly figures are shared, tracked, and edited all online and the data is
|
|
always accessible from the graph.
|
|
|
|
%package jupyter
|
|
Summary: Jupyter notebook integration for %{name}
|
|
Requires: %{name} = %{version}
|
|
Requires: python-jupyter_nbformat >= 4.2
|
|
Requires: python-jupyter_ipython
|
|
Requires: python-jupyter_ipywidgets
|
|
Requires: python-jupyter_notebook
|
|
Provides: python-jupyter_plotly = %{version}
|
|
%ifpython2
|
|
Requires: python3-plotly-jupyter = %{version}
|
|
%endif
|
|
|
|
%description jupyter
|
|
Use this package to make collaborative, interactive,
|
|
publication-quality graphs from Python on https://plot.ly.
|
|
|
|
Plotly is an online collaborative data analysis and graphing tool. The
|
|
Python API allows you to access all of Plotly's functionality from Python.
|
|
Plotly figures are shared, tracked, and edited all online and the data is
|
|
always accessible from the graph.
|
|
|
|
This package provides Jupyter Notebook integration and widgets.
|
|
|
|
%prep
|
|
%setup -c -T
|
|
|
|
%build
|
|
# Not Needed
|
|
|
|
%install
|
|
%python_expand pip%{$python_bin_suffix} install --root=%{buildroot} %{SOURCE0}
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
if [ "$(dirname %{_prefix}/etc/jupyter)" != "$(dirname %{_sysconfdir}/jupyter)" ]; then
|
|
mkdir -p %{buildroot}%{_sysconfdir}
|
|
mv %{buildroot}%{_prefix}/etc/jupyter %{buildroot}%{_sysconfdir}/jupyter
|
|
rm -d %{buildroot}%{_prefix}/etc
|
|
fi
|
|
|
|
cp %{buildroot}%{python_sitelib}/plotly-%{version}.dist-info/LICENSE.txt .
|
|
|
|
%files %{python_files}
|
|
%license %{python_sitelib}/plotly-%{version}.dist-info/LICENSE.txt
|
|
%{python_sitelib}/_plotly_utils/
|
|
%{python_sitelib}/plotly/
|
|
%{python_sitelib}/plotly-%{version}.dist-info/
|
|
|
|
%files %{python_files jupyter}
|
|
%{python_sitelib}/plotlywidget/
|
|
%python3_only %{_datadir}/jupyter/nbextensions/plotlywidget/
|
|
%python3_only %config %{_sysconfdir}/jupyter/nbconfig/notebook.d/plotlywidget.json
|
|
|
|
%changelog
|