diff options
author | Bob Ippolito <bob@redivi.com> | 2018-09-06 11:48:37 -0700 |
---|---|---|
committer | Bob Ippolito <bob@redivi.com> | 2018-09-06 14:49:59 -0700 |
commit | 26524a0d907dda3fee69055026922876b309f8f3 (patch) | |
tree | d721c7bdae843ab4d7782bbf30ccb79f22eb8ab4 /scripts | |
parent | ee25b0c7faeb072e2dd5bc3925bd8dc6fbb04d93 (diff) | |
download | simplejson-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__': |