pkglts.local module

Regroup set of functions that make use of local environment inside a package. Just a way to normalize pre defined paths.

pkglts.local.init_namespace_dir(pth, rg_tree)[source]

Populate a directory with specific __init__.py for namespace packages.

Parameters:
  • pth (Path) – path in which to create the files

  • rg_tree (dict) – Structure to store path to templates found

Returns:

None

pkglts.local.pkg_full_name(cfg)[source]

Compute name of src dir according to pkgname and namespace in environment

Parameters:

cfg (Config) – current package configuration

Returns:

(str)

pkglts.local.src_dir(cfg)[source]

Compute name of src dir according to pkgname and namespace in environment

Parameters:

cfg (Config) – current package configuration

Returns:

(Path)