MCPcopy Index your code
hub / github.com/plotly/plotly.py / bump_version

Function bump_version

commands.py:439–463  ·  view source on GitHub ↗

Bump the version of plotly.py everywhere it needs to be updated.

(args)

Source from the content-addressed store, hash-verified

437
438
439def bump_version(args):
440 """Bump the version of plotly.py everywhere it needs to be updated."""
441 new_version = args.version
442 new_date = time.strftime("%Y-%m-%d")
443
444 success = True
445
446 success = success and bump_version_citation_cff(new_version, new_date)
447 success = success and bump_version_changelog_md(new_version, new_date)
448 success = success and bump_version_package_json(new_version)
449 # Do this one last since it's the most visible,
450 # so that if one of the above commands fails it will be easier to notice
451 success = success and bump_version_pyproject_toml(new_version)
452
453 if not success:
454 print(
455 "\n\n*** FAILED to update version for at least one file.",
456 "Please check the output above for details. ***\n\n",
457 )
458 exit(1)
459
460 print(
461 f"\n\n*** SUCCESSFULLY updated version to {new_version}.",
462 "Please verify the result using `git diff`. ***\n\n",
463 )
464
465
466def make_parser():

Callers 1

mainFunction · 0.85

Calls 4

Tested by

no test coverage detected