summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2018-07-30 22:53:12 -0700
committerBob Ippolito <bob@redivi.com>2018-07-30 22:53:12 -0700
commitc79cabd06b4ae82c64633bf421a36da60d09ae34 (patch)
tree820cdb6bc0ae36c87f1ec5cd9d3ec45551ad9df0 /scripts
parentffeccb067de52fa6296d9063dec5897a2a79ecea (diff)
downloadxattr-c79cabd06b4ae82c64633bf421a36da60d09ae34.tar.gz
Remove gpg signatures and add BUILD_SDIST=true to latest build
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/artifacts.py25
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)