deploy_tools.layout#
Members
Represents the layout of the deployment area. |
|
Represents the layout of Modules with the given root path. |
|
Represents the layout used for Modules during the build process. |
- class deploy_tools.layout.ModuleAreaLayout(root: Path)[source]#
Represents the layout of Modules with the given root path.
This is generic to both built and deployed modules.
- get_module_folder(name: str, version: str) Path[source]#
Return the folder holding the given module’s files.
- get_entrypoints_folder(name: str, version: str) Path[source]#
Return the folder holding the given module’s entrypoint scripts.
- class deploy_tools.layout.ModuleBuildLayout(root: Path)[source]#
Represents the layout used for Modules during the build process.
When intended to be used before the Deploy step, this should be done on the same filesystem as the Deployment Area, in order to ensure that all filesystem moves are atomic.
- class deploy_tools.layout.Layout(deployment_root: Path, build_root: Path | None = None)[source]#
Represents the layout of the deployment area.
- get_module_folder(name: str, version: str) Path[source]#
Return the folder holding the given deployed module’s files.
- get_entrypoints_folder(name: str, version: str) Path[source]#
Return the folder holding the given deployed module’s entrypoint scripts.
- get_modulefiles_root(from_deprecated: bool = False) Path[source]#
Return the modulefiles root, or the deprecated one if requested.
- get_modulefile_link(name: str, version: str, from_deprecated: bool = False) Path[source]#
Return the path to the modulefile link for the given module.
- get_modulefile(name: str, version: str) Path[source]#
Return the path to the given deployed module’s modulefile.
- get_module_snapshot_path(name: str, version: str) Path[source]#
Return the path to the given deployed module’s configuration snapshot.
- get_default_version_file(name: str) Path[source]#
Return the path to the file recording a module’s default version.
- property deprecated_modulefiles_root: Path#
Root path holding modulefile links for deprecated modules.
- property build_layout: ModuleBuildLayout#
Return the
ModuleBuildLayoutfor the associated build area.