diff options
author | Bob Ippolito <bob@redivi.com> | 2018-07-30 22:53:12 -0700 |
---|---|---|
committer | Bob Ippolito <bob@redivi.com> | 2018-07-30 22:53:12 -0700 |
commit | c79cabd06b4ae82c64633bf421a36da60d09ae34 (patch) | |
tree | 820cdb6bc0ae36c87f1ec5cd9d3ec45551ad9df0 /scripts | |
parent | ffeccb067de52fa6296d9063dec5897a2a79ecea (diff) | |
download | xattr-c79cabd06b4ae82c64633bf421a36da60d09ae34.tar.gz |
Remove gpg signatures and add BUILD_SDIST=true to latest build
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/artifacts.py | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/scripts/artifacts.py b/scripts/artifacts.py index 646d479..6ff2440 100755 --- a/scripts/artifacts.py +++ b/scripts/artifacts.py @@ -43,34 +43,12 @@ 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 filter(matches, artifacts): - if '{}.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 - ] - subprocess.run(cmd, check=True, input=passphrase, encoding='utf8') - - def upload_artifacts(version): artifacts = set(os.listdir('dist')) matches = artifact_matcher(version) args = ['twine', 'upload'] for fn in filter(matches, artifacts): - filename = os.path.join('dist', fn) - args.extend([filename, filename + '.asc']) + args.append(os.path.join('dist', fn)) subprocess.check_call(args) @@ -81,7 +59,6 @@ def main(): pass download_github_artifacts() version = get_version() - sign_artifacts(version) upload_artifacts(version) |