runway.dependency_managers.base_classes module¶
Base classes for dependency managers.
- class runway.dependency_managers.base_classes.DependencyManager[source]¶
Bases:
CliInterfaceMixin
Dependency manager for the AWS Lambda runtime.
Dependency managers are interfaced with via subprocess to ensure that the correct version is being used. This is primarily target at Python dependency manager that we could import and use directly.
- __init__(context: CfnginContext | RunwayContext, cwd: StrPath) None [source]¶
Instantiate class.
- Parameters:
context – CFNgin or Runway context object.
cwd – Working directory where commands will be run.
- classmethod dir_is_project(directory: StrPath, **_DependencyManager__kwargs: Any) bool [source]¶
Determine if the directory contains a project for this dependency manager.
- Parameters:
directory – Directory to check.
- property version: Version¶
Get executable version.