PyPi not working

Not entirely sure if the built in PyPi is usable or not.

I have managed to push an artifact to it, but I cannot install from it or search it.

pip search osm --trusted-host gitlab.172.21.248.252.xip.io -i     https://gitlab.172.21.248.252.xip.io/api/v4/projects/13/packages/pypi
User for gitlab.172.21.248.252.xip.io: gitlab-ci-token
Password: 
Save credentials to keyring [y/N]: n
ERROR: HTTP error 415 while getting https://gitlab.172.21.248.252.xip.io/api/v4/projects/13/packages/pypi
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/base_command.py", line 188, in _main
    status = self.run(options, args)
  File "/usr/local/lib/python3.7/dist-packages/pip/_internal/commands/search.py", line 52, in run
    pypi_hits = self.search(query, options)
  File "/usr/local/lib/python3.7/dist-packages/pip/_internal/commands/search.py", line 71, in search
    hits = pypi.search({'name': query, 'summary': query}, 'or')
  File "/usr/lib/python3.7/xmlrpc/client.py", line 1112, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.7/xmlrpc/client.py", line 1452, in __request
    verbose=self.__verbose
  File "/usr/local/lib/python3.7/dist-packages/pip/_internal/network/xmlrpc.py", line 36, in request
        response.raise_for_status()
  File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/requests/models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
pip._vendor.requests.exceptions.HTTPError: 415 Client Error: Unsupported Media Type for url: 
https://gitlab.172.21.248.252.xip.io/api/v4/projects/13/packages/pypi

Self hosted gitlab v 13.3.4-ee.

Ah. Needed to add “/simple” to the end of the URL. Now, I cannot get it to work in setup.py:

Reading https://gitlab-ci-token:redacted@gitlab.172.21.248.252.xip.io/api/v4/projects/13/packages/pypi/simple
Download error on https://gitlab-ci-token:redacted@gitlab.172.21.248.252.xip.io/api/v4/projects/13/packages/pypi/simple: [Errno 111] Connection refused -- Some packages may not be found!

Works just fine from the cli:

pip install osm-common --trusted-host gitlab.172.21.248.252.xip.io -i https://gitlab-ci-token:redacted@gitlab.172.21.248.252.xip.io/api/v4/projects/13/packages/pypi/simple
Looking in indexes: https://gitlab-ci-token:****@gitlab.172.21.248.252.xip.io/api/v4/projects/13/packages/pypi/simple
Collecting osm-common
https://gitlab.172.21.248.252.xip.io/api/v4/projects/13/packages/pypi/files/0ca1bde0ac81d77ae859d56bbf745ce230b8c809632485a0e293ec1c106fcf19/osm_common-8.0.0rc1.post12%2Bg2f34fbf.tar.gz (33 kB)