Mercurial > hg
view contrib/automation/hgautomation/pypi.py @ 44076:a7c4bcf7018a
phabricator: post revisions in ascending topological order (issue6241)
The parent in phabricator ends up being the last revision posted, so sorting the
user input into ascending order should be enough to preserve the proper
relationships.
Differential Revision: https://phab.mercurial-scm.org/D7874
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 14 Jan 2020 16:37:45 -0500 |
parents | 2372284d9457 |
children |
line wrap: on
line source
# 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])