Releasing¶
This checklist covers a PyPI release and the repository metadata that makes it discoverable.
Before merging¶
main is protected. Create a pull request and do not push directly to main.
- Run the full checks:
uv sync --locked
uv run ruff check .
uv run ruff format --check .
uv run pytest -q
uv run coverage run -m pytest
uv run coverage report
- Bump
__version__insrc/tynex/__init__.py(the package version source) in the release pull request. - Update
CHANGELOG.mdanddocs/roadmap.mdif needed. - Review the README install path and
tynex --helpsubcommand list. - Update the
versiondefault inaction.ymland the action examples to the version being released.
Publish¶
The release workflow in .github/workflows/ci.yml runs after the check matrix on every push to main. The release job reads the version. If that version is already on PyPI, it skips. Otherwise it creates the v<version> tag and builds the distributions from that tag. The publish job then publishes those distributions with PyPI Trusted Publishing. The same tag is passed to the container workflow. CI does not commit to main or bump the version automatically; bump it in the release pull request.
If a tag already exists on a different commit, the release job stops and asks for a new version in a pull request. After the release workflow succeeds, verify the release before announcing it:
uvx --from 'tynex[cli]==0.3.0' tynex --version
Then create a GitHub Release from the tag CI created. Paste the changelog entry. PyPI Trusted Publishing attaches PEP 740 provenance; confirm the provenance panel.
Documentation¶
The Docs workflow builds mkdocs.yml with Zensical and deploys to GitHub Pages. Enable Pages with "GitHub Actions" as the source in repository settings.
Repository settings¶
These cannot be set from a file; check them when preparing a release:
- Set the repository homepage to https://jamshedazhar.github.io/tynex/.
- Add topics:
ai,coding-agent,llm,terminal,cli,python,mcp,developer-tools,anthropic,openai. - Upload a social preview image;
assets/social-preview.pngis ready to use. - Enable Discussions if you want a community space.
- Confirm the PyPI trusted publisher matches
ci.yml, environmentpypi. - Optionally set the repository variables
RELEASE_BOT_NAMEandRELEASE_BOT_EMAILfor release tags. The defaults are the GitHub Actions bot. - Protect
main: require a pull request, block direct pushes and force pushes, and require the CI checks.
Container image¶
The release job calls the container workflow for the new tag, and manual pushes of v* tags also build the image. Pull the image and smoke-test it with tynex --version.