我遵循了将包上载到PyPI的官方文档,以及PyPI自述文件中提供的信息,但是每次都会出现HTTP 400错误:$ twine upload dist/*
Uploading distributions to https://upload.pypi.org/legacy/
Enter your username: bradaallen
Enter your password:
Uploading brad_nlp_helpers-0.1.1-py3-none-any.whl
HTTPError: 400 Client Error: home_page: Invalid URI for url:
https://upload.pypi.org/legacy/
我用的是~/.pypirc
^{pr2}$
对于包,我使用twine version 1.9.1 (pkginfo: 1.4.1, requests: 2.12.4, setuptools: 27.2.0, requests-toolbelt: 0.8.0, tqdm: 4.14.0)
当我使用python setup.py sdist bdist_wheel upload时,我会遇到相同的问题:Submitting dist\brad_nlp_helpers-0.1.1.tar.gz to
https://upload.pypi.org/legacy/ Upload failed (400): home_page: Invalid URI
error: Upload failed (400): home_page: Invalid URI
我没有指定存储库,因为这是API在上传时给出的建议。我在PyPI推荐的链接上看到了一个404 error,我没有看到我应该使用的替代站点!在
这是我的第一个软件包,我在网上没有看到这个错误。有什么想法吗?在