Skip to content

release: v0.13.1 — suppress discovery cache warning - #11

Merged
JRemitz merged 2 commits into
mainfrom
release/v0.13.1
Jun 8, 2026
Merged

release: v0.13.1 — suppress discovery cache warning#11
JRemitz merged 2 commits into
mainfrom
release/v0.13.1

Conversation

@JRemitz

@JRemitz JRemitz commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Pass cache_discovery=False when building the YouTube service in build_youtube_service() so the noisy file_cache is only supported with oauth2client<4.0.0 warning stops appearing in dock logs.
  • Bump version to 0.13.1 (__init__.py, plugin.py, CHANGELOG).

Why

The dock invokes plugin hooks via short-lived reeln hooks run subprocesses. Each invocation prints a warning that the file_cache extra is incompatible with google-auth. The file cache wouldn't help anyway — subprocesses are throwaway and can't share cached discovery docs. cache_discovery=False is Google's documented escape hatch and keeps the in-memory cache (the only cache that matters per-process).

Test plan

  • uv run pytest -q — 285 tests pass
  • test_builds_service updated to assert the new kwarg
  • Smoke test from dock after merge: confirm the warning no longer appears in CLI output during game init / publish

🤖 Generated with Claude Code

Pass cache_discovery=False to googleapiclient.discovery.build() so the
warning "file_cache is only supported with oauth2client<4.0.0" stops
appearing in dock logs on every YouTube API call. The file cache is
incompatible with google-auth (used via google-auth-oauthlib); discovery
docs are still cached in-memory per process — all the dock's short-lived
hook subprocesses ever needed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
mypy 2.1+ on CI flagged Credentials.refresh() and
Credentials.from_authorized_user_file() as no-untyped-call errors
because google-auth doesn't ship inline type hints. Existing
type: ignore on line 70 worked on old mypy but became unused on
newer versions in some envs.

Switch to a per-module override (disallow_untyped_calls = false
for reeln_google_plugin.auth) so the suppression is independent
of mypy version and the existing type: ignore can be removed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@JRemitz JRemitz self-assigned this Jun 8, 2026
@JRemitz
JRemitz merged commit f6e21f1 into main Jun 8, 2026
5 checks passed
@JRemitz
JRemitz deleted the release/v0.13.1 branch June 8, 2026 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant