Skip to content

Commit adcd59f

Browse files
Consistent build / requires (#392)
1 parent 0b1edc0 commit adcd59f

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Diff for: packages/dash-table/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
include_package_data=True,
1515
license=package['license'],
1616
description=package['description'] if 'description' in package else package_name,
17-
install_requires=['dash']
17+
install_requires=[]
1818
)

Diff for: packages/dash-table/tests/dash/app_editor_with_configurable_options.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import dash_table
99
from index import app
1010

11+
sanitized_name = __name__.replace(".", "-")
1112

1213
df = pd.read_csv("./datasets/gapminder.csv")
1314
df_small = pd.read_csv("./datasets/gapminder-small.csv")
@@ -112,7 +113,7 @@ def update_table(*args):
112113
else:
113114
rows = df_small.to_dict("rows")
114115
return dash_table.DataTable(
115-
id=__name__,
116+
id=sanitized_name,
116117
columns=[{"name": i, "id": i} for i in df.columns],
117118
data=rows,
118119
editable=args[0],
@@ -131,7 +132,7 @@ def update_table(*args):
131132

132133
@app.callback(
133134
Output("output", "children"),
134-
[Input(__name__, prop) for prop in AVAILABLE_PROPERTIES],
135+
[Input(sanitized_name, prop) for prop in AVAILABLE_PROPERTIES],
135136
)
136137
def display_propeties(*args):
137138
return html.Div(

Diff for: packages/dash-table/tests/dash/app_multi_header.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import dash_table
22
import pandas as pd
33

4+
sanitized_name = __name__.replace(".", "-")
45

56
def layout():
67
df = pd.read_csv("datasets/gapminder.csv")
78
return dash_table.DataTable(
8-
id=__name__,
9+
id=sanitized_name,
910
columns=[
1011
{"name": ["Year", ""], "id": "year"},
1112
{"name": ["City", "Montreal"], "id": "montreal"},

Diff for: packages/dash-table/tests/dash/app_simple.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import dash_table
22
import pandas as pd
33

4+
sanitized_name = __name__.replace(".", "-")
45

56
def layout():
67
df = pd.read_csv("./datasets/gapminder.csv")
78
return dash_table.DataTable(
8-
id=__name__,
9+
id=sanitized_name,
910
columns=[{"name": i, "id": i} for i in df.columns],
1011
data=df.to_dict("rows"),
1112
)

0 commit comments

Comments
 (0)