def init_module()

in tools/registry.py [0:0]


  def init_module(self, module_name, maintainers, homepage):
    """
    Initialize a module, create the directory and metadata.json file.

    Parameters
    ----------
    module_name : str
        The module name
    maintainers : list of maps of string -> string
        The maintainer information, eg
         [{"name": "John", "email": "john@guugoo.com"},
          {"name": "Yun", "github": "meteorcloudy"}]
    homepage : str
        A URL to the project's homepage

    """
    p = self.root.joinpath("modules", module_name)
    p.mkdir(parents=True, exist_ok=True)

    # Create metadata.json file
    metadata = {
        "maintainers": maintainers,
        "homepage": homepage,
        "versions": [],
        "yanked_versions": {},
    }
    json_dump(p.joinpath("metadata.json"), metadata)