Packaging API

OrionTestPackage

A utility class for constructing Orion packages dynamically.

class artemis.packaging.OrionTestPackage(manifest=None, use_setup=False, module_path=None, validate=True)
add_directory(src, dest=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, dest=None)

Adds a file to the package

Default location is the top level of the package

mkdir(path)

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)

Removes a directory from the package directory

Takes a relative path

remove_file(rel_path)

Removes a file from the package directory

Takes a relative path

save(dest, add_hash: bool = True)

Method to save the package to a directory, handy for debugging the construction of your package