# Renkulab PyPI Repository

**URL:** <https://renku.discourse.group/t/renkulab-pypi-repository/368>\
**Category:** RenkuLab\
**Created:** [15 July 2021 09:02 UTC](https://renku.discourse.group/t/renkulab-pypi-repository/368 "2021-07-15T09:02:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pascal.baumann](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/pascal.baumann/32/532_2.png) [@pascal.baumann](https://renku.discourse.group/u/pascal.baumann)\
**Post date:** [15 July 2021 09:02 UTC](https://renku.discourse.group/t/renkulab-pypi-repository/368/1 "2021-07-15T09:02:46Z")

</div>

I tried to push a wheel package to my Renku GitLab repository but getting error 404, am I doing something wrong or is usage of the PyPI repository in Renku not enabled?

---

<div class="post-metadata">

**Author:** ![vigsterkr](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/vigsterkr/32/267_2.png) [@vigsterkr](https://renku.discourse.group/u/vigsterkr)\
**Post date:** [16 July 2021 06:53 UTC](https://renku.discourse.group/t/renkulab-pypi-repository/368/2 "2021-07-16T06:53:27Z")

</div>

Hi Pascal!

thanks for reaching out!

I’ve just tested the functionality (hosting a pypi package on gitlab) based on the tutorial found [here](https://docs.gitlab.com/ee/user/packages/pypi_repository/).

i’ve used [Authenticate with a personal access token](https://docs.gitlab.com/ee/user/packages/pypi_repository/#authenticate-with-a-personal-access-token) solution to authenticate with the registry.

in the `~/.pypirc` the `repository` URL was set to: `https://renkulab.io/gitlab/api/v4/projects/12572/packages/pypi`

using these i’ve successfully managed to publish a pypi package in the gitlab registry.

could you maybe share the URL you’ve set in your `pypirc`?  
as based on the tutorial in case of renku’s gitlab instance you should set it the following way:  
`https://renkulab.io/gitlab/api/v4/projects/<project_id>/packages/pypi`

NOTE: it’s the project ID and not the project’s name. you can find this information when you view your renku project on gitlab and on the project details page it is right under the project’s name.

---

<div class="post-metadata">

**Author:** ![pascal.baumann](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/pascal.baumann/32/532_2.png) [@pascal.baumann](https://renku.discourse.group/u/pascal.baumann)\
**Post date:** [16 July 2021 08:14 UTC](https://renku.discourse.group/t/renkulab-pypi-repository/368/3 "2021-07-16T08:14:41Z")

</div>

Hi Viktor!

Thank you for taking the time to look into my problem. I tried the authenticate with job token from the same tutorial. This is the [repository itself](https://renkulab.io/gitlab/pascal.baumann/wheel-dummy-project).  
I saw that I used `https://repository.renkulab.io` instead of `https://renkulab.io`, and also omitted `/gitlab/` from the url. Using the correct URL fixed the issue, thank you very much!

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [16 July 2021 08:31 UTC](https://renku.discourse.group/t/renkulab-pypi-repository/368/4 "2021-07-16T08:31:53Z")

</div>

btw, thanks @pascal.baumann for bringing this up, I wasn’t even aware that GitLab can function as a PyPI package registry… 😅 🙌

---

<div class="post-metadata">

**Author:** ![pascal.baumann](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/pascal.baumann/32/532_2.png) [@pascal.baumann](https://renku.discourse.group/u/pascal.baumann)\
**Post date:** [16 July 2021 08:54 UTC](https://renku.discourse.group/t/renkulab-pypi-repository/368/5 "2021-07-16T08:54:46Z")

</div>

You are welcome 😃  
The repository is now updated with CI/CD and works, but is most definitely not implemented in a best practice kind of way though 😅
