We encountered an error when pushing a lib to gitlab package registry.
I’ve tried to reproduce the error on my local machine and here is the result.
➜ katapack twine upload --verbose --repository gitlab dist/*
INFO Using configuration from /home/b3ns44d/.pypirc
Uploading distributions to https://internal_gitlab_url.com/api/v4/projects/905/packages/pypi
INFO dist/mypypipackage-0.0.1-py3-none-any.whl (1.1 KB)
INFO dist/mypypipackage-0.0.1.tar.gz (0.9 KB)
INFO username set from config file
INFO password set from config file
INFO username: <username>
INFO password: <hidden>
Uploading mypypipackage-0.0.1-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.0/4.0 kB • 00:00 • ?
INFO Response from https://internal_gitlab_url.com/api/v4/projects/905/packages/pypi:
400 Bad Request
INFO {"message":" is not a recognized provider"}
ERROR HTTPError: 400 Bad Request from https://internal_gitlab_url.com/api/v4/projects/905/packages/pypi
Bad Request
I’ve followed this guide here and started from a new repo: PyPI packages in the Package Registry | GitLab
so I don’t think that this is an issue related to the name or version
Gitlab version: 15.4.1
Thanks in advance.