uhd_wrapper package¶
Subpackages¶
Submodules¶
uhd_wrapper.versioning module¶
- uhd_wrapper.versioning.versionFromFile(fileName: str, pattern: str) str ¶
Extract the version from a file.
Searches for pattern, extracts the version string from the first line matching the pattern
- Parameters:
fileName – file to open
pattern – pattern to look for, e.g. “VERSION =”
- Raises:
FileNotFoundError if the file cannot be opened –
ValueError – If the line with the pattern is not found or has wrong format.
- uhd_wrapper.versioning.versionFromPackage(packageName: str) str ¶
Extract version from the pkg_resources
- Parameters:
packageName – package to look for within pkg_resources.get_distribution
- Returns:
version of that package. Otherwise “unknown”
- Return type:
If package is found