Merge pull request #1133 from ZyX-I/build-version
Record git hash in dev version
This commit is contained in:
commit
c2425f6a2a
10
setup.py
10
setup.py
|
@ -52,9 +52,17 @@ except Exception as e:
|
||||||
else:
|
else:
|
||||||
can_use_scripts = False
|
can_use_scripts = False
|
||||||
|
|
||||||
|
|
||||||
|
def get_version():
|
||||||
|
try:
|
||||||
|
return 'dev-' + subprocess.check_output(['git', 'rev-parse', 'HEAD']).strip()
|
||||||
|
except Exception as e:
|
||||||
|
return 'dev'
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='powerline-status',
|
name='powerline-status',
|
||||||
version='dev',
|
version=get_version(),
|
||||||
description='The ultimate statusline/prompt utility.',
|
description='The ultimate statusline/prompt utility.',
|
||||||
long_description=README,
|
long_description=README,
|
||||||
classifiers=[
|
classifiers=[
|
||||||
|
|
Loading…
Reference in New Issue