6 except ImportError
as e:
8 "tomlkit not found. Please make sure to install the package.\n" 9 "If it is already installed, make sure that it is included in the search path." 15 with open(
"pyproject.toml")
as f:
17 if "project" not in doc
or "version" not in doc[
"project"]:
18 print(
"pyproject.toml doesn't contain project / version")
20 doc[
"project"][
"version"] = version
21 with open(
"pyproject.toml",
"w")
as f:
25 if __name__ ==
"__main__":
26 if len(sys.argv) == 2:
29 print(
"you must provide the version as argument.")
def update_pyproject_version(version)