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:
reqs_path (str | Path) – Path to requirements.txt file.
package_name (str) – Package to search for.
- Return type:
str
- Returns:
Package and its version as specified in requirements.txt.
- Raises:
KedroCliError – If the file specified in
reqs_pathdoes not exist orpackage_namewas not found in that file.