This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cowlinator
Recipients cowlinator, docs@python
Date 2022-02-01.00:45:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643676326.7.0.597528878626.issue46595@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-02-01 00:45:26cowlinatorsetrecipients: + cowlinator, docs@python
2022-02-01 00:45:26cowlinatorsetmessageid: <1643676326.7.0.597528878626.issue46595@roundup.psfhosted.org>
2022-02-01 00:45:26cowlinatorlinkissue46595 messages
2022-02-01 00:45:26cowlinatorcreate