kedro.framework.cli.utils.get_pkg_version¶
- kedro.framework.cli.utils.get_pkg_version(reqs_path, package_name)[source]¶
Get package version from requirements.txt.
- Parameters:
- Return type:
- Returns:
Package and its version as specified in requirements.txt.
- Raises:
KedroCliError – If the file specified in
reqs_path
does not exist orpackage_name
was not found in that file.