Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f62bcafe
Commit
f62bcafe
authored
May 27, 2021
by
Steve Abrams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix group url and add group details in pypi docs
parent
897c1761
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
doc/user/packages/pypi_repository/index.md
doc/user/packages/pypi_repository/index.md
+10
-2
No files found.
doc/user/packages/pypi_repository/index.md
View file @
f62bcafe
...
...
@@ -233,6 +233,14 @@ username = gitlab-ci-token
password
=
${env.CI_JOB_TOKEN}
```
### Authenticate to access packages within a group
Follow the instructions above for the token type, but use the group URL in place of the project URL:
```
shell
https://gitlab.example.com/api/v4/groups/<group_id>/-/packages/pypi
```
## Publish a PyPI package
Prerequisites:
...
...
@@ -357,7 +365,7 @@ Successfully installed mypypipackage-0.0.1
To install the latest version of a package from a group, use the following command:
```
shell
pip
install
--index-url
https://<personal_access_token_name>:<personal_access_token>@gitlab.example.com/api/v4/groups/<group_id>/packages/pypi/simple
--no-deps
<package_name>
pip
install
--index-url
https://<personal_access_token_name>:<personal_access_token>@gitlab.example.com/api/v4/groups/<group_id>/
-/
packages/pypi/simple
--no-deps
<package_name>
```
In this command:
...
...
@@ -376,7 +384,7 @@ provided URL as an additional registry which the client checks if the package is
If you're following the guide and want to install the
`MyPyPiPackage`
package, you can run:
```
shell
pip
install
mypypipackage
--no-deps
--index-url
https://<personal_access_token_name>:<personal_access_token>@gitlab.example.com/api/v4/groups/<your_group_id>/packages/pypi/simple
pip
install
mypypipackage
--no-deps
--index-url
https://<personal_access_token_name>:<personal_access_token>@gitlab.example.com/api/v4/groups/<your_group_id>/
-/
packages/pypi/simple
```
### Package names
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment