When running mypy directly out of the git repo, the version (reported by -V or --version) includes the git commit hash. It would be nice if it was also included when mypy was installed directly from the repo, e.g. using pip3 install . or perhaps via pip3 install git+git://github.com/python/mypy.git. However we should make sure that when we actually build a distribution file, that file only includes the base version. (Or perhaps only/exactly when the HEAD revision matches a tag whose name matches the base version?)
(See also PR #2452.)
When running mypy directly out of the git repo, the version (reported by
-Vor--version) includes the git commit hash. It would be nice if it was also included when mypy was installed directly from the repo, e.g. usingpip3 install .or perhaps viapip3 install git+git://github.com/python/mypy.git. However we should make sure that when we actually build a distribution file, that file only includes the base version. (Or perhaps only/exactly when the HEAD revision matches a tag whose name matches the base version?)(See also PR #2452.)