I'm trying to set up Poetry to deploy packages to our internal Gitlab Package Registry. According to other sources online the repository ID should be https://gitlab.com/api/v4/projects/<project id>/packages/pypi
, but no matter what I try, Poetry returns
[UploadError]
HTTP Error 404: Not Found
Anyone got this working ?
I actually got this working myself, and the above url is correct. My problem was that I tried to publish to a group (with the group id) and not to an actual project (aka repository).
So here is how to do it:
Add the repository to you poetry.toml
Generate a token in gitlab that can read and write to package repository.
Publish the package