-
Hello, I am wondering how we can push two packages... We have a package lets say
but then I am getting a server error
does it mean that I have to somehow create and multiple tokens? The build is here: https://github.com/PyTorchLightning/pytorch-lightning/runs/1174122197 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Some people would use dev-releases of the same dist name. e.g. something like But if you want a separate package name, bear in mind that API tokens can be either user-wide or project-scoped: https://pypi.org/help/#apitoken. If you use a user-scoped token, you should be able to create a project with the new name with the first upload. Although, it is recommended to use project-scoped tokens for security purposes. This one will only work if the project already exists so you could do a manual upload first and then switch to using a project-scoped API token. Also, remember that PyPI and TestPyPI have completely separate accounts (hence different credentials: https://pypi.org/help/#invalid-auth). |
Beta Was this translation helpful? Give feedback.
Some people would use dev-releases of the same dist name. e.g. something like
pytorch_lightning_nightly-1.0.dev20200928-py3-none-any.whl
.But if you want a separate package name, bear in mind that API tokens can be either user-wide or project-scoped: https://pypi.org/help/#apitoken. If you use a user-scoped token, you should be able to create a project with the new name with the first upload. Although, it is recommended to use project-scoped tokens for security purposes. This one will only work if the project already exists so you could do a manual upload first and then switch to using a project-scoped API token.
Also, remember that PyPI and TestPyPI have completely separate accounts (hen…