Skip to content

fix: add click as a direct dependency#822

Open
marcusburghardt wants to merge 1 commit intocomplytime:mainfrom
marcusburghardt:fix/add-click-direct-dependency
Open

fix: add click as a direct dependency#822
marcusburghardt wants to merge 1 commit intocomplytime:mainfrom
marcusburghardt:fix/add-click-direct-dependency

Conversation

@marcusburghardt
Copy link
Copy Markdown
Contributor

Summary

click is used as the CLI framework across 10 source files in complyscribe/cli/ but was never declared as a direct dependency in pyproject.toml. It was implicitly resolved via compliance-trestle's transitive dependency on datamodel-code-generator.

With compliance-trestle 3.11.0 (#778), datamodel-code-generator was removed from runtime dependencies (moved to [dev] extras), causing click to shift from the main poetry group to dev-only in poetry.lock. This breaks the container image built by the Dockerfile (which only installs main + plugins groups via poetry install --with plugins --no-root), resulting in ModuleNotFoundError: No module named 'click' at runtime and failing all 6 e2e tests.

This PR adds click = "^8.1.8" as a direct dependency and regenerates poetry.lock so that click is back in the main group.

Related Issues

Review Hints

  • Only two files are changed: pyproject.toml (one line added) and poetry.lock (content-hash updated).
  • The poetry.lock diff is minimal: only the content-hash and the Poetry version header changed. click moves from groups = ["dev"] back to groups = ["main", "dev", "plugins"].
  • The 4 pre-existing test-integration failures (complyctl list --plain / Error: unknown flag: --plain) are unrelated and already fail on main. They will be addressed separately.

@marcusburghardt
Copy link
Copy Markdown
Contributor Author

integration test is disabled by #821

click is used as the CLI framework across 10 source files but was never
declared as a direct dependency. It was implicitly resolved via
compliance-trestle's transitive dependency on datamodel-code-generator.

With compliance-trestle 3.11.0, datamodel-code-generator was removed
from runtime dependencies, causing click to shift from the main poetry
group to dev-only. This breaks the container image (which only installs
main + plugins groups), resulting in ModuleNotFoundError at runtime and
failing all e2e tests.

Assisted-by: OpenCode (claude-opus-4-6)
Signed-off-by: Marcus Burghardt <maburgha@redhat.com>
@marcusburghardt marcusburghardt force-pushed the fix/add-click-direct-dependency branch from d479bf0 to 5a21579 Compare April 21, 2026 10:02
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