mirror of
https://github.com/ansible/awx.git
synced 2026-02-03 18:48:12 -03: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:
|
||||
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():
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user