Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 86e9fc2

Browse files
committed
Merge pull request #106 from asottile/fix_appveyor_uploader
Fix upload_appveyor_builds.py for newer twine. Resolves #97
2 parents 7791304 + 57bb294 commit 86e9fc2

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

upload_appveyor_builds.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from six.moves.urllib.parse import urljoin
1414
from six.moves.urllib.request import urlopen
15-
from twine.commands.upload import upload
15+
from twine.commands import upload
1616

1717

1818
APPVEYOR_API_BASE_URL = 'https://ci.appveyor.com/api/'
@@ -124,16 +124,7 @@ def main():
124124
dist = download_artifact(artifact, args.dist_dir, args.overwrite)
125125
dists.append(dist)
126126
print('Uploading {0} file(s)...'.format(len(dists)))
127-
upload(
128-
repository='pypi',
129-
sign=False,
130-
sign_with='gpg',
131-
identity=None,
132-
username=None,
133-
password=None,
134-
comment=None,
135-
dists=dists
136-
)
127+
upload.main(('-r', 'pypi') + tuple(dists))
137128

138129

139130
if __name__ == '__main__':

0 commit comments

Comments
 (0)