Problem:
I’m trying to upload a wheel to the repo, but getting this error:
❯ twine upload --repository-url "http://repo.example.org:8080/pypi/repo/simple" -u admin -p 'pass' "./dist/*"
Uploading distributions to http://repo.example.org:8080/pypi/repo/simple
Uploading zfsup-1.1.1-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 28.1/28.1 kB • 00:00 • 23.6 MB/s
ERROR RedirectDetected: http://repo.example.org:8080/pypi/repo/simple attempted to redirect to /pypi/repo/simple/.
If you trust these URLs, set /pypi/repo/simple/ as your repository URL and try again.
I followed “Quickstart | Single Container” and did this:
$ mkdir -p settings/certs pulp_storage pgsql containers
$ echo "CONTENT_ORIGIN='http://$(hostname):8080'" >> settings/settings.py
What I’m doing wrong? Why it does this weird redirect?