PyPi: Support package installation
Details
Package installation is done using the Legacy Simple API.
Sample command:
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps <package-name>
This command makes 2 request, the first is a GET /simple/<package-name>
, which returns a HTML with links to the packages for each version. The second request is simply a GET
to download the proper distribution file.
A sample request and response can be found in the docs.
Entry Points
GET gitlab.com/api/v4/projects/:id/packages/pypi/simple/<package-name>
: The entry point to get the meta data about the package with the list of versions and files to download.
GET gitlab.com/api/v4/packages/pypi/<file-identifier>
: The url to download the package file.
Authentication
Needs to support Authentication via basic HTTP auth to allow for either CI tokens or PAT.
See #34161 (closed) for full discussion.
Designs
- Show closed items
Relates to
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
added backend devopspackage grouppackage registry package:active labels
- Giorgenes Gelatti added to epic &2554 (closed)
added to epic &2554 (closed)
- Tim Rizzi added Package:P1 label
added Package:P1 label
- Tim Rizzi added backstage [DEPRECATED] label
added backstage [DEPRECATED] label
- Tim Rizzi added Category:Package Registry PyPI Repository labels
added Category:Package Registry PyPI Repository labels
- Tim Rizzi mentioned in issue #209298 (closed)
mentioned in issue #209298 (closed)
- Steve Abrams mentioned in issue #34161 (closed)
mentioned in issue #34161 (closed)
- Steve Abrams added ruby label
added ruby label
- Giorgenes Gelatti changed weight to 2
changed weight to 2
- Giorgenes Gelatti unassigned @ggelatti
unassigned @ggelatti
- Giorgenes Gelatti added workflowready for development label
added workflowready for development label
- 🤖 GitLab Bot 🤖 added [deprecated] Accepting merge requests label
added [deprecated] Accepting merge requests label
- Author Contributor
Collapse replies - Maintainer
I guess the answer here is to go with the boring solution and add a new column.
- Developer
I agree, a new column makes sense. You might check, I think workhorse might supply the hash as a metadata attribute on the uploads already and we just need to save it, otherwise workhorse also needs an update to get the additional hash I think.
- Giorgenes Gelatti mentioned in merge request !27518 (merged)
mentioned in merge request !27518 (merged)
- Author Contributor
@10io @sabrams Went ahead and created an MR: !27518 (merged)
- Daniel Croft added Deliverable label
added Deliverable label
- David Fernandez mentioned in merge request !27030 (merged)
mentioned in merge request !27030 (merged)
- Giorgenes Gelatti assigned to @ggelatti
assigned to @ggelatti
- Giorgenes Gelatti added workflowin dev label and removed workflowready for development label
added workflowin dev label and removed workflowready for development label
- Giorgenes Gelatti mentioned in merge request !27827 (merged)
mentioned in merge request !27827 (merged)
- Author Contributor
Async Issue Update
Status
-
Complete:
20%
-
Confidence:
80%
Notes
Implemented the package versions API. Pending: file download and specs.
Merge Requests
!27827 (merged) -
20% complete, 80% confident, in dev
-
Complete:
- 🤖 GitLab Bot 🤖 removed [deprecated] Accepting merge requests label
removed [deprecated] Accepting merge requests label
- Author Contributor
Async Issue Update
Status
-
Complete:
80%
-
Confidence:
80%
Notes
Package install working end to end.
Merge Requests
!27827 (merged) -
80% complete, 80% confident, in dev
-
Complete:
Collapse replies - Contributor
@ggelatti how's this going?
- Author Contributor
Async Issue Update
Status
-
Complete:
90%
-
Confidence:
80%
Notes
Updated and fixed, and wrote some new specs. There a few more to write but shouldn't take long.
Merge Requests
!27827 (merged) -
90% complete, 80% confident, in dev
-
Complete:
- Author Contributor
Async Issue Update
Status
-
Complete:
100%
-
Confidence:
80%
Notes
Added some final specs and moved to review.
Merge Requests
!27827 (merged) -
100% complete, 80% confident, in review
-
Complete:
- Giorgenes Gelatti mentioned in merge request !28711 (merged)
mentioned in merge request !28711 (merged)
- Giorgenes Gelatti added workflowin review label and removed workflowin dev label
added workflowin review label and removed workflowin dev label
- Author Contributor
Async Issue Update
Status
-
Complete:
100%
-
Confidence:
80%
Notes
Got thumbs up from security. I wrote the docs and it's waiting on review.
Merge Requests
!27827 (merged) -
100% complete, 80% confident, in review
Documentation - !28711 (merged) - 100% done, 90% confident, in review
1 -
Complete:
- Author Contributor
Async Issue Update
Status
-
Complete:
100%
-
Confidence:
80%
Notes
I've added some comments in the code and rebased it.
Merge Requests
!27827 (merged) -
100% complete, 80% confident, in review
Documentation - !28711 (merged) - 100% done, 90% confident, in review
-
Complete:
- Maintainer
Async Issue Update
Status
-
Complete:
100%
-
Confidence:
80%
Notes
backend review done.
This MR has some merge conflicts that we need to resolve. To ease that we should wait for to land on
master
. Once those conflicts are solved, we are good to push it to the maintainer review.Merge Requests
PyPi: Support package installation - !27827 (merged) - in review
-
Complete:
- Developer
Async Issue Update
Status
-
Complete:
100%
-
Confidence:
90%
Notes
backend review done.
The upload MR was merged, so I rebased, fixed the conflicts, and then repointed this MR at master. As soon as the pipeline passes, I will assign it to the maintainer.
Merge Requests
PyPi: Support package installation - !27827 (merged) - in maintainer review
1 -
Complete:
- Author Contributor
Async Issue Update
Status
-
Complete:
100%
-
Confidence:
90%
Notes
Small refactory done from maintainer feedback and moved back to review.
Merge Requests
PyPi: Support package installation - !27827 (merged) - in maintainer review
Edited by Giorgenes Gelatti -
Complete:
- James Lopez closed via merge request !27827 (merged)
closed via merge request !27827 (merged)
- James Lopez mentioned in commit 438d67c1
mentioned in commit 438d67c1
- Tim Rizzi reopened
reopened
- Giorgenes Gelatti added workflowverification label and removed workflowin review label
added workflowverification label and removed workflowin review label
- Achilleas Pipinellis closed via merge request !28711 (merged)
closed via merge request !28711 (merged)
- Achilleas Pipinellis mentioned in commit 6d05f5b6
mentioned in commit 6d05f5b6
- Tim Rizzi marked this issue as related to #10483 (closed)
marked this issue as related to #10483 (closed)