1
0
forked from pool/python-plotly
python-plotly/python-plotly.spec

129 lines
4.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-plotly
#
Accepting request 768852 from home:TheBlackCat:branches:devel:languages:python:numeric - Update to version 4.5.0 + Updated * Updated Plotly.js to version 1.52.1. * Plotly Express uses the new `legend.title` attribute and so now has shorter trace `name`s * The heuristic used by `px.parallel_categories` to determine which columns of the data frame to draw has been changed and made more configurable with the `dimensions_max_cardinality` argument * The `simple_white` colorbar styling has been streamlined * The `jupyterlab-plotly` and `plotlywidget` JupyterLab extensions should now share code when installed together, resulting in smaller JupyterLab vendor bundle sizes + Fixed * Plotly Express `category_orders` are now respected independent of the contents of the data set * `go.Scattergl` symbols now accept numeric specification * `px.scatter` trendline coefficients are now more readable * Built-in cyclical color scales now all have identical start and end points + Added * `px.sunburst` and `px.treemap` now accept a `path` argument for passing columns of a rectangular dataframe to build the charts * `px.choropleth` now accepts a user-supplied `geojson` attribute * `px.choropleth` and `px.choropleth_mapbox` now accept `featureidkey` to specify the GeoJSON field to use to match `locations` * `px.choropleth` and `px.choropleth_mapbox` now accept discrete color * `px.bar_polar` now accepts continuous color * New `layout.uniformtext` attribute allows for automatic standardization of font sizes across bar-like and hierarchical traces. OBS-URL: https://build.opensuse.org/request/show/768852 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=22
2020-01-30 18:27:50 +01:00
# Copyright (c) 2020 SUSE LLC
#
# 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-%{**}}
%define skip_python2 1
Name: python-plotly
Version: 4.11.0
Release: 0
Summary: Library for collaborative, interactive, publication-quality graphs
License: MIT
URL: https://github.com/plotly/plotly.py
Source: https://files.pythonhosted.org/packages/source/p/plotly/plotly-%{version}.tar.gz
Source100: python-plotly-rpmlintrc
BuildRequires: %{python_module decorator >= 4.0.6}
Accepting request 707291 from home:TheBlackCat:branches:devel:languages:python:numeric - Fix jupyter dependencies. - Update to 3.10.0 + Updated * Updated Plotly.js to version 1.48.1. + Added * Added funnel trace * Added funnelarea traces * Added support for shared color axes via coloraxis attributes in the layout * Added support for sorting categorical cartesian axes by value * Added `bingroup` to `histogram`, `histogram2d` and `histogram2dcontour` to group traces to have compatible auto-bin values * Add legend `itemclick` and `itemdoubleclick` attributes to set or disable the legend item click and double-click behavior * Added support for calling orca through [Xvfb](https://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml) to support static image export on Linux when X11 is not available + Fixed * Fixed `PlotlyJSONEncoder` encoding error when `simplejson` is installed * HTML export now honors the figure height specified in the figure template * Fixed display height of figure displayed in JupyterLab * Fixed honouring of the `validate=False` option for all renderer types - Update to 3.9.0 + Updated * Updated Plotly.js to version 1.47.4. + Added * Added "magic underscore" support for specifying nested figure properties * Added `select_traces`, `for_each_trace`, and `update_traces` figure methods for accessing and updating traces by subplot location and trace properties * Added `select_*`, `for_each_*`, and `update_*` figure methods for accessing and updating subplot objects (`xaxis`, `scene`, `polar`, etc) * Added support for Dash Design Kit style color specifications * Added support for the `plotly_unselect` plotly.js event in a new `on_unselect` trace method + Changed * Changed the default colorscale to be `plasma` for the `plotly`, `plotly_white`, and `plotly_dark` templates for plotly.py version 4 * Reordered the default colorway for the `plotly`, `plotly_white`, and `plotly_dark` templates for plotly.py version 4 + Fixed * Fixed package listing in setup.py * Fixed built-in templates so that `heatmap` colorscales can be overridden without specifying `autocolorscale=False` * Fix `UnboundLocalError` error in the presence of a missing or corrupt `~/.plotly/.config` file * Fixed error when combining `sankey` traces with cartesian subplots OBS-URL: https://build.opensuse.org/request/show/707291 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=6
2019-06-03 20:51:29 +02:00
BuildRequires: %{python_module ipython}
BuildRequires: %{python_module ipywidgets}
BuildRequires: %{python_module nbformat >= 4.2}
BuildRequires: %{python_module notebook}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module requests}
Accepting request 707291 from home:TheBlackCat:branches:devel:languages:python:numeric - Fix jupyter dependencies. - Update to 3.10.0 + Updated * Updated Plotly.js to version 1.48.1. + Added * Added funnel trace * Added funnelarea traces * Added support for shared color axes via coloraxis attributes in the layout * Added support for sorting categorical cartesian axes by value * Added `bingroup` to `histogram`, `histogram2d` and `histogram2dcontour` to group traces to have compatible auto-bin values * Add legend `itemclick` and `itemdoubleclick` attributes to set or disable the legend item click and double-click behavior * Added support for calling orca through [Xvfb](https://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml) to support static image export on Linux when X11 is not available + Fixed * Fixed `PlotlyJSONEncoder` encoding error when `simplejson` is installed * HTML export now honors the figure height specified in the figure template * Fixed display height of figure displayed in JupyterLab * Fixed honouring of the `validate=False` option for all renderer types - Update to 3.9.0 + Updated * Updated Plotly.js to version 1.47.4. + Added * Added "magic underscore" support for specifying nested figure properties * Added `select_traces`, `for_each_trace`, and `update_traces` figure methods for accessing and updating traces by subplot location and trace properties * Added `select_*`, `for_each_*`, and `update_*` figure methods for accessing and updating subplot objects (`xaxis`, `scene`, `polar`, etc) * Added support for Dash Design Kit style color specifications * Added support for the `plotly_unselect` plotly.js event in a new `on_unselect` trace method + Changed * Changed the default colorscale to be `plasma` for the `plotly`, `plotly_white`, and `plotly_dark` templates for plotly.py version 4 * Reordered the default colorway for the `plotly`, `plotly_white`, and `plotly_dark` templates for plotly.py version 4 + Fixed * Fixed package listing in setup.py * Fixed built-in templates so that `heatmap` colorscales can be overridden without specifying `autocolorscale=False` * Fix `UnboundLocalError` error in the presence of a missing or corrupt `~/.plotly/.config` file * Fixed error when combining `sankey` traces with cartesian subplots OBS-URL: https://build.opensuse.org/request/show/707291 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=6
2019-06-03 20:51:29 +02:00
BuildRequires: %{python_module retrying >= 1.3.3}
BuildRequires: %{python_module setuptools}
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}
Accepting request 707291 from home:TheBlackCat:branches:devel:languages:python:numeric - Fix jupyter dependencies. - Update to 3.10.0 + Updated * Updated Plotly.js to version 1.48.1. + Added * Added funnel trace * Added funnelarea traces * Added support for shared color axes via coloraxis attributes in the layout * Added support for sorting categorical cartesian axes by value * Added `bingroup` to `histogram`, `histogram2d` and `histogram2dcontour` to group traces to have compatible auto-bin values * Add legend `itemclick` and `itemdoubleclick` attributes to set or disable the legend item click and double-click behavior * Added support for calling orca through [Xvfb](https://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml) to support static image export on Linux when X11 is not available + Fixed * Fixed `PlotlyJSONEncoder` encoding error when `simplejson` is installed * HTML export now honors the figure height specified in the figure template * Fixed display height of figure displayed in JupyterLab * Fixed honouring of the `validate=False` option for all renderer types - Update to 3.9.0 + Updated * Updated Plotly.js to version 1.47.4. + Added * Added "magic underscore" support for specifying nested figure properties * Added `select_traces`, `for_each_trace`, and `update_traces` figure methods for accessing and updating traces by subplot location and trace properties * Added `select_*`, `for_each_*`, and `update_*` figure methods for accessing and updating subplot objects (`xaxis`, `scene`, `polar`, etc) * Added support for Dash Design Kit style color specifications * Added support for the `plotly_unselect` plotly.js event in a new `on_unselect` trace method + Changed * Changed the default colorscale to be `plasma` for the `plotly`, `plotly_white`, and `plotly_dark` templates for plotly.py version 4 * Reordered the default colorway for the `plotly`, `plotly_white`, and `plotly_dark` templates for plotly.py version 4 + Fixed * Fixed package listing in setup.py * Fixed built-in templates so that `heatmap` colorscales can be overridden without specifying `autocolorscale=False` * Fix `UnboundLocalError` error in the presence of a missing or corrupt `~/.plotly/.config` file * Fixed error when combining `sankey` traces with cartesian subplots OBS-URL: https://build.opensuse.org/request/show/707291 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=6
2019-06-03 20:51:29 +02:00
Requires: jupyter-plotly = %{version}
Requires: python-ipython
Requires: python-ipywidgets
Requires: python-nbformat >= 4.2
Requires: python-notebook
%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.
Accepting request 707291 from home:TheBlackCat:branches:devel:languages:python:numeric - Fix jupyter dependencies. - Update to 3.10.0 + Updated * Updated Plotly.js to version 1.48.1. + Added * Added funnel trace * Added funnelarea traces * Added support for shared color axes via coloraxis attributes in the layout * Added support for sorting categorical cartesian axes by value * Added `bingroup` to `histogram`, `histogram2d` and `histogram2dcontour` to group traces to have compatible auto-bin values * Add legend `itemclick` and `itemdoubleclick` attributes to set or disable the legend item click and double-click behavior * Added support for calling orca through [Xvfb](https://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml) to support static image export on Linux when X11 is not available + Fixed * Fixed `PlotlyJSONEncoder` encoding error when `simplejson` is installed * HTML export now honors the figure height specified in the figure template * Fixed display height of figure displayed in JupyterLab * Fixed honouring of the `validate=False` option for all renderer types - Update to 3.9.0 + Updated * Updated Plotly.js to version 1.47.4. + Added * Added "magic underscore" support for specifying nested figure properties * Added `select_traces`, `for_each_trace`, and `update_traces` figure methods for accessing and updating traces by subplot location and trace properties * Added `select_*`, `for_each_*`, and `update_*` figure methods for accessing and updating subplot objects (`xaxis`, `scene`, `polar`, etc) * Added support for Dash Design Kit style color specifications * Added support for the `plotly_unselect` plotly.js event in a new `on_unselect` trace method + Changed * Changed the default colorscale to be `plasma` for the `plotly`, `plotly_white`, and `plotly_dark` templates for plotly.py version 4 * Reordered the default colorway for the `plotly`, `plotly_white`, and `plotly_dark` templates for plotly.py version 4 + Fixed * Fixed package listing in setup.py * Fixed built-in templates so that `heatmap` colorscales can be overridden without specifying `autocolorscale=False` * Fix `UnboundLocalError` error in the presence of a missing or corrupt `~/.plotly/.config` file * Fixed error when combining `sankey` traces with cartesian subplots OBS-URL: https://build.opensuse.org/request/show/707291 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=6
2019-06-03 20:51:29 +02:00
%package -n jupyter-plotly
Summary: Jupyter notebook integration for %{name}
Requires: jupyter-ipython
Requires: jupyter-ipywidgets
Requires: jupyter-nbformat >= 4.2
Requires: jupyter-notebook
Requires: python3-plotly-jupyter = %{version}
%description -n jupyter-plotly
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 -q -n plotly-%{version}
%build
%python_build
%install
%python_install
%jupyter_move_config
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%fdupes %{buildroot}%{jupyter_prefix}
%files %{python_files}
%license LICENSE.txt
Accepting request 707291 from home:TheBlackCat:branches:devel:languages:python:numeric - Fix jupyter dependencies. - Update to 3.10.0 + Updated * Updated Plotly.js to version 1.48.1. + Added * Added funnel trace * Added funnelarea traces * Added support for shared color axes via coloraxis attributes in the layout * Added support for sorting categorical cartesian axes by value * Added `bingroup` to `histogram`, `histogram2d` and `histogram2dcontour` to group traces to have compatible auto-bin values * Add legend `itemclick` and `itemdoubleclick` attributes to set or disable the legend item click and double-click behavior * Added support for calling orca through [Xvfb](https://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml) to support static image export on Linux when X11 is not available + Fixed * Fixed `PlotlyJSONEncoder` encoding error when `simplejson` is installed * HTML export now honors the figure height specified in the figure template * Fixed display height of figure displayed in JupyterLab * Fixed honouring of the `validate=False` option for all renderer types - Update to 3.9.0 + Updated * Updated Plotly.js to version 1.47.4. + Added * Added "magic underscore" support for specifying nested figure properties * Added `select_traces`, `for_each_trace`, and `update_traces` figure methods for accessing and updating traces by subplot location and trace properties * Added `select_*`, `for_each_*`, and `update_*` figure methods for accessing and updating subplot objects (`xaxis`, `scene`, `polar`, etc) * Added support for Dash Design Kit style color specifications * Added support for the `plotly_unselect` plotly.js event in a new `on_unselect` trace method + Changed * Changed the default colorscale to be `plasma` for the `plotly`, `plotly_white`, and `plotly_dark` templates for plotly.py version 4 * Reordered the default colorway for the `plotly`, `plotly_white`, and `plotly_dark` templates for plotly.py version 4 + Fixed * Fixed package listing in setup.py * Fixed built-in templates so that `heatmap` colorscales can be overridden without specifying `autocolorscale=False` * Fix `UnboundLocalError` error in the presence of a missing or corrupt `~/.plotly/.config` file * Fixed error when combining `sankey` traces with cartesian subplots OBS-URL: https://build.opensuse.org/request/show/707291 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=6
2019-06-03 20:51:29 +02:00
%{python_sitelib}/_plotly_future_/
%{python_sitelib}/_plotly_utils/
%{python_sitelib}/plotly/
%{python_sitelib}/plotly-%{version}-py*.egg-info
%files %{python_files jupyter}
Accepting request 707291 from home:TheBlackCat:branches:devel:languages:python:numeric - Fix jupyter dependencies. - Update to 3.10.0 + Updated * Updated Plotly.js to version 1.48.1. + Added * Added funnel trace * Added funnelarea traces * Added support for shared color axes via coloraxis attributes in the layout * Added support for sorting categorical cartesian axes by value * Added `bingroup` to `histogram`, `histogram2d` and `histogram2dcontour` to group traces to have compatible auto-bin values * Add legend `itemclick` and `itemdoubleclick` attributes to set or disable the legend item click and double-click behavior * Added support for calling orca through [Xvfb](https://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml) to support static image export on Linux when X11 is not available + Fixed * Fixed `PlotlyJSONEncoder` encoding error when `simplejson` is installed * HTML export now honors the figure height specified in the figure template * Fixed display height of figure displayed in JupyterLab * Fixed honouring of the `validate=False` option for all renderer types - Update to 3.9.0 + Updated * Updated Plotly.js to version 1.47.4. + Added * Added "magic underscore" support for specifying nested figure properties * Added `select_traces`, `for_each_trace`, and `update_traces` figure methods for accessing and updating traces by subplot location and trace properties * Added `select_*`, `for_each_*`, and `update_*` figure methods for accessing and updating subplot objects (`xaxis`, `scene`, `polar`, etc) * Added support for Dash Design Kit style color specifications * Added support for the `plotly_unselect` plotly.js event in a new `on_unselect` trace method + Changed * Changed the default colorscale to be `plasma` for the `plotly`, `plotly_white`, and `plotly_dark` templates for plotly.py version 4 * Reordered the default colorway for the `plotly`, `plotly_white`, and `plotly_dark` templates for plotly.py version 4 + Fixed * Fixed package listing in setup.py * Fixed built-in templates so that `heatmap` colorscales can be overridden without specifying `autocolorscale=False` * Fix `UnboundLocalError` error in the presence of a missing or corrupt `~/.plotly/.config` file * Fixed error when combining `sankey` traces with cartesian subplots OBS-URL: https://build.opensuse.org/request/show/707291 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=6
2019-06-03 20:51:29 +02:00
%license LICENSE.txt
%{python_sitelib}/plotlywidget/
Accepting request 707291 from home:TheBlackCat:branches:devel:languages:python:numeric - Fix jupyter dependencies. - Update to 3.10.0 + Updated * Updated Plotly.js to version 1.48.1. + Added * Added funnel trace * Added funnelarea traces * Added support for shared color axes via coloraxis attributes in the layout * Added support for sorting categorical cartesian axes by value * Added `bingroup` to `histogram`, `histogram2d` and `histogram2dcontour` to group traces to have compatible auto-bin values * Add legend `itemclick` and `itemdoubleclick` attributes to set or disable the legend item click and double-click behavior * Added support for calling orca through [Xvfb](https://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml) to support static image export on Linux when X11 is not available + Fixed * Fixed `PlotlyJSONEncoder` encoding error when `simplejson` is installed * HTML export now honors the figure height specified in the figure template * Fixed display height of figure displayed in JupyterLab * Fixed honouring of the `validate=False` option for all renderer types - Update to 3.9.0 + Updated * Updated Plotly.js to version 1.47.4. + Added * Added "magic underscore" support for specifying nested figure properties * Added `select_traces`, `for_each_trace`, and `update_traces` figure methods for accessing and updating traces by subplot location and trace properties * Added `select_*`, `for_each_*`, and `update_*` figure methods for accessing and updating subplot objects (`xaxis`, `scene`, `polar`, etc) * Added support for Dash Design Kit style color specifications * Added support for the `plotly_unselect` plotly.js event in a new `on_unselect` trace method + Changed * Changed the default colorscale to be `plasma` for the `plotly`, `plotly_white`, and `plotly_dark` templates for plotly.py version 4 * Reordered the default colorway for the `plotly`, `plotly_white`, and `plotly_dark` templates for plotly.py version 4 + Fixed * Fixed package listing in setup.py * Fixed built-in templates so that `heatmap` colorscales can be overridden without specifying `autocolorscale=False` * Fix `UnboundLocalError` error in the presence of a missing or corrupt `~/.plotly/.config` file * Fixed error when combining `sankey` traces with cartesian subplots OBS-URL: https://build.opensuse.org/request/show/707291 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=6
2019-06-03 20:51:29 +02:00
%files -n jupyter-plotly
%license LICENSE.txt
%{_jupyter_nbextension_dir}/plotlywidget/
%config %{_jupyter_nb_notebook_confdir}/plotlywidget.json
%changelog