##// END OF EJS Templates
unfinishedstate: suggested `hg update .` (including `.`) to complete update...
unfinishedstate: suggested `hg update .` (including `.`) to complete update `hg update` can update to a different and undesired commit. For users who have commands.update.requiredest=yes, it's even an error to run just `hg update. Differential Revision: https://phab.mercurial-scm.org/D6956

File last commit:

r43177:92593d72 default
r43315:8c4f32b9 default
Show More
pypi.py
25 lines | 569 B | text/x-python | PythonLexer
Gregory Szorc
automation: implement "publish-windows-artifacts" command...
r43177 # 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])