This class has been deprecated. Please use
Deprecated since version 1.30.0: Deprecated in favor of
Factory function to create package strategy objects.
Parameters: type – Type of Strategy to be created.
If HierarchyPackage is passed as type, an object of HierarchyPackageStrategy will be returned whereas if FlattenPackage is passed, an object of FlattenPackageStrategy will be created.
Returns: Object of strategy requested.
:raises RuntimeError : If type passed is not supported.
create_package(directory_or_file: typing.Union[pathlib.Path, str], *, name: typing.Union[str, NoneType] = None, version: str = 'dev', destination: typing.Union[pathlib.Path, str])¶
Create the zip for a directory or file.
- directory_or_file – Path of the directory or file.
- name – Name to be included in name of Zip.
- version – Version to be included in name of Zip.