Message412227
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. |
|
Date |
User |
Action |
Args |
2022-02-01 00:45:26 | cowlinator | set | recipients:
+ cowlinator, docs@python |
2022-02-01 00:45:26 | cowlinator | set | messageid: <1643676326.7.0.597528878626.issue46595@roundup.psfhosted.org> |
2022-02-01 00:45:26 | cowlinator | link | issue46595 messages |
2022-02-01 00:45:26 | cowlinator | create | |
|