8000 Add git commit hash to version when not building wheel by pkch · Pull Request #2992 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Add git commit hash to version when not building wheel #2992

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 14, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@
# alternative forms of installing, as suggested by README.md).
from setuptools import setup
from setuptools.command.build_py import build_py
from mypy.version import base_version
from mypy.version import base_version, __version__
from mypy import git

git.verify_git_integrity_or_abort(".")

version = base_version
if any(dist_arg in sys.argv[1:] for dist_arg in ('bdist_wheel', 'sdist')):
version = base_version
else:
version = __version__
description = 'Optional static typing for Python'
long_description = '''
Mypy -- Optional Static Typing for Python
Expand Down
0