Skip to content

chore: Prepare the 0.11.0 release - #222

Merged
slatecipher merged 1 commit into
mainlinefrom
chore/release-0.11.0
Dec 6, 2026
Merged

slatecipher merged 1 commit into
mainlinefrom
chore/release-0.11.0

Conversation

@slatecipher

Copy link
Copy Markdown
Owner

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

Changes

  • version in pyproject.toml goes from 0.10.0 to 0.11.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.11.0] - 2026-12-06, with a new, empty ## [Unreleased] above it, and the link references compare v0.11.0. If you merge on a later day, change the date to match.

What's in 0.11.0

Added

  • A resource can use the resources its client mounts: declare each with an annotation and no value, under the name the client mounts it at, as in pokemon: PokemonResource, and self.pokemon is the client's pokemon, typed as declared. Methods and @tool methods that combine several resources can live on a resource of their own, in their own module, rather than on the client class. When a client class is defined, it must mount each resource its resources declare, nested ones included, or DefinitionError is raised. A declaration with a value, or of the other kind, raises DefinitionError too. See Using the client's other resources.

Changed

  • A resource's annotations are evaluated when the class is defined, to find the resources it declares. One that can't be evaluated raises DefinitionError, such as one naming a class imported only under TYPE_CHECKING, or defined further down the module, with from __future__ import annotations or on Python 3.14. Import the class at runtime, and define it before the resource. With Ruff's TC rules, add clientx.Resource and clientx.AsyncResource to runtime-evaluated-base-classes.

After merging

Publish the draft release v0.11.0, on GitHub or with gh release edit v0.11.0 --draft=false, right after merging: it tags v0.11.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.11.0 | gh release edit v0.11.0 --notes-file -.

- Set `version` to 0.11.0: `[Unreleased]` has Added and Changed, 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.11.0] - 2026-12-06`
  and add its compare link.
@slatecipher slatecipher added maintenance Tooling, configuration, and other upkeep release Release preparation and publishing labels Dec 6, 2026
@slatecipher slatecipher self-assigned this Dec 6, 2026
@slatecipher
slatecipher merged commit bf05fd1 into mainline Dec 6, 2026
8 checks passed
@slatecipher
slatecipher deleted the chore/release-0.11.0 branch December 6, 2026 20:39
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