15
0
forked from pool/python-dash

Accepting request 981204 from home:bnavigator:branches:devel:languages:python:numeric

- Update to 2.5.0
  * #1947 Added pages - a better way to build multi-page apps. For
    more information see the forum post.
  * #1965 Add component as props.
  * #2049 Added wait_for_class_to_equal and wait_for_contains_class
    methods to dash.testing
  * #2050 Changed find_element and find_elements to accept an
    attribute argument that aligns with Selenium's By class,
    allowing you to search elements by other attributes. Default
    value is CSS_SELECTOR to maintain backwards compatibility with
    previous find_elements.
  * #2043 Fix bug #2003 in which dangerously_allow_html=True +
    mathjax=True works in some cases, and in some cases not.
  * #2065 Fix bug #2064 rendering of dcc.Dropdown with a value but
    no options.
  * #2047 Fix bug #1979 in which DASH_DEBUG as environment variable
    gets ignored.
  * #2070 Fix bug #2066 nested types triggering maximum call stack
    error when building typescript components.
- Release 2.4.1
  * Fix #2045 import error when using pytest but dash[testing] is
    not installed.
- Release 2.4.0
  * #1952 Improved callback_context
    - Closes #1818 Closes #1054
    - adds dash.ctx, a more concise name for dash.callback_context
    - adds ctx.triggered_prop_ids, a dictionary of the component
      ids and props that triggered the callback.
    - adds ctx.triggered_id, the id of the component that triggered
      the callback.

OBS-URL: https://build.opensuse.org/request/show/981204
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-dash?expand=0&rev=3
This commit is contained in:
2022-06-08 08:05:19 +00:00
committed by Git OBS Bridge
parent faa9dfed13
commit d45650047d
4 changed files with 153 additions and 22 deletions

View File

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

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

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

View File

@@ -1,3 +1,141 @@
-------------------------------------------------------------------
Tue Jun 7 19:53:02 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to 2.5.0
* #1947 Added pages - a better way to build multi-page apps. For
more information see the forum post.
* #1965 Add component as props.
* #2049 Added wait_for_class_to_equal and wait_for_contains_class
methods to dash.testing
* #2050 Changed find_element and find_elements to accept an
attribute argument that aligns with Selenium's By class,
allowing you to search elements by other attributes. Default
value is CSS_SELECTOR to maintain backwards compatibility with
previous find_elements.
* #2043 Fix bug #2003 in which dangerously_allow_html=True +
mathjax=True works in some cases, and in some cases not.
* #2065 Fix bug #2064 rendering of dcc.Dropdown with a value but
no options.
* #2047 Fix bug #1979 in which DASH_DEBUG as environment variable
gets ignored.
* #2070 Fix bug #2066 nested types triggering maximum call stack
error when building typescript components.
- Release 2.4.1
* Fix #2045 import error when using pytest but dash[testing] is
not installed.
- Release 2.4.0
* #1952 Improved callback_context
- Closes #1818 Closes #1054
- adds dash.ctx, a more concise name for dash.callback_context
- adds ctx.triggered_prop_ids, a dictionary of the component
ids and props that triggered the callback.
- adds ctx.triggered_id, the id of the component that triggered
the callback.
- adds ctx.args_grouping, a dict of the inputs used with
flexible callback signatures.
* #2009 Add support for Promises within Client-side callbacks as
requested in #1364.
* #1956 Add TypeScript components generation.
* #2034 Add link_target prop to dcc.Markdown component. Closes
#1827
* #2035 Add type annotations to testing fixtures.
* #2029 Restrict the number of props listed explicitly in
generated component constructors - default is 250. This
prevents exceeding the Python 3.6 limit of 255 arguments. The
omitted props are still in the docstring and can still be
provided the same as before, they just won't appear in the
signature so autocompletion may be affected.
* #1968 Fix bug #1877, code which uses merge_duplicate_headers
and style_header_conditional to highlight columns, it
incorrectly highlights header cells.
* #2015 Fix bug #1854 in which the combination of
row_selectable="single or multi" and filter_action="native"
caused the JS error.
* #1976 Fix #1962 in which DatePickerSingle and DatePickerRange
are extremely slow when provided a long list of disabled_days.
* #2035 Fix #2033 In-App error reporting does not render HTML.
* #1970 dcc.Dropdown Refactor fixes:
- Fix bug #1868 value does not update when selected option
removed from options.
- Fix bug #1908 Selected options not showing when the value
contains a comma.
* #1751 Rename app.run_server to app.run while preserving
app.run_server for backwards compatibility.
* #1839 The callback decorator returns the original function, not
the wrapped function, so that you can still call these
functions directly, for example in tests. Note that in this
case there will be no callback context so not all callbacks can
be tested this way.
* #2016 Drop the 375px width from default percy_snapshot calls,
keep only 1280px
* #2027 Improve the error message when a user doesn't wrap
children in a list
* #2016, #2032, and #2042 Widespread dependency upgrades
- Upgrade Plotly.js to v2.12.1 (from v2.11.0).
+ Feature release 2.12.0 adds minor ticks and gridlines, as
well as dashed gridlines.
+ Patch release 2.11.1 fixes regl-based traces in strict CSP
mode, however you must manually switch to the strict bundle
to use this.
+ Patch release 2.12.1 fixes several bugs.
- Upgrade black to v22.3.0 for Python 3.7+ - if you use
dash[ci] and you call black, this may alter your code
formatting slightly, including more consistently breaking
Python 2 compatibility.
- Many other mainly JS dependency upgrades to the internals of
Dash renderer and components. These may patch bugs or improve
performance.
-------------------------------------------------------------------
Fri Apr 29 20:56:04 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to 2.3.1
* #1963 Fix #1780 flask shutdown deprecation warning when running
dashduo threaded tests.
* #1995 Fix #1992 ImportError: cannot import name
'get_current_traceback' from 'werkzeug.debug.tbtools'.
- Release 2.3.0
* #1949 Add built-in MathJax support to both dcc.Markdown and
dcc.Graph. A new boolean prop mathjax was added to these two
components, defaulting to False. Set mathjax=True to enable
math rendering. This work uses MathJax v3, although dcc.Graph
and Plotly.js can also be used with MathJax v2.
- In dcc.Markdown this has two flavors: inline math is any
content between single dollar signs, for example "$E=mc^2$",
and "display" math (on its own line, potentially multi-line)
is delimited by double dollar signs.
- In dcc.Graph, most text fields (graph and axis titles, trace
names, scatter and bar text) can use math, and it's enabled
with single dollar sign delimiters. A limitation here is that
currently a given piece of text can only be one or the other:
if math is found, everything outside the delimiters is
ignored. See https://plotly.com/python/LaTeX/ for details.
- For an intro to LaTeX math, see
https://en.wikibooks.org/wiki/LaTeX/Mathematics.
- Big thanks to Equinor for sponsoring this development,
including the related work in Plotly.js!
* #1949 Upgrade Plotly.js to v2.11.0 (from v2.9.0)
- Support for MathJax v3
- fillpattern for scatter traces with filled area
- Every trace type can now be rendered in a stricter CSP
environment, specifically avoiding unsafe-eval. Please note:
the regl-based traces (scattergl, scatterpolargl, parcoords,
and splom) are only strict in the strict bundle, which is NOT
served by default in Dash. To use this bundle with Dash, you
must either download it and put it in your assets/ folder, or
include it as an external_script from the CDN:
https://cdn.plot.ly/plotly-strict-2.11.0.min.js. All other
trace types are strict in the normal bundle.
- Patch release 2.10.1 containing a bugfix for mesh3d traces.
* #1915 Fix bug #1474 when both dcc.Graph and go.Figure have
animation, and when the second animation in Figure is executed,
the Frames from the first animation are played instead of the
second one.
* #1953 Fix bug #1783 in which a failed hot reloader blocks the
UI with alerts.
* #1942 Fix bug #1663 preventing pie traces from sending
customdata with clickData and other events.
-------------------------------------------------------------------
Wed Mar 2 21:52:56 UTC 2022 - Matej Cepl <mcepl@suse.com>

View File

@@ -19,10 +19,8 @@
# We can't test currenty, see below.
%bcond_with test
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-dash
Version: 2.2.0
Version: 2.5.0
Release: 0
Summary: Python framework for building reactive web-apps
License: MIT
@@ -31,14 +29,11 @@ URL: https://github.com/plotly/dash
Source: https://files.pythonhosted.org/packages/source/d/dash/dash-%{version}.tar.gz
BuildRequires: %{python_module Flask >= 1.0.4}
BuildRequires: %{python_module Flask-Compress}
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module dash-core-components >= 1.16.0}
BuildRequires: %{python_module dash-html-components >= 1.1.3}
BuildRequires: %{python_module dash-renderer >= 1.9.1}
BuildRequires: %{python_module dash-table >= 4.11.3}
BuildRequires: %{python_module future}
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}
BuildRequires: %{python_module plotly >= 5.0.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -46,21 +41,21 @@ Requires: python-Flask >= 1.0.4
Requires: python-Flask-Compress
# dash/testing/dash_page.py
Requires: python-beautifulsoup4
Requires: python-dash-core-components >= 1.16.0
Requires: python-dash-html-components >= 1.1.3
Requires: python-dash-renderer >= 1.9.1
Requires: python-dash-table >= 4.11.3
Requires: python-future
Requires: python-dash-core-components = 2.0.0
Requires: python-dash-html-components = 2.0.0
Requires: python-dash-table = 5.0.0
# needed for dash/testing/browser.py
Requires: python-percy
Requires: python-plotly
Requires: python-plotly >= 5.0.0
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-sugar}
BuildRequires: %{python_module pytest-rerunfailures}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module selenium}
@@ -80,8 +75,6 @@ analytical python code.
%prep
%setup -q -n dash-%{version}
sed -i -e '/^#!\//, 1d' dash/extract-meta.js
# no hardcoded versions
sed -i -e 's:==:>=:g' requires-*txt
%build
%python_build
@@ -116,6 +109,6 @@ sed -i -e 's:==:>=:g' requires-*txt
%python_alternative %{_bindir}/dash-update-components
%python_alternative %{_bindir}/renderer
%{python_sitelib}/dash
%{python_sitelib}/dash-%{version}-py*.egg-info
%{python_sitelib}/dash-%{version}*-info
%changelog