Skip to content

fix: pin Python requirement to <3.14 in pyproject.toml - #1829

Closed
Oxygen56 wants to merge 1 commit into
NVIDIA:mainfrom
Oxygen56:fix/issue-1759-python-314-compat
Closed

fix: pin Python requirement to <3.14 in pyproject.toml#1829
Oxygen56 wants to merge 1 commit into
NVIDIA:mainfrom
Oxygen56:fix/issue-1759-python-314-compat

Conversation

@Oxygen56

@Oxygen56 Oxygen56 commented Jun 2, 2026

Copy link
Copy Markdown

Summary

  • Pin requires-python to >=3.10,<3.14 in pyproject.toml
  • Python 3.14 is not yet supported because core dependencies (torch, transformers) do not publish cp314 wheels
  • Without this pin, pip install garak fails silently on Python 3.14 — pip hangs in dependency resolution without producing any install, and exits with code 0
  • With this pin, pip fails fast on Python 3.14 with a clear error: "Package garak requires a different Python"

Changes

  1. pyproject.toml: requires-python changed from ">=3.10" to ">=3.10,<3.14"
  2. README.md: Added note under Standard install about Python version requirements

Related

Fixes #1759

Test Plan

  • Verified pip install -e . succeeds on Python 3.12
  • Verified import garak; print(garak.__version__) works after install
  • Verified the requires-python constraint is correctly set (pip resolves the constraint)

pip install fails silently on Python 3.14 because core dependencies
(torch, transformers) do not yet publish cp314 wheels. Pin
requires-python to >=3.10,<3.14 so pip fails fast with a clear error
instead of hanging or silently producing no install.

Fixes NVIDIA#1759
@jmartin-tech

Copy link
Copy Markdown
Collaborator

Duplicates #1762 and ignores discussion and feedback in that PR.

@Oxygen56

Oxygen56 commented Jun 2, 2026

Copy link
Copy Markdown
Author

Thanks @jmartin-tech — you are right, #1762 already covers this. Closing as duplicate.

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.

pip install fails silently on Python 3.14 (no torch/transformers wheels yet)

2 participants