Skip to content

Constrain numba test dependency#14068

Open
gabe-engineers wants to merge 1 commit into
huggingface:mainfrom
gabe-engineers:codex/constrain-numba-test-dependency
Open

Constrain numba test dependency#14068
gabe-engineers wants to merge 1 commit into
huggingface:mainfrom
gabe-engineers:codex/constrain-numba-test-dependency

Conversation

@gabe-engineers

@gabe-engineers gabe-engineers commented Jun 25, 2026

Copy link
Copy Markdown

What changed

  • Add numba>=0.59.0 to the test dependency set.
  • Regenerate src/diffusers/dependency_versions_table.py.

Why

On Python 3.12, a clean uv pip install -e ".[test]" can resolve:

librosa==0.11.0
└── numba==0.53.1
    └── llvmlite==0.36.0

llvmlite==0.36.0 only supports Python <3.10, so the test dependency installation fails even though Diffusers supports Python >=3.10.

Numba 0.59.0 is the first release with Python 3.12 support. The existing CUDA Dockerfiles already preinstall newer Numba and llvmlite versions before installing diffusers[test]; this change expresses the compatible Numba lower bound in the test dependencies themselves.

Closes #14067.

Validation

  • Reproduced the failure from a fresh upstream clone using Python 3.12.2 and uv 0.11.24.
  • After this change, uv pip install -e ".[test]" completed successfully in a clean Python 3.12 environment.
  • The resolved versions were numba==0.65.1 and llvmlite==0.47.0.
  • uv pip check passed for all 113 installed packages.
  • Regenerated the dependency table and confirmed a second generation produced no changes.
  • git diff --check passed.

Checklist

  • Used Codex to help draft/check this change; I reviewed the diff manually.
  • Read the contributor guideline and the AI agent guide.
  • Reviewed the diff against .ai/review-rules.md.
  • Issue: closes uv pip install -e ".[test]" fails on Python 3.12 due to incompatible numba/llvmlite resolution #14067.
  • Docs: not applicable; this only updates test dependency metadata.
  • Tests: no unit test added because this is dependency resolution metadata. Validated with:
    • uv pip install -e ".[test]" on Python 3.12.2
    • uv pip check
    • dependency table regeneration idempotency
    • git diff --check

@github-actions github-actions Bot added fixes-issue size/S PR with diff < 50 LOC labels Jun 25, 2026
@gabe-engineers gabe-engineers changed the title [codex] Constrain numba test dependency Constrain numba test dependency Jun 25, 2026
@gabe-engineers gabe-engineers marked this pull request as ready for review June 25, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fixes-issue size/S PR with diff < 50 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

uv pip install -e ".[test]" fails on Python 3.12 due to incompatible numba/llvmlite resolution

1 participant