Python packages publish to PyPI. Merging a regeneration PR does not publish.
Bump the version in pyproject.toml, merge, tag vX.Y.Z, and let
.github/workflows/publish.yml upload the wheel.
Do not twine upload from a laptop. Publishing uses trusted
publishing: GitHub Actions
proves its identity to PyPI. There is no API token in this repo.
These steps are in the GitHub and PyPI UIs, not in git.
-
Create a pypi.org account (work email) and turn on two-factor authentication. Prefer the Wonder Inventions org if it already exists.
-
In this GitHub repo: Settings → Environments → New environment, name it
pypi. Optional: add yourself as a required reviewer so a tag push cannot publish without a click. -
On PyPI, open pending publishers and add:
Field Value PyPI project name roamhqOwner WonderInventionsRepository roam-sdk-pythonWorkflow name publish.ymlEnvironment name pypiThe names must match this workflow and the GitHub environment exactly. The first successful upload creates the PyPI project.
roamhq was free on PyPI as of the first generation (roam-sdk is taken).
- Merge the "Regenerate SDK from OpenAPI spec" PR after setting the
version in
pyproject.toml. - Tag
vX.Y.Zto match (git tag vX.Y.Z && git push origin vX.Y.Z). That runs Publish. - If the environment requires a reviewer, approve the deployment.
The first v0.1.0 tag already exists, so it will not retrigger on its
own. After this workflow is on master, publish that version with
Actions → Publish → Run workflow.
When it succeeds: https://pypi.org/project/roamhq/ and pip install roamhq.