msl.package_manager.create module

Create a new package.

msl.package_manager.create.create(*names, **kwargs)[source]

Create a new package.

Parameters:
  • *names – The name(s) of the package(s) to create.

  • **kwargs

    • author – str

      The name of the author to use for the new package. If None then uses utils.get_username() to determine the author’s name. Default is None.

    • directory – str

      The directory to create the new package(s) in. If None then creates the new package(s) in the current working directory. Default is None.

    • email – str

      The author’s email address. If None then uses utils.get_email() to determine the author’s email address. Default is None.

    • namespace – str

      The namespace that the package belongs to. If namespace is None or an empty string then create a new package that is not part of a namespace. Default is the 'msl' namespace.

    • yes – bool

      If True then don’t ask for verification for the author name and for the email address. This argument is only used if you do not specify the author or the email value. The verification step allows you to change the value that was automatically determined before the package is created. The default is to ask for verification before creating the package if the author or the email value was not specified. Default is False.