summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/release.py (renamed from scripts/artifacts.py)26
1 files changed, 1 insertions, 25 deletions
diff --git a/scripts/artifacts.py b/scripts/release.py
index a8e41c4..c540640 100644
--- a/scripts/artifacts.py
+++ b/scripts/release.py
@@ -57,28 +57,6 @@ def artifact_matcher(version):
return matches
-def sign_artifacts(version):
- artifacts = set(os.listdir('dist'))
- matches = artifact_matcher(version)
- passphrase = getpass.getpass('\nGPG Passphrase:')
- for fn in artifacts:
- if matches(fn) and '{}.asc'.format(fn) not in artifacts:
- sign_artifact(os.path.join('dist', fn), passphrase)
-
-
-def sign_artifact(path, passphrase):
- cmd = [
- 'gpg',
- '--detach-sign',
- '--batch',
- '--passphrase-fd', '0',
- '--armor',
- path
- ]
- print(' '.join(cmd))
- subprocess.run(cmd, check=True, input=passphrase, encoding='utf8')
-
-
def upload_artifacts(version):
artifacts = set(os.listdir('dist'))
matches = artifact_matcher(version)
@@ -97,9 +75,7 @@ def main():
pass
download_appveyor_artifacts()
download_github_artifacts()
- version = get_version()
- sign_artifacts(version)
- upload_artifacts(version)
+ upload_artifacts(get_version())
if __name__ == '__main__':