Skip to content

upload to test.pypi.org failing due to similar-project-name error, works on pypi.org #17026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
erexer opened this issue Nov 4, 2024 · 2 comments

Comments

@erexer
Copy link

erexer commented Nov 4, 2024

Describe the bug
I'm following the tutorial Publishing package distribution releases using GitHub Actions CI/CD workflows, which uploads a python package, in this case, the tell package, to both PyPI and test.PyPI. I have tell listed in test.PyPI as a pending publisher. It fails to upload to test.PyPI with the error:

* `invalid-payload`: The name 'tell' is too similar to an existing project. See https://test.pypi.org/help/#project-name for more information.

failing GitHub Action

test.PyPI shows that there's one package that has a similar name, Tell-Tg, which seems dissimilar enough to not trigger the similar-name error. We have the tell project published on PyPI.

Expected behavior
The push to test.PyPI to work. It would be nice if you could link packages on test.PyPI with the package on PyPI.

To Reproduce
Failing GitHub Action
GitHub Action yaml

My Platform
GitHub Actions: runs-on: ubuntu-latest

Additional context
A potential workaround would be to be able to have a different package name on test.PyPI than the actual package, for example, changing the Pending project name to tell-IM3 to distinguish it from another package, but keeping the actual package name listed in the pyproject.toml the same since it's already listed on PyPI as tell.
Image

@erexer erexer added bug 🐛 requires triaging maintainers need to do initial inspection of issue labels Nov 4, 2024
@miketheman miketheman added trusted-publishing and removed requires triaging maintainers need to do initial inspection of issue labels Nov 5, 2024
@miketheman
Copy link
Member

Thanks! Looks like the "pending project name" selector will need to use similar logic to the one that disallows new projects if the name is too similar.
cc @woodruffw

@di
Copy link
Member

di commented Nov 5, 2024

This should be resolved by #16260 and is a duplicate of #16226.

@miketheman miketheman closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants