Skip to content

Version doesn't include git commit hash when installed via "pip3 install ." #2547

Closed
@gvanrossum

Description

@gvanrossum

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.)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions