1
0
forked from pool/python-plotly

Accepting request 1154607 from devel:languages:python:numeric

OBS-URL: https://build.opensuse.org/request/show/1154607
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-plotly?expand=0&rev=38
This commit is contained in:
Ana Guerrero 2024-03-04 20:25:34 +00:00 committed by Git OBS Bridge
commit 29d30957d3
6 changed files with 120 additions and 44 deletions

View File

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

3
plotly-5.16.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:295ac25edeb18c893abb71dcadcea075b78fd6fdf07cee4217a4e1009667925b
size 7795459

View File

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

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5d17726f2830c07b5fe16be2b20298da77da26050139c02c36149e79322aa695
size 30846702

View File

@ -1,3 +1,77 @@
-------------------------------------------------------------------
Sat Mar 2 10:07:30 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Skip python39: no xarray anymore
-------------------------------------------------------------------
Fri Mar 1 10:07:05 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 5.16.1:
* Fixed issue with necessary columns from complex arguments
dropped when interchanging dataframes
* Updated Plotly.js from version 2.24.1 to version 2.25.2. See
the plotly.js CHANGELOG for more information. These changes
are reflected in the auto-generated `plotly.graph_objects`
module. Notable changes include:
* Add "Equal Earth" projection to geo subplots [#6670],
* Add options to include legends for shapes and `newshape`
* `px` methods now accept data-frame-like objects that support
a dataframe interchange protocol, such as polars, vaex, modin
etc. This protocol has priority on `to_pandas` call, but will
only be used if pandas>=2.0.2 is installed in the
environment.
* `px` methods now accept data-frame-like objects that support
a `toPandas()` method, such as Spark DataFrames, or a
`to_pandas_df()` method, such as Vaex DataFrames.
* Fixed Pandas performance warning issue caused by multiple
`frame.insert`
-------------------------------------------------------------------
Fri Mar 1 10:04:56 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 5.15.0:
* Updated Plotly.js from version 2.20.0 to version 2.24.1. See
the plotly.js CHANGELOG for more information. Notable changes
include:
* Add pattern to pie, funnelarea, sunburst, icicle and treemap
traces [#6601, #6619, #6622, #6626, #6627, #6628, #6629],
with thanks to @thierryVergult for the contribution!
* Add `texttemplate` to shape.label for parametric shapes i.e.
line, rect and circle [#6527],
* Add strict option to custom bundle command [#6557],
* Add `legend` references to traces and `legend2`, `legend3`,
etc. to layout,
* also add `visible` to legend i.e. to allow positioning
multiple legends on a graph [#6535],
* Add `legend.xref` and `legend.yref` to enable container-
referenced positioning of legends [#6589], with thanks to
Gamma Technologies for sponsoring the related development.
* Add `colorbar.xref` and `colorbar.yref` to enable container-
referenced positioning of colorbars [#6593], with thanks to
Gamma Technologies for sponsoring the related development.
* `px` methods now accept data-frame-like objects that support
a `to_pandas()` method, such as polars, cudf, vaex etc
* Fixed another compatibility issue with Pandas 2.0, just
affecting `px.*(line_close=True)`
* Empty pandas dataframe with facet row/column set no longer
fails
* Added some rounding to the `make_subplots` function to handle
situations where the user-input specs cause the domain to
exceed 1 by small amounts
* Sanitize JSON output to prevent an XSS vector when graphs are
inserted directly into HTML
* Fixed issue with shapes and annotations plotting on the wrong
y axis when supplied with a specific axis in the `yref`
parameter
* Remove `use_2to3` setuptools arg, which is invalid in the
latest Python and setuptools versions
* Fix #4066 JupyterLab v4 giving tiny default graph height
* Fixed issue with `colors.n_colors` where generated RGB color
values were not being constrained to stay between 0 and 255
* Fix streamline figure factory with recent versions of Numpy
* Fix issue with shapes and annotations not drawing on correct
axis
-------------------------------------------------------------------
Thu Jun 8 13:02:57 UTC 2023 - Ben Greiner <code@bnavigator.de>
@ -859,7 +933,7 @@ Fri Aug 16 16:17:42 UTC 2019 - Todd R <toddrme2178@gmail.com>
- Update to 4.1.0
+ Updated
* Updated Plotly.js to version 1.49.1.
* Bars in the figures produced by the `create_gantt` figure factory may now be hidden by clicking on the legend.
* Bars in the figures produced by the `create_gantt` figure factory may now be hidden by clicking on the legend.
* Improved performance when serializing figures containing large numpy arrays.
+ Added
* Added new renderers for displaying figures from within the Databricks and CoCalc notebook services
@ -878,11 +952,11 @@ Fri Aug 16 16:17:42 UTC 2019 - Todd R <toddrme2178@gmail.com>
* Added `doubleClickDelay` config option
* Added `showEditInChartStudio` config option
+ Fixed
* Fixed incorrect facet row ordering in figures generated by plotly.express functions
* Fixed incorrect facet row ordering in figures generated by plotly.express functions
* Fixed "The truth value of an array with more than one element is ambiguous" error when specifying subplot titles as numpy array of strings.
* The `line_3d` plotly express function was not visible by default when importing `*` from `plotly.express`
-------------------------------------------------------------------
Thu Jul 25 17:14:49 UTC 2019 - Todd R <toddrme2178@gmail.com>
@ -890,14 +964,14 @@ Thu Jul 25 17:14:49 UTC 2019 - Todd R <toddrme2178@gmail.com>
+ Updated
* Updated Plotly.js to version 1.48.3.
+ Added
* The Plotly Express tech preview has been integrated as the `plotly.express` module
* The Plotly Express tech preview has been integrated as the `plotly.express` module
* Added a new renderers framework the supports rendering figure in a wide variety of contexts. See the new Displaying Plotly Figures documentation page for more information.
* Added `plotly.io.write_html` and `plotly.io.to_html` functions for exporting figures to HTML. Also available as `.write_html` and `.to_html` figure methods.
* Added new figure methods for batch updating figure properties (`update_layout`, `update_traces`, `update_xaxes`, etc.). See the new Creating and Updating Figures documentation page for more details.
* Added support for all trace types in `make_subplots`
* Added support for secondary y-axes in `make_subplots`
* Support passing a scalar trace object (rather than a list or tuple of trace objects) as the `data` property to the `Figure` constructor
* Added dictionary-stule `.pop` method to graph object classes
* Added support for all trace types in `make_subplots`
* Added support for secondary y-axes in `make_subplots`
* Support passing a scalar trace object (rather than a list or tuple of trace objects) as the `data` property to the `Figure` constructor
* Added dictionary-stule `.pop` method to graph object classes
* New `jupyterlab-plotly` JupyterLab extension for rendering figures in JupyterLab. Replaces the `@jupyterlab/plotly-extension` extension, and includes JupyterLab 1.0 support.
* Added new suite of built-in colorscales to the `plotly.colors` module, and support for specifying this wide range of colorscales by name. Also added support for specifying colorscales as a list of colors, in which case the color spacing is assumed to be uniform.
* Added `sphinx-gallery` renderer for embedding plotly figures in Sphinx-Gallery.
@ -909,19 +983,19 @@ Thu Jul 25 17:14:49 UTC 2019 - Todd R <toddrme2178@gmail.com>
> `plotly.grid_objs` -> `chart_studio.grid_objs`
> `plotly.presentation_objs` -> `chart_studio.presentation_objs`
* The legacy `plotly.widgets.GraphWidget` class for displaying online figures hosted by Chart Studio as ipywidgets has been removed. Please use the offline, and much more capable, `plotly.graph_objects.FigureWidget` class instead.
* The `fileopt` argument to `chart_studio.plotly.plot` has been removed, so in-place modifications to previously published figures are no longer supported, and a figure will always overwrite a figure with the same name.
* The `fileopt` argument to `chart_studio.plotly.plot` has been removed, so in-place modifications to previously published figures are no longer supported, and a figure will always overwrite a figure with the same name.
+ Changed
* The `'plotly'` template is used as the default theme across all figures.
* In order to reduce the size of the core `plotly` distribution package, the bundled geographic shape files used by the `create_choropleth` figure factory have been moved to a new optional `plotly-geo` distribution package
* In order to reduce the size of the core `plotly` distribution package, the bundled geographic shape files used by the `create_choropleth` figure factory have been moved to a new optional `plotly-geo` distribution package
* For consistency with other figure factories, the `create_choropleth` and `create_gantt` figure factories now always returns `Figure` objects, rather than dictionaries.
* Figure add trace methods (`.add_trace`, `.add_traces`, `.add_scatter`, etc.) now return a reference to the calling figure, rather than the newly created trace
* Figure add trace methods (`.add_trace`, `.add_traces`, `.add_scatter`, etc.) now return a reference to the calling figure, rather than the newly created trace
* `plotly.tools.make_subplots` has been moved to `plotly.subplots.make_subplots`, though it is still available at the previous location for backward compatibility
* The `plotly.graph_objs` module has been moved to `plotly.graph_objects`, though it is still available at the previous location for backward compatibility
* The `plotly.graph_objs` module has been moved to `plotly.graph_objects`, though it is still available at the previous location for backward compatibility
* Trace `uid` properties are only generated automatically when a trace is added to a `FigureWidget`. When a trace is added to a standard `Figure` graph object the input `uid`, if provided, is accepted as is.
* `datetime` objects that include timezones are not longer converted to UTC
* `datetime` objects that include timezones are not longer converted to UTC
* When a tuple property (e.g. `layout.annotations`) is updated with a list/tuple that is longer than the current value, the extra elements are appended to the end of the tuple.
+ Fixed
* Fixed visibility of `bar` trace error bars in built-in templates
* Fixed visibility of `bar` trace error bars in built-in templates
-------------------------------------------------------------------
Mon Jun 3 17:04:50 UTC 2019 - Todd R <toddrme2178@gmail.com>
@ -929,7 +1003,7 @@ Mon Jun 3 17:04:50 UTC 2019 - Todd R <toddrme2178@gmail.com>
- Fix jupyter dependencies.
- Update to 3.10.0
+ Updated
* Updated Plotly.js to version 1.48.1.
* Updated Plotly.js to version 1.48.1.
+ Added
* Added funnel trace
* Added funnelarea traces
@ -958,7 +1032,7 @@ Mon Jun 3 17:04:50 UTC 2019 - Todd R <toddrme2178@gmail.com>
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
`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
@ -1014,7 +1088,7 @@ Fri Jan 4 19:08:41 UTC 2019 - Todd R <toddrme2178@gmail.com>
* Built-in themes now specify colorscales using the new global
layout.colorscale` properties. Previously the colorscales were defined for
ach trace type individually. This reduces the size of the resulting theme
iles
iles
[#1303](https://github.com/plotly/plotly.py/issues/1303))
* Increased the maximum retry time of the orca integration from 8s to 30s
[#1297](https://github.com/plotly/plotly.py/issues/1297))
@ -1022,7 +1096,7 @@ Fri Jan 4 19:08:41 UTC 2019 - Todd R <toddrme2178@gmail.com>
* Fixed `FigureWidget` performance regression that, when working with
arge datasets, resulted in a slight freeze of the widget after user
nteractions (pan, zoom, etc)
[1305](https://github.com/plotly/plotly.py/issues/1305))
[1305](https://github.com/plotly/plotly.py/issues/1305))
* Fix orca error when the `ELECTRON_RUN_AS_NODE` environment variable is set
[#1293](https://github.com/plotly/plotly.py/issues/1293))
* The `'responsive'` config key was being silently blocked
@ -1030,18 +1104,18 @@ Fri Jan 4 19:08:41 UTC 2019 - Todd R <toddrme2178@gmail.com>
* Fixed error when using unicode characters in string properties on Python 2
[#1289](https://github.com/plotly/plotly.py/issues/1289))
* Removed invalid calls to non-existent `validate` and `strip_style` `Figure`
ethods in matplotlylib conversion logic
ethods in matplotlylib conversion logic
[#1128](https://github.com/plotly/plotly.py/issues/1128))
- Update to version 3.4.2
+ Fixed
* `config` options are now supported when using `plotly.offline.iplot` to
isplay a figure in JupyterLab. Requires version 0.18.1 of the
isplay a figure in JupyterLab. Requires version 0.18.1 of the
@jupyterlab/plotly-extension` extension.
[#1281](https://github.com/plotly/plotly.py/pull/1281),
jupyterlab/jupyter-renderers#168](https://github.com/jupyterlab/jupyter-renderers/pull/168))
* Custom `plotly_domain` values are now supported in FigureWidget in both
he classic notebook and JupyterLab
[#1284](https://github.com/plotly/plotly.py/pull/1284))
[#1284](https://github.com/plotly/plotly.py/pull/1284))
- Update to version 3.4.1
+ Updated
* Updated Plotly.js to version 1.42.5. See the
@ -1050,7 +1124,7 @@ Fri Jan 4 19:08:41 UTC 2019 - Todd R <toddrme2178@gmail.com>
+ Fixed
* Fixed histogram binning with pandas `Series` or numpy array
regression introduced in 3.4.0)
[#1257](https://github.com/plotly/plotly.py/issues/1257),
[#1257](https://github.com/plotly/plotly.py/issues/1257),
plotly/plotly.js#3211](https://github.com/plotly/plotly.js/pull/3211))
* Fixed incorrect validation error on the `args` property of
layout.updatemenu.Button()` when value is a `list` that starts with a `list`
@ -1058,7 +1132,7 @@ Fri Jan 4 19:08:41 UTC 2019 - Todd R <toddrme2178@gmail.com>
* Fixed deadlock causing `plotly.io.write_image` to hang on Windows after
xporting more than ~25 images
[#1255](https://github.com/plotly/plotly.py/issues/1255))
* Fixed plot display error for `scattergl` trace with `mode='lines'` and
* Fixed plot display error for `scattergl` trace with `mode='lines'` and
ore than 100k points
[#1271](https://github.com/plotly/plotly.py/issues/1271))
* Fixed responsive resizing error with `iplot` in the classic notebook
@ -1115,8 +1189,8 @@ Fri Jan 4 19:08:41 UTC 2019 - Todd R <toddrme2178@gmail.com>
actory to control the dendrogram clustering cutoff
[#995](https://github.com/plotly/plotly.py/issues/995),
#1075](https://github.com/plotly/plotly.py/pull/1075),
#1214](https://github.com/plotly/plotly.py/pull/1214))
* Added support for `autorange='reversed'` in 3D axes
#1214](https://github.com/plotly/plotly.py/pull/1214))
* Added support for `autorange='reversed'` in 3D axes
[#803](https://github.com/plotly/plotly.py/issues/803),
plotly/plotly.js#3141](https://github.com/plotly/plotly.js/pull/3141))
* Added new gl3d tick and title auto-rotation algorithm that limits text
@ -1146,7 +1220,7 @@ Fri Jan 4 19:08:41 UTC 2019 - Todd R <toddrme2178@gmail.com>
+ Fixed
* Plotly's use of MathJax for LaTeX typesetting no longer interferes with
he Jupyter Notebook's use of MathJax
[#445](https://github.com/plotly/plotly.py/issues/445),
[#445](https://github.com/plotly/plotly.py/issues/445),
#360](https://github.com/plotly/plotly.py/issues/360))
* Fixed several issues with the use of `reversescale=True` in the
create_annotated_heatmap` figure factory
@ -1155,7 +1229,7 @@ Fri Jan 4 19:08:41 UTC 2019 - Todd R <toddrme2178@gmail.com>
upyter Notebook if the notebook contained a Markdown headline with the text
Plotly"
[#816](https://github.com/plotly/plotly.py/issues/816))
* `None` values in a `scatter.hovertext` list are now omitted from the
* `None` values in a `scatter.hovertext` list are now omitted from the
over label rather than being displayed as the string `"None"`
[#1244](https://github.com/plotly/plotly.py/issues/1244))
* Subplot titles created by `plotly.tools.make_subplots` are now positioned
@ -1163,7 +1237,7 @@ Fri Jan 4 19:08:41 UTC 2019 - Todd R <toddrme2178@gmail.com>
[#1229](https://github.com/plotly/plotly.py/issues/1229))
* The `bar.width` property may now be specified as a numpy array or a pandas
eries
[#1231](https://github.com/plotly/plotly.py/issues/1231),
[#1231](https://github.com/plotly/plotly.py/issues/1231),
plotly/plotly.js#3169](https://github.com/plotly/plotly.js/pull/3169))
* Error bars are now scaled correctly for logarithmic `scatter3d` traces
[#1139](https://github.com/plotly/plotly.py/issues/1139))
@ -1171,7 +1245,7 @@ Fri Jan 4 19:08:41 UTC 2019 - Todd R <toddrme2178@gmail.com>
ython bug
[#1235](https://github.com/plotly/plotly.py/issues/1235),
[#1236](https://github.com/plotly/plotly.py/pull/1236))
* The `layout.grid.subplots` property may now be specified as a 2D list of
* The `layout.grid.subplots` property may now be specified as a 2D list of
ubplot identifiers
[#1220](https://github.com/plotly/plotly.py/issues/1220),
#1240](https://github.com/plotly/plotly.py/pull/1240))
@ -1325,7 +1399,7 @@ Fri Jan 4 19:08:41 UTC 2019 - Todd R <toddrme2178@gmail.com>
> Note: Image export requires the plotly [orca](https://github.com/plotly/orca)
command line utility and the [`psutil`](https://github.com/giampaolo/psutil) Python package.
* New documentation sections covering [Static Image Export](https://plot.ly/python/static-image-export/)
and [Orca Management](https://plot.ly/python/orca-management/)
and [Orca Management](https://plot.ly/python/orca-management/)
* Support for displaying `FigureWidget` instances in static contexts
(e.g. [nbviewer](http://nbviewer.jupyter.org/)) just like the built-in ipywidgets
[#1117](https://github.com/plotly/plotly.py/pull/1117))
@ -1334,7 +1408,7 @@ Fri Jan 4 19:08:41 UTC 2019 - Todd R <toddrme2178@gmail.com>
> From here forward, new versions of plotly.py will be published to the [plotly anaconda channel](https://anaconda.org/plotly/)
on the same day they are published to PyPI.
([72ad0e4](https://github.com/plotly/plotly.py/commit/72ad0e4bf54bb8a06445d2ca55488ffc11c836a7))
> The [`README`](README.md) now includes conda installation instructions alongside the pip instructions.
> The [`README`](README.md) now includes conda installation instructions alongside the pip instructions.
> In addition to the existing installation approaches, orca is now also available as a
[conda package](https://anaconda.org/plotly/plotly-orca) from the plotly anaconda channel.
+ Updated
@ -1378,7 +1452,7 @@ Fri Jan 4 19:08:41 UTC 2019 - Todd R <toddrme2178@gmail.com>
an array property (e.g. `layout.shapes`)
[plotly/plotly.js#1091](https://github.com/plotly/plotly.py/pull/1092)
* Fixed `FigureWidget` problem causing scroll zoom on 3D plots to stutter
[plotly/plotly.js#1094](https://github.com/plotly/plotly.py/pull/1094)
[plotly/plotly.js#1094](https://github.com/plotly/plotly.py/pull/1094)
* Fixed invalid `tickmode` property in `matplotlylib`
[plotly/plotly.js#1101](https://github.com/plotly/plotly.py/pull/1101)
- Update to version 3.1.0

View File

@ -1,7 +1,7 @@
#
# spec file for package python-plotly
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,8 +16,9 @@
#
%define skip_python39 1
Name: python-plotly
Version: 5.14.1
Version: 5.16.1
Release: 0
Summary: Library for collaborative, interactive, publication-quality graphs
License: MIT
@ -138,11 +139,12 @@ donttest="test_described_subscript_error_on_type_error"
%pytest plotly/tests/test_core -k "not ($donttest)"
# not available
donttest="test_kaleido"
donttest="$donttest or test_px_input and (vaex or polars)"
# API parameter mismatches and precision errors
donttest+=" or test_matplotlylib"
donttest="$donttest or test_matplotlylib"
# flaky timing error
donttest+=" or test_fast_track_finite_arrays"
%pytest plotly/tests/test_optional -k "not ($donttest)" ${$python_ignore}
donttest="$donttest or test_fast_track_finite_arrays"
%pytest plotly/tests/test_optional -k "not ($donttest)"
popd
%files %{python_files}