Add a setting for allowing/disallowing duplicate PyPI package uploads
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Release notes
If you use the Package Registry to publish PyPI packages, you may have noticed that you cannot upload duplicate package name/versions. If you do, the original package is overridden. However, this is not in line with PyPI's spec, which allows you to use --skip-existing
for the official PyPI repository.
Moving forward, we will offer a group level setting that allows you to choose if your group should allow or disallow duplicate uploads and if there are any exceptions. This change brings us in line with the official PyPI repository's functionality.
Problem to solve
When using the GitLab Package Registry to publish PyPI packages, a duplicate package name/version will override the existing name/version. But, according to Twine's documentation, this is allowed. Given that many folks in the community have differing opinions on allowing duplicate packages, we will add a setting that allows you to choose whether or not your group will allow it and if there are any exceptions.
Proposal
Add a setting that will allow you to define (at the group level) whether or not duplicate PyPI packages are allowed.