def upload(index_server='pypitest'):
"""Submit build package to index server as found in `~/.pypirc`.
The default is to PyPI test. Typically `~/.pypirc` will contain:
[distutils]
index-servers=
pypi
pypitest
[pypitest]
repository = https://testpypi.python.org/pypi
username = <username>
password = <password>
[pypi]
repository = https://pypi.python.org/pypi
username = <username>
password = <password>
"""
_abort_if_tag_is_not_at_head()
with lcd(_relative_to_fabfile()):
# TODO switch to twine once the following bug has been fixed:
# https://bugs.launchpad.net/pkginfo/+bug/1437570
local(
'python setup.py sdist bdist_wheel upload '
' -r {} --show-response'.format(index_server)
)
评论列表
文章目录