Skip to content

bumpversion.config.create ​

Module for creating a new config file.

create_configuration ​

python
def create_configuration(destination: str, prompt: bool) -> TOMLDocument

Create a new configuration as a TOMLDocument.

Parameters

  • destination: stdout or a path to a new or existing file.
  • prompt: True if the user should be prompted for input.

Returns

  • The TOMLDocument structure with the updated configuration.

get_defaults_from_dest ​

python
def get_defaults_from_dest(destination: str) -> Tuple[dict, TOMLDocument]

Get the default configuration and the configuration from the destination.