Replace minified JavaScript bundle.json with web copy.
(url)
| 134 | |
| 135 | |
| 136 | def overwrite_bundle(url): |
| 137 | """Replace minified JavaScript bundle.json with web copy.""" |
| 138 | |
| 139 | req = requests.get(url) |
| 140 | print("url:", url) |
| 141 | assert req.status_code == 200 |
| 142 | path = os.path.join(PROJECT_ROOT, "plotly", "package_data", "plotly.min.js") |
| 143 | with open(path, "wb") as f: |
| 144 | f.write(req.content) |
| 145 | |
| 146 | |
| 147 | def overwrite_plotlyjs_version_file(plotlyjs_version): |
no test coverage detected