twine.commands.register module

Module containing the logic for twine register.

twine.commands.register.register(register_settings: Settings, package: str) None[source]

Pre-register a package name with a repository before uploading a distribution.

Pre-registration is not supported on PyPI, so the register command is only necessary if you are using a different repository that requires it.

  • register_settings – The configured options relating to repository registration.

  • package – The path of the distribution to use for package metadata.

twine.commands.register.main(args: List[str]) None[source]

Execute the register command.


args – The command-line arguments.