summaryrefslogtreecommitdiff
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
parentffeccb067de52fa6296d9063dec5897a2a79ecea (diff)
downloadxattr-c79cabd06b4ae82c64633bf421a36da60d09ae34.tar.gz
Remove gpg signatures and add BUILD_SDIST=true to latest build
-rw-r--r--.travis.yml2
-rwxr-xr-xscripts/artifacts.py25
2 files changed, 2 insertions, 25 deletions
diff --git a/.travis.yml b/.travis.yml
index e995af5..91c2f0c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -25,7 +25,7 @@ matrix:
- name: "OSX: 3.7"
os: osx
language: generic
- env: PYENV_VERSION=3.7.0
+ env: PYENV_VERSION=3.7.0 BUILD_SDIST=true
osx_image: xcode_9.4
- name: "OSX: 3.6"
os: osx
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)