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
c68d27e9
Commit
c68d27e9
authored
Jan 04, 2021
by
Suzanne Selhorn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated error messages to both be 400 Bad Request
parent
81832751
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
doc/user/packages/pypi_repository/index.md
doc/user/packages/pypi_repository/index.md
+5
-3
No files found.
doc/user/packages/pypi_repository/index.md
View file @
c68d27e9
...
...
@@ -233,15 +233,17 @@ password = ${env.CI_JOB_TOKEN}
## Publish a PyPI package
When publishing packages, note that
:
Prerequisites
:
-
You must
[
authenticate with the Package Registry
](
#authenticate-with-the-package-registry
)
.
-
Your
[
version string must be valid
](
#ensure-your-version-string-is-valid
)
.
-
The maximum allowed package size is 5 GB.
-
You can't upload the same version of a package multiple times. If you try,
you receive the error
`
Validation failed: File name has already been taken
`
.
you receive the error
`
400 Bad Request
`
.
-
You cannot publish PyPI packages to a group, only to a project.
You can then
[
publish a package by using twine
](
#publish-a-pypi-package-by-using-twine
)
.
### Ensure your version string is valid
If your version string (for example,
`0.0.1`
) isn't valid, it gets rejected.
...
...
@@ -308,7 +310,7 @@ python -m twine upload --repository <source_name> dist/<package_file>
You cannot publish a package if a package of the same name and version already exists.
You must delete the existing package first. If you attempt to publish the same package
more than once, a
`404 Bad
r
equest`
error occurs.
more than once, a
`404 Bad
R
equest`
error occurs.
## Install a PyPI package
...
...
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