Skip to content

chore: Prepare the 0.9.0 release - #216

Merged
slatecipher merged 1 commit into
mainlinefrom
chore/release-0.9.0
Dec 4, 2026
Merged

slatecipher merged 1 commit into
mainlinefrom
chore/release-0.9.0

Conversation

@slatecipher

Copy link
Copy Markdown
Owner

Prepares the 0.9.0 release, opened by make release-pr: [Unreleased] has Added and Fixed, so it's a minor version.

Changes

  • version in pyproject.toml goes from 0.8.0 to 0.9.0.
  • uv.lock changes only clientx's own version. It was locked with the latest uv, so its revision stays the same.
  • ## [Unreleased] in CHANGELOG.md becomes ## [0.9.0] - 2026-12-04, with a new, empty ## [Unreleased] above it, and the link references compare v0.9.0. If you merge on a later day, change the date to match.

What's in 0.9.0

Added

  • A resource and an endpoint can set headers for their requests, with a headers= class argument on Resource and AsyncResource and a headers= option on each verb decorator, as in @method.get("/export", headers={"Accept": "text/csv"}). They're added to each request when it's built, so the most specific wins, name by name: the client's headers, then the resource's, then the endpoint's, then a Header() argument passed on the call. A resource subclass's headers are merged over its parent's, and a resource mounted on another doesn't get its headers. They're checked like a client class's headers=.
  • A verb's dump_options= takes a DumpOptions, passed to pydantic's model_dump for every value of the endpoint: exclude_unset, exclude_none, exclude_defaults and context. @method.patch("/me", dump_options=DumpOptions(exclude_unset=True)) sends only the fields a model was given, and context= reaches your serializers as info.context. The endpoint's parameters are fields too, so with exclude_unset a parameter the caller didn't pass isn't sent, even with a default. A path parameter with a default, combined with exclude_unset or exclude_defaults, raises DefinitionError when the class is defined.

Fixed

  • The verb decorators' and @tool's tags= take any sequence of strings, such as a tuple, as a resource's tags= does. Type checkers used to reject anything but a list.
  • tags= given as a string, such as tags="users", raises DefinitionError on a resource, a verb decorator or @tool, rather than making each character a tag.

After merging

Publish the draft release v0.9.0, on GitHub or with gh release edit v0.9.0 --draft=false, right after merging: it tags v0.9.0 on mainline. The Release workflow checks that the tag matches the project version, builds and smoke-tests the package, publishes it to TestPyPI, and waits for your approval on the pypi environment before it publishes to PyPI.

If you change the changelog here, update the draft's notes before publishing: uv run python scripts/release.py notes 0.9.0 | gh release edit v0.9.0 --notes-file -.

- Set `version` to 0.9.0: `[Unreleased]` has Added and Fixed, so it's a minor version.
- Relock with the latest uv; only clientx's own version changes.
- Date the changelog's `[Unreleased]` section as `[0.9.0] - 2026-12-04`
  and add its compare link.
@slatecipher slatecipher added maintenance Tooling, configuration, and other upkeep release Release preparation and publishing labels Dec 4, 2026
@slatecipher slatecipher self-assigned this Dec 4, 2026
@slatecipher
slatecipher merged commit 3967331 into mainline Dec 4, 2026
8 checks passed
@slatecipher
slatecipher deleted the chore/release-0.9.0 branch December 4, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Tooling, configuration, and other upkeep release Release preparation and publishing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant