Skip to content

Remove doctests from uv-keyring#18919

Merged
zanieb merged 4 commits into
astral-sh:mainfrom
zaniebot:claude/fix-uv-issue-18916-HT5db
Apr 8, 2026
Merged

Remove doctests from uv-keyring#18919
zanieb merged 4 commits into
astral-sh:mainfrom
zaniebot:claude/fix-uv-issue-18916-HT5db

Conversation

@zanieb

@zanieb zanieb commented Apr 8, 2026

Copy link
Copy Markdown
Member

Closes #18916

claude added 3 commits April 8, 2026 12:40
- Replace `keyring::` with `uv_keyring::` in doctests (the crate was
  vendored/renamed but doc examples still referenced the old name)
- Add `#[tokio::main]` and `async fn main` to README example since
  Entry methods are async, and mark it `no_run` since it needs a real
  keyring backend
- Add `.await` to `set_password()` calls in mock.rs doctest and wrap
  in a tokio runtime block

Fixes astral-sh#18916

https://claude.ai/code/session_01UJXU3iFvu9dLce56ZvNNDu
This is an internal vendored crate — the doctests duplicate coverage
already provided by unit tests and would break again on any upstream
sync. Mark the code blocks as `ignore` so they remain as documentation
but don't run. Also remove the `doc-comment` dev-dependency and
README doctest inclusion since the README example is now ignored too.

https://claude.ai/code/session_01UJXU3iFvu9dLce56ZvNNDu
@zanieb zanieb marked this pull request as ready for review April 8, 2026 13:25
@zanieb zanieb added the internal A refactor or improvement that is not user-facing label Apr 8, 2026
@zanieb zanieb enabled auto-merge (squash) April 8, 2026 13:26
The mock.rs code blocks duplicated unit test coverage and were prone
to drifting from reality on upstream syncs — remove them entirely,
keeping the prose. The README code block doesn't need `ignore` since
the `doc_comment::doctest!` inclusion was already removed.

https://claude.ai/code/session_01UJXU3iFvu9dLce56ZvNNDu
auto-merge was automatically disabled April 8, 2026 13:50

Head branch was pushed to by a user without write access

@zaniebot zaniebot force-pushed the claude/fix-uv-issue-18916-HT5db branch from 77ae070 to 0e3e9c5 Compare April 8, 2026 13:50
@musicinmybrain

Copy link
Copy Markdown
Contributor

This seems to work for me as a downstream patch. Thanks!

@zanieb zanieb merged commit 6eb5fe0 into astral-sh:main Apr 8, 2026
104 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some issues with doctests in the uv_keyring crate

3 participants