[issue46595] [doc] Undocumented behavior of importlib.metadata.version

2022-01-31 Thread cowlinator
Change by cowlinator : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue46595] [doc] Undocumented behavior of importlib.metadata.version

2022-01-31 Thread cowlinator
cowlinator added the comment: 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 -- ___ Python tracker __

[issue46595] [doc] Undocumented behavior of importlib.metadata.version

2022-01-31 Thread cowlinator
cowlinator added the comment: I'd also like to know which `git describe` args it's using -- ___ Python tracker ___ ___ Python-bugs-

[issue46595] [doc] Undocumented behavior of importlib.metadata.version

2022-01-31 Thread cowlinator
New submission from cowlinator : 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`