diffusers icon indicating copy to clipboard operation
diffusers copied to clipboard

Constrain numba test dependency

Open gabe-engineers opened this issue 5 months ago • 0 comments

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 #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

gabe-engineers avatar Jun 25 '26 16:06 gabe-engineers