Search code examples
pypi

Upload package to pypi moans "must use HTTPS"


When executing this from the command-line of within my package:

python setup.py sdist bdist_egg upload

I get:

Server response (403): Must access using HTTPS instead of HTTP

This used to work many times until now. Searching for the err-msg didn't give me helpful infos, has anyone a clue what's going on?


Solution

  • Update: Use twine for uploading distributions to pypi.


    Are you using a .pypirc file?

    If you are maybe change the urls to point to the https links?

    [distutils]
    index-servers =
      pypi
      pypitest
    
    [pypi]
    repository=https://pypi.python.org/pypi
    username=your_username
    password=your_password
    
    [pypitest]
    repository=https://testpypi.python.org/pypi
    username=your_username
    password=your_password