mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 05:47:38 -02:30
Fix flake8 error
This commit is contained in:
1
setup.py
1
setup.py
@@ -24,6 +24,7 @@ if os.getenv('OFFICIAL', 'no') == 'yes':
|
|||||||
else:
|
else:
|
||||||
build_tag = '-' + '0.git' + subprocess.Popen("git describe --long | cut -d - -f 2-2", shell=True, stdout=subprocess.PIPE).stdout.read().strip()
|
build_tag = '-' + '0.git' + subprocess.Popen("git describe --long | cut -d - -f 2-2", shell=True, stdout=subprocess.PIPE).stdout.read().strip()
|
||||||
|
|
||||||
|
|
||||||
def get_version():
|
def get_version():
|
||||||
ver = subprocess.Popen("git describe --long | cut -f1-1 -d -", shell=True, stdout=subprocess.PIPE).stdout.read().strip()
|
ver = subprocess.Popen("git describe --long | cut -f1-1 -d -", shell=True, stdout=subprocess.PIPE).stdout.read().strip()
|
||||||
return re.sub(r'-([0-9]+)-.*', r'.\1', ver)
|
return re.sub(r'-([0-9]+)-.*', r'.\1', ver)
|
||||||
|
|||||||
Reference in New Issue
Block a user