Configure PyPI¤
Configure a trusted publisher¤
Before a package can be published to PyPI after a release, a trusted publisher needs to be configured.
-
Go to the Publishing section of your account.
-
Scroll down to the section Add a new pending publisher, and fill in the fields.
-
PyPI Project Name: The name of the package you want to publish. Usually is the same as the GitHub repository name, removing the
-python
suffix if any. -
Owner: The GitHub username/organization of the owner of the package. For Frequenz projects this is
frequenz-floss
. -
Repository name: The name of the GitHub repository of the package.
-
Workflow name:
ci.yaml
. -
Environment name: Leave empty.
-
-
Click on
Add
. -
Now uploading the new package from GitHub should work.
-
After the new package was uploaded / created.
-
Invite other maintainers to co-maintain the new package.
- Go to your account Projects.
- Click on Manage for the new package.
- Click on Collaborators.
- Scroll down to the section Invite collaborator.
- Fill in the Username and the appropriate Role for the new collaborator.
- Click on Add.
- Repeat steps to add more collaborators.
-