fabfile.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:rq-scheduler-dashboard 作者: lamflam 项目源码 文件源码
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)
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号