Skip to content

Commit ccf1080

Browse files
committed
Split out plotly/package_data into the appropriate distribution package
1 parent c8b566e commit ccf1080

File tree

14 files changed

+6
-4
lines changed

14 files changed

+6
-4
lines changed

chart-studio-package/chart_studio/widgets/graph_widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Load JS widget code
2121
# No officially recommended way to do this in any other way
2222
# http://mail.scipy.org/pipermail/ipython-dev/2014-April/013835.html
23-
js_widget_code = pkgutil.get_data('plotly',
23+
js_widget_code = pkgutil.get_data('chart_studio',
2424
'package_data/graphWidget.js'
2525
).decode('utf-8')
2626

chart-studio-package/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def readme():
77

88

99
setup(
10-
name="chart_studio",
10+
name="chart-studio",
1111
version="4.0.0a1",
1212
author="Chris P",
1313
author_email="[email protected]",
@@ -43,6 +43,7 @@ def readme():
4343
"chart_studio.presentation_objs",
4444
"chart_studio.widgets",
4545
],
46+
package_data={'chart_studio': ['package_data/*']},
4647
install_requires=["plotly", "requests", "retrying>=1.3.3", "six"],
4748
zip_safe=False,
4849
)

plotly-figure-factory-package/plotly/figure_factory/_county_choropleth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def _create_us_counties_df(st_to_state_name_dict, state_to_st_dict):
2626

2727
abs_plotly_dir_path = os.path.dirname(abs_dir_path)
2828

29-
abs_package_data_dir_path = os.path.join(abs_plotly_dir_path,
30-
'package_data')
29+
abs_package_data_dir_path = os.path.join(
30+
abs_plotly_dir_path, 'figure_factory', 'package_data')
3131

3232
shape_pre2010 = 'gz_2010_us_050_00_500k.shp'
3333
shape_pre2010 = os.path.join(abs_package_data_dir_path, shape_pre2010)

0 commit comments

Comments
 (0)