import makefun
found_version, detailed_results = get_module_version(makefun)
print(detailed_results)
yields
Version '1.8.0' found for module 'makefun' by strategy 'get_unzipped_wheel_or_egg_version', after the following failed attempts:
- Attempts for module 'makefun':
- <get_module_version_attr>: module 'makefun' has no attribute '__version__'
- <get_version_using_pkgresources>: Another distribution of the same package (with version '1.8.0') is installed, but is not the one that was imported
- <get_builtin_module_version>: Module makefun is not a built-in module
- <get_unzipped_wheel_or_egg_version>: SUCCESS: 1.8.0
While it should have found it sooner, in get_version_using_pkgresources. The error message is not right: I am using the installed package, not any fancy one.
yields
While it should have found it sooner, in
get_version_using_pkgresources. The error message is not right: I am using the installed package, not any fancy one.