Replace plotly.js version file.
(plotlyjs_version)
| 145 | |
| 146 | |
| 147 | def overwrite_plotlyjs_version_file(plotlyjs_version): |
| 148 | """Replace plotly.js version file.""" |
| 149 | |
| 150 | path = os.path.join(PROJECT_ROOT, "plotly", "offline", "_plotlyjs_version.py") |
| 151 | with open(path, "w") as f: |
| 152 | f.write( |
| 153 | """\ |
| 154 | # DO NOT EDIT |
| 155 | # This file is generated by the updatebundle commands.py command |
| 156 | __plotlyjs_version__ = "{plotlyjs_version}" |
| 157 | """.format(plotlyjs_version=plotlyjs_version) |
| 158 | ) |
| 159 | |
| 160 | |
| 161 | def get_latest_commit_info(repo, branch): |
no test coverage detected