You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there something I'm missing here? Should it just be {"pypi": "PyPI"}.get(repository_name, repository_name) instead? If so, I'd be happy to make a PR.
The text was updated successfully, but these errors were encountered:
yes this line does not make sense to me either. This will always return PyPI. Your suggestion looks good to me. Even if I'm thinking about whether {"pypi": "PyPI"}.get(repository_name) or repository_name might be more clear 🤔 No idea :)
The larger issue seems to be that a repository has a "slug" name (e.g.pypi) and a "display" name (e.g. PyPI). I could imagine this would be useful to support for private repositories as well.
I'll submit a PR for the bug soon. I'm leaning towards the explicit "PyPI" if repsitory_name == "pypi" else repository_name.
-vvv
option).Other details:
Issue
When publishing to a private repository, poetry still outputs
publishing <file> to PyPI
.I traced it to this code, which puzzles me a bit. It seems it will always output
PyPI
poetry/poetry/publishing/publisher.py
Lines 84 to 91 in 02d4d0c
Is there something I'm missing here? Should it just be
{"pypi": "PyPI"}.get(repository_name, repository_name)
instead? If so, I'd be happy to make a PR.The text was updated successfully, but these errors were encountered: