You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If importlib.metadata.version can't find the distribution version, it seems to return the result of a local git describe. I don't know if this is git-specific, or which other SCMs this might try to interact with.
The result of importlib.metadata.version varies depending on whether the local directory happens to be a git repo.
This is unexpected and undocumented. Based on the documentation, I expected that when it couldn't find the distribution version, it would ALWAYS raise and exception or return nothing.
In order to properly document this, you'll have to figure out all of the SCMs that it might interact with.
nevermind, i was just being stupid. the git describe wound up in a local egg or build metadata which i guess is where importlib.metadata.version pulls from
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: