From 57bb29465810939df19f18921e4cf7f4c17c4e06 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Thu, 3 Dec 2015 10:21:29 -0800 Subject: [PATCH] Fix upload_appveyor_builds.py for newer twine. Resolves #97 --- upload_appveyor_builds.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/upload_appveyor_builds.py b/upload_appveyor_builds.py index 2efdd975..aaab93b2 100755 --- a/upload_appveyor_builds.py +++ b/upload_appveyor_builds.py @@ -12,7 +12,7 @@ from six.moves.urllib.parse import urljoin from six.moves.urllib.request import urlopen -from twine.commands.upload import upload +from twine.commands import upload APPVEYOR_API_BASE_URL = 'https://ci.appveyor.com/api/' @@ -124,16 +124,7 @@ def main(): dist = download_artifact(artifact, args.dist_dir, args.overwrite) dists.append(dist) print('Uploading {0} file(s)...'.format(len(dists))) - upload( - repository='pypi', - sign=False, - sign_with='gpg', - identity=None, - username=None, - password=None, - comment=None, - dists=dists - ) + upload.main(('-r', 'pypi') + tuple(dists)) if __name__ == '__main__':