Get the version string for the named package. :param distribution_name: The name of the distribution package to query. :return: The version string for the package as defined in the package's "Version" metadata key.
(distribution_name: str)
| 1092 | |
| 1093 | |
| 1094 | def version(distribution_name: str) -> str: |
| 1095 | """Get the version string for the named package. |
| 1096 | |
| 1097 | :param distribution_name: The name of the distribution package to query. |
| 1098 | :return: The version string for the package as defined in the package's |
| 1099 | "Version" metadata key. |
| 1100 | """ |
| 1101 | return distribution(distribution_name).version |
| 1102 | |
| 1103 | |
| 1104 | _unique = functools.partial( |
searching dependent graphs…