I followed the official documentation for uploading packages to PyPI, as well as the information provided in PyPI readme, but I get a HTTP 400 error each time:
$ 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/
I am using a ~/.pypirc
[distutils]
index-servers =
pypi
pypitest
[pypi]
username=bradaallen
password=[password]
[pypitest]
username=bradaallen
password=[password]
For packages, I am using 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)
When I use python setup.py sdist bdist_wheel upload
I get the same issue:
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
I have not specified the repository, as that is recommendation that is given by the API when uploading. I am seeing a 404 error
at the link that PyPI recommends and am not seeing an alternative site I should use!
This is my first package, and I am not seeing this error elsewhere on the internet. Any thoughts re: what's going on?
twine
do you use? May be you need to create.pypirc
?… – phd.pypirc
15 years ago and have been happily usingpython setup.py upload
ever after. :-))) – phdpython setup.py sdist bdist_wheel upload
. I just ran that code and got this error: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
– Brad Allenhttps://upload.pypi.org/legacy/
in .pypirc, do you?! PS. I switched to twine a year ago, no problems so far. – phd