Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4191458

Browse files
authoredJan 5, 2017
Merge pull request #648 from plotly/local-plot-schema
Local plot schema
2 parents 1f1272d + 33754a7 commit 4191458

17 files changed

+1155
-198
lines changed
 

‎CHANGELOG.md

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

5-
## [Unreleased]
5+
## [1.13.0]
6+
### Added
7+
- Python 3.5 has been added as a tested environment for this package.
8+
69
### Updated
710
- `plotly.plotly.create_animations` and `plotly.plotly.icreate_animations` now return appropriate error messages if the response is not successful.
811

12+
### Changed
13+
- The plot-schema from `https://api.plot.ly/plot-schema` is no longer updated on import.
14+
915
## [1.12.12] - 2016-12-06
1016
### Updated
1117
- Updated `plotly.min.js` to version 1.20.5 for `plotly.offline`.

‎makefile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@ setup_subs :
1818

1919
update_default_schema :
2020
@echo "Making sure the default-schema.json file is up to date"
21-
python -c "import json;\
22-
from plotly.graph_reference import GRAPH_REFERENCE;\
23-
f = open('plotly/graph_reference/default-schema.json', 'w');\
24-
json.dump(GRAPH_REFERENCE, f, indent=4, sort_keys=True,\
25-
separators=(',', ': '));\
21+
python -c "import requests;\
22+
from requests.compat import json as _json;\
23+
response = requests.get('https://api.plot.ly/v2/plot-schema?sha1');\
24+
f = open('plotly/package_data/default-schema.json', 'w');\
25+
_json.dump(response.json()['schema'], f, indent=4,\
26+
sort_keys=True, separators=(',', ': '));\
2627
f.close()"
28+
@echo "Auto-generating graph objects based on updated default-schema."
29+
python update_graph_objs.py
2730

2831
install : sync_subs
2932
@echo ""
@@ -65,7 +68,7 @@ update_plotlyjs_for_offline :
6568
cdn_url = 'https://cdn.plot.ly/plotly-latest.min.js';\
6669
response = urllib2.urlopen(cdn_url);\
6770
html = response.read();\
68-
f = open('./plotly/offline/plotly.min.js', 'w');\
71+
f = open('./plotly/package_data/plotly.min.js', 'w');\
6972
f.write(html);\
7073
f.close()"
7174
@echo "---------------------------------"

‎plotly/files.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
PLOTLY_DIR = os.path.join(os.path.expanduser("~"), ".plotly")
55
CREDENTIALS_FILE = os.path.join(PLOTLY_DIR, ".credentials")
66
CONFIG_FILE = os.path.join(PLOTLY_DIR, ".config")
7-
GRAPH_REFERENCE_FILE = os.path.join(PLOTLY_DIR, ".graph_reference")
87
TEST_DIR = os.path.join(os.path.expanduser("~"), ".test")
98
TEST_FILE = os.path.join(PLOTLY_DIR, ".permission_test")
109

0 commit comments

Comments
 (0)
Please sign in to comment.