Skip to content

Commit 7ee44ef

Browse files
author
Marc-André Rivet
committed
- update changelog
- bump renderer package and lock files - bump dash version - loosen version requirements (>=) - lint
1 parent 3435639 commit 7ee44ef

File tree

9 files changed

+29
-36
lines changed

9 files changed

+29
-36
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
All notable changes to `dash` will be documented in this file.
33
This project adheres to [Semantic Versioning](https://semver.org/).
44

5-
## Unreleased
5+
## [1.14.0] - 2020-07-27
66
### Added
77
- [#1343](https://github.com/plotly/dash/pull/1343) Add `title` parameter to set the
88
document title. This is the recommended alternative to setting app.title or overriding

dash-renderer/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash-renderer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-renderer",
3-
"version": "1.5.1",
3+
"version": "1.6.0",
44
"description": "render dash components in react",
55
"main": "dash_renderer/dash_renderer.min.js",
66
"scripts": {

dash/dash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def __init__(
261261
prevent_initial_callbacks=False,
262262
show_undo_redo=False,
263263
plugins=None,
264-
title='Dash',
264+
title="Dash",
265265
update_title="Updating...",
266266
**obsolete
267267
):

dash/development/component_generator.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def generate_components(
4848
rdepends="",
4949
rimports="",
5050
rsuggests="",
51-
jlprefix=None
51+
jlprefix=None,
5252
):
5353

5454
project_shortname = project_shortname.replace("-", "_").rstrip("/\\")
@@ -138,13 +138,7 @@ def generate_components(
138138
)
139139

140140
if jlprefix is not None:
141-
generate_module(
142-
project_shortname,
143-
components,
144-
metadata,
145-
pkg_data,
146-
jlprefix
147-
)
141+
generate_module(project_shortname, components, metadata, pkg_data, jlprefix)
148142

149143

150144
def safe_json_loads(s):

dash/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.13.4"
1+
__version__ = "1.14.0"

requires-install.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Flask>=1.0.2
22
flask-compress
33
plotly
4-
dash_renderer==1.5.1
5-
dash-core-components==1.10.1
4+
dash_renderer>=1.5.1
5+
dash-core-components>=1.10.1
66
dash-html-components==1.0.3
7-
dash-table==4.8.1
7+
dash-table>=4.8.1
88
future

tests/integration/renderer/test_loading_states.py

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,16 @@ def update(n):
224224
until(lambda: dash_duo.driver.title == expected_update_title, timeout=1)
225225

226226
# check for original title after loading
227-
until(lambda: dash_duo.driver.title == "Page 0" if clientside_title else "Dash", timeout=1)
227+
until(
228+
lambda: dash_duo.driver.title == "Page 0" if clientside_title else "Dash",
229+
timeout=1,
230+
)
228231

229232
with lock:
230233
dash_duo.find_element("#button").click()
231234
# check for update-title while processing callback
232-
if clientside_title and not kwargs.get('update_title', True):
233-
until(lambda: dash_duo.driver.title == 'Page 0', timeout=1)
235+
if clientside_title and not kwargs.get("update_title", True):
236+
until(lambda: dash_duo.driver.title == "Page 0", timeout=1)
234237
else:
235238
until(lambda: dash_duo.driver.title == expected_update_title, timeout=1)
236239

@@ -249,22 +252,18 @@ def update(n):
249252

250253

251254
@pytest.mark.parametrize(
252-
"update_title",
253-
[
254-
None,
255-
'Custom Update Title',
256-
],
255+
"update_title", [None, "Custom Update Title"],
257256
)
258257
def test_rdls004_update_title_chained_callbacks(dash_duo, update_title):
259-
initial_title = 'Initial Title'
258+
initial_title = "Initial Title"
260259
app = dash.Dash("Dash", title=initial_title, update_title=update_title)
261260
lock = Lock()
262261

263262
app.layout = html.Div(
264263
children=[
265-
html.Button(id="page-title", n_clicks=0, children='Page Title'),
264+
html.Button(id="page-title", n_clicks=0, children="Page Title"),
266265
html.Div(id="page-output"),
267-
html.Div(id="final-output")
266+
html.Div(id="final-output"),
268267
]
269268
)
270269
app.clientside_callback(
@@ -281,8 +280,8 @@ def test_rdls004_update_title_chained_callbacks(dash_duo, update_title):
281280
)
282281

283282
@app.callback(
284-
Output("final-output", "children"),
285-
[Input("page-output", "children")])
283+
Output("final-output", "children"), [Input("page-output", "children")]
284+
)
286285
def update(n):
287286
with lock:
288287
return n
@@ -298,7 +297,7 @@ def update(n):
298297
if update_title:
299298
until(lambda: dash_duo.driver.title == update_title, timeout=1)
300299
else:
301-
until(lambda: dash_duo.driver.title == 'Page 1', timeout=1)
300+
until(lambda: dash_duo.driver.title == "Page 1", timeout=1)
302301

303302
dash_duo.wait_for_text_to_equal("#final-output", "1")
304-
until(lambda: dash_duo.driver.title == 'Page 1', timeout=1)
303+
until(lambda: dash_duo.driver.title == "Page 1", timeout=1)

tests/unit/test_configs.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,9 @@ def test_proxy_failure(mocker, empty_environ):
318318

319319
def test_title():
320320
app = Dash()
321-
assert '<title>Dash</title>' in app.index()
321+
assert "<title>Dash</title>" in app.index()
322322
app = Dash()
323-
app.title = 'Hello World'
324-
assert '<title>Hello World</title>' in app.index()
325-
app = Dash(title='Custom Title')
326-
assert '<title>Custom Title</title>' in app.index()
323+
app.title = "Hello World"
324+
assert "<title>Hello World</title>" in app.index()
325+
app = Dash(title="Custom Title")
326+
assert "<title>Custom Title</title>" in app.index()

0 commit comments

Comments
 (0)