mini_arcade.utils.get_package_version¶
Module for getting the installed package version.
Functions¶
|
Return the installed package version. |
Module Contents¶
- mini_arcade.utils.get_package_version.get_package_version(package: str) str[source]¶
Return the installed package version.
This is a thin helper around importlib.metadata.version so games can do:
from mini_arcade_core import get_package_version print(get_package_version(“mini-arcade”))
- Returns:
The version string of the installed package.
- Return type:
str
- Raises:
PackageNotFoundError – If the package is not installed.