##// END OF EJS Templates
graft: split the argument processing from the grafting...
graft: split the argument processing from the grafting This starts splitting the two logic more cleanly and avoid one spilling in the other. This will be useful to introduce more way to do the grafting, e.g. "in memory". For now, there is still a lot spilling from one to another, but this will get cleaned over time.

File last commit:

r43346:2372284d default
r53226:5ab77b93 default
Show More
pypi.py
21 lines | 551 B | text/x-python | PythonLexer
# pypi.py - Automation around PyPI
#
# Copyright 2019 Gregory Szorc <gregory.szorc@gmail.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
# no-check-code because Python 3 native.
from twine.commands.upload import upload as twine_upload
from twine.settings import Settings
def upload(paths):
"""Upload files to PyPI.
`paths` is an iterable of `pathlib.Path`.
"""
settings = Settings()
twine_upload(settings, [str(p) for p in paths])