except OSError as e:
if e.errno != errno.EEXIST:
raise
+
+
+def get_atom_shell_version():
+ return subprocess.check_output(['git', 'describe', '--tags']).strip()
def upload():
os.chdir(SOURCE_ROOT)
bucket, access_key, secret_key = s3_config()
- commit = subprocess.check_output(['git', 'describe', '--tags']).strip()
+ version = get_atom_shell_version()
s3put(bucket, access_key, secret_key, SOURCE_ROOT,
- 'atom-shell/{0}'.format(commit), glob.glob('atom-shell*.zip'))
+ 'atom-shell/{0}'.format(version), glob.glob('atom-shell*.zip'))
update_version(bucket, access_key, secret_key)