Skip to main content

update_version

Update the version in the giving py version file.

def update_version(
new_version: str,
dry_run: bool
) - > None

Update the version in the giving py version file.

Parameters

NameTypeDescription
new_versionstrThe semantic version string to be written into the package version file.
dry_runboolIf true, prints the proposed changes to stdout without modifying the file or updating the lock file.

Returns

TypeDescription
NoneNothing is returned; the function performs file I/O and executes a shell command.