Packaging API
Copyright (C) 2023 Cadence Design Systems, Inc. (Cadence)
OrionTestPackage
A utility class for constructing Orion packages dynamically.
- class artemis.packaging.OrionTestPackage(manifest: Dict | None = None, use_setup: bool = False, module_path: str | None = None, validate: bool = True)
- add_directory(src: str | bytes | PathLike, dest: str | bytes | PathLike | None = None) None
Copies the contents of the directory to the package directory
Default location is the top level of the package. Will create any subdirectories necessary
- add_file(src: str | bytes | PathLike, dest: str | bytes | PathLike | None = None) None
Adds a file to the package
Default location is the top level of the package
- mkdir(path: str | bytes | PathLike) None
Creates a directory within the package
If a path that has multiple levels is specified, it will honor the levels within the package
- package(add_hash: bool = True) str
Returns the path to the generated package
- remove_directory(rel_path: str | bytes | PathLike) None
Removes a directory from the package directory
Takes a relative path
- remove_file(rel_path: str | bytes | PathLike) None
Removes a file from the package directory
Takes a relative path
- save(dest: str | bytes | PathLike, add_hash: bool = True) None
Method to save the package to a directory, handy for debugging the construction of your package