Publishing to PyPI¶
gsuite-manager uses Trusted Publishers for secure, tokenless PyPI publishing.
One-Time Setup (already done in CI)¶
- Go to https://pypi.org/manage/account/publishing/
- Add a new pending publisher:
- PyPI project name:
gsuite-manager - Owner:
nopperabbo - Repository:
gsuite-manager - Workflow name:
release.yml - Environment:
release - Create a GitHub environment named
releasein repo Settings → Environments
How Releases Work¶
- Update
versioninpyproject.toml - Update
CHANGELOG.mdwith new version section - Commit:
git commit -m "chore: bump version to X.Y.Z" - Tag:
git tag vX.Y.Z - Push:
git push origin main --tags
The release.yml workflow will automatically:
- Run tests
- Build the package (wheel + sdist)
- Publish to PyPI via trusted publisher (OIDC, no tokens needed)
- Create a GitHub Release with changelog and dist artifacts
Verify¶
After first publish: pip install gsuite-manager should work.