Skip to content

Fix import cel failing in a clean install; smoke test the wheel in CI - #44

Open
hardbyte wants to merge 2 commits into
mainfrom
brian/jolly-franklin-75fkzx
Open

Fix import cel failing in a clean install; smoke test the wheel in CI#44
hardbyte wants to merge 2 commits into
mainfrom
brian/jolly-franklin-75fkzx

Conversation

@hardbyte

Copy link
Copy Markdown
Owner

Why

pip install common-expression-language into an otherwise empty environment currently gives:

>>> import cel
ModuleNotFoundError: No module named 'typing_extensions'

cel.cli imports Annotated from typing_extensions, which is not a declared dependency. It used to arrive transitively through Typer, but Typer 0.21.2 (2026-02-10) dropped that dependency, so every release from 0.6.0 onward is affected for users who don't happen to have typing_extensions installed for another reason. The development lockfile hides this because mypy still pulls it in, which is why the test suite never noticed.

Reproduced by building the wheel and installing it into a fresh uv venv --no-project: import cel fails on main, and passes with this change. The clean environment ends up with exactly annotated-doc, prompt-toolkit, pygments, rich, shellingham, typer, markdown-it-py, mdurl, wcwidth plus the wheel.

What

  • from typing import Annotated — in the standard library since 3.9, and this package requires 3.11.
  • The lint job now builds the wheel, installs it into an empty virtual environment, and runs import cel, cel.evaluate, and the cel command. That's the only kind of environment where an undeclared runtime import shows up, so it becomes a CI failure rather than a first-install failure.
  • CHANGELOG entry under Unreleased.

This is worth a 0.9.1 patch release on its own; I've left the version bump for the usual "Prepare release" commit.

Verification

Locally: pytest (511 passed, 1 skipped, 5 xfailed), ruff check, ruff format --check, mypy, and the wheel smoke test above in a clean venv.

https://claude.ai/code/session_019WbvXZFm8Nb2LXF2kiWoWW


Generated by Claude Code

cel.cli imported Annotated from typing_extensions, which is not a declared
dependency of this package. It used to arrive transitively through Typer, but
Typer 0.21.2 (February 2026) dropped that dependency, so installing the wheel
into an otherwise empty environment left `import cel` raising
ModuleNotFoundError. The development lockfile masked the problem because mypy
still pulls typing_extensions in.

Annotated has been in the standard library since Python 3.9 and this package
requires 3.11, so import it from typing.

The lint job now builds the wheel, installs it into an empty virtual
environment and runs both the import and the `cel` command, so an undeclared
runtime dependency fails CI instead of the first user install.

Claude-Session: https://claude.ai/code/session_019WbvXZFm8Nb2LXF2kiWoWW
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-14T01:27:11.841015Z a81c0b9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Resolves the CHANGELOG Unreleased conflict with #52 by folding the import fix
into the shared Fixed section.

Claude-Session: https://claude.ai/code/session_019WbvXZFm8Nb2LXF2kiWoWW
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