summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2018-09-06 11:48:37 -0700
committerBob Ippolito <bob@redivi.com>2018-09-06 14:49:59 -0700
commit26524a0d907dda3fee69055026922876b309f8f3 (patch)
treed721c7bdae843ab4d7782bbf30ccb79f22eb8ab4 /scripts
parentee25b0c7faeb072e2dd5bc3925bd8dc6fbb04d93 (diff)
downloadsimplejson-26524a0d907dda3fee69055026922876b309f8f3.tar.gz
Prep for v3.16.1 and add JSON lines examplejson-lines-example
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__':