Skip to content

fix: declare click as an explicit runtime dependency#267

Merged
placerda merged 1 commit into
developfrom
feature/add-click-dependency
Jun 26, 2026
Merged

fix: declare click as an explicit runtime dependency#267
placerda merged 1 commit into
developfrom
feature/add-click-dependency

Conversation

@Dongbumlee

Copy link
Copy Markdown
Collaborator

Summary

Declares click as an explicit runtime dependency so a clean pip install agentops-accelerator no longer crashes on the explain / manual commands.

Problem

The CLI imports click directly for its pager and manual output paths (app.py _emit_manual_output / _emit_doctor_explain). click was only available transitively via Typer, but Typer 0.26+ no longer depends on click. As a result, a fresh install of the published agentops-accelerator (0.3.11) crashes:

\
$ agentops explain
ModuleNotFoundError: No module named 'click'
\\

This affects agentops explain, agentops init explain, and agentops doctor explain (all formats/flags). It was masked in dev/editable installs and when the [foundry] extra is installed (which pulls click transitively), but the base install is broken.

Fix

Add click>=8.1,<9 to [project].dependencies in pyproject.toml.

Verification

Found via a full E2E test of the published 0.3.11 package in a fresh venv (44-case command/parameter matrix). Fix verified by building the wheel from this branch and installing it into a brand-new clean venv: click is pulled automatically and both agentops explain and agentops doctor explain exit 0.

No version bump (setuptools-scm owns versioning). Changelog updated under [Unreleased] > Fixed.

@Dongbumlee Dongbumlee requested a review from placerda June 9, 2026 00:36
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@placerda placerda force-pushed the feature/add-click-dependency branch from b8c4472 to 8fd3f39 Compare June 26, 2026 13:15
@placerda placerda merged commit c226bbf into develop Jun 26, 2026
12 checks passed
@placerda placerda deleted the feature/add-click-dependency branch June 26, 2026 13:38
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.

2 participants