Skip to content

chore(deps): 🔧 move benchmark-only dependencies to a bench group - #53

Merged
Panadestein merged 1 commit into
mainfrom
chore/12-trim-dependency-groups
Oct 6, 2026
Merged

Panadestein merged 1 commit into
mainfrom
chore/12-trim-dependency-groups

Conversation

@Panadestein

Copy link
Copy Markdown
Member

🤖 AI text below 🤖

Closes #12.

Scope after the changes merged since the issue

Most of #12 is already done on main:

This PR covers the rest:

  • cyclopts moves from dev to a new bench group. The group also declares the quimb and scipy that the benchmark scripts import. dev includes bench, so uv sync --all-groups works as before.
  • cmaes stays in the test group, with a comment explaining why. Nothing imports it directly, but without it cotengra (pulled in by quimb) raises a UserWarning when it plans a contraction. filterwarnings = ["error"] then fails the suite; I checked this by removing it. So it can't be dropped, but it was never a runtime dependency.
  • benches/README.md explains how to install the group.
  • uv.lock is regenerated.

Checks

  • uv run prek run --all-files is clean.
  • uv run pytest -m "not slow": 123 passed, 1 skipped (no CuPy).
  • bench_mpo_mpo.py runs end to end on a small problem, and bench_depth.py --help works.

cyclopts is used only by the scripts under benches/, so it moves from dev to a
new bench group, which also declares the quimb and scipy the scripts import.
cmaes stays in the test group with a comment: quimb's cotengra warns without it,
and filterwarnings = ["error"] turns that into a test failure.

Closes #12

Assisted-by: pi:claude-opus-5.5
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Test Results

  4 files  ±0    4 suites  ±0   2m 3s ⏱️ -5s
135 tests ±0  134 ✅ ±0  1 💤 ±0  0 ❌ ±0 
516 runs  ±0  514 ✅ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit 50e0c54. ± Comparison against base commit daa6520.

@Panadestein
Panadestein merged commit 83c1d16 into main Oct 6, 2026
14 checks passed
@Panadestein
Panadestein deleted the chore/12-trim-dependency-groups branch October 6, 2026 13:11
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.

Remove unused runtime dependencies (numba, llvmlite, cmaes) and demote cyclopts

1 participant