Skip to content

[CD] Remove Python 3.10 from the Triton wheel builds - #199398

Closed
atalman wants to merge 1 commit into
pytorch:mainfrom
atalman:drop_py310_triton
Closed

atalman wants to merge 1 commit into
pytorch:mainfrom
atalman:drop_py310_triton

Conversation

@atalman

@atalman atalman commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

torch nightly binaries no longer build Python 3.10: FULL_PYTHON_VERSIONS in
generate_binary_build_matrix.py starts at 3.11, no generated binary workflow
builds py3_10, and the last cp310 torch nightly is 2.15.0.dev20260923. The
pytorch-triton builds still produce cp310 wheels nothing depends on.

  • _build-triton-wheel-linux.yml: drop "3.10" from the py_vers matrix and its
    now-unreachable cp310 PYTHON_EXECUTABLE case.
  • build-triton-wheel.yml: drop "3.10" from the Windows (XPU) py_vers matrix.
    build_triton.bat installs Python through the generic install_python.bat,
    so it has no 3.10-specific code.

Test plan:

  • Both workflows parse, and no 3.10 / cp310 references remain in the Triton
    build workflows or scripts.
  • actionlint 1.7.12 on the two workflows: no new findings (the remaining two
    are pre-existing shellcheck notes).
  • CI: ciflow/binaries runs the Triton wheel builds; the matrices should list
    3.11 through 3.15t only.)

Made with AI, Claude

torch nightly binaries no longer build Python 3.10: FULL_PYTHON_VERSIONS in
generate_binary_build_matrix.py starts at 3.11, no generated binary workflow
builds py3_10, and the last cp310 torch nightly is 2.15.0.dev20260923. The
pytorch-triton builds still produce cp310 wheels nothing depends on.

- _build-triton-wheel-linux.yml: drop "3.10" from the py_vers matrix and its
  now-unreachable cp310 PYTHON_EXECUTABLE case.
- build-triton-wheel.yml: drop "3.10" from the Windows (XPU) py_vers matrix.
  build_triton.bat installs Python through the generic install_python.bat,
  so it has no 3.10-specific code.

Test plan:
- Both workflows parse, and no 3.10 / cp310 references remain in the Triton
  build workflows or scripts.
- actionlint 1.7.12 on the two workflows: no new findings (the remaining two
  are pre-existing shellcheck notes).
- CI: ciflow/binaries runs the Triton wheel builds; the matrices should list
  3.11 through 3.15t only.
@atalman
atalman requested a review from a team as a code owner October 1, 2026 21:04
@pytorch-bot

pytorch-bot Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/199398

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 16 Pending

As of commit 1e3cce6 with merge base 4772073 (image):
💚 Looks good so far! There are no failures yet. 💚

🟡 GREEN LIGHT - PR requires human review:

  • Release and publish plumbing
    • build-triton-wheel.yml feeds upload-wheel-triton and upload-wheel-xpu (id-token: write, _upload-triton-wheel.yml), so the edited matrix decides what is published
    • Never trivial covers release or publish plumbing, and the CI-config class excludes publish paths
  • Removes a published artifact
    • Dropping 3.10 from py_vers in _build-triton-wheel-linux.yml and build-triton-wheel.yml stops new cp310 pytorch-triton wheels being built
    • Stopping a public package for a Python version is a support-policy call that users and release managers need to hear about
  • Consistency looks fine
    • FULL_PYTHON_VERSIONS in generate_binary_build_matrix.py already starts at 3.11, and the cp310 case arm removed is unreachable once 3.10 leaves the matrix

reason: not_trivial
Reviewed commit: 1e3cce6

Inference job

🐛 Report a wrong verdict

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Oct 1, 2026
@atalman

atalman commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchmergebot merge -f "lint is green, lets merge"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

cyyever pushed a commit to BakeLab/pytorch that referenced this pull request Oct 11, 2026
torch nightly binaries no longer build Python 3.10: FULL_PYTHON_VERSIONS in
generate_binary_build_matrix.py starts at 3.11, no generated binary workflow
builds py3_10, and the last cp310 torch nightly is 2.15.0.dev20260923. The
pytorch-triton builds still produce cp310 wheels nothing depends on.

- _build-triton-wheel-linux.yml: drop "3.10" from the py_vers matrix and its
  now-unreachable cp310 PYTHON_EXECUTABLE case.
- build-triton-wheel.yml: drop "3.10" from the Windows (XPU) py_vers matrix.
  build_triton.bat installs Python through the generic install_python.bat,
  so it has no 3.10-specific code.

Test plan:
- Both workflows parse, and no 3.10 / cp310 references remain in the Triton
  build workflows or scripts.
- actionlint 1.7.12 on the two workflows: no new findings (the remaining two
  are pre-existing shellcheck notes).
- CI: ciflow/binaries runs the Triton wheel builds; the matrices should list
  3.11 through 3.15t only.)

Made with AI, Claude
Pull Request resolved: pytorch#199398
Approved by: https://github.com/huydhn
pytorchmergebot pushed a commit that referenced this pull request Oct 27, 2026
## Summary

Raise the minimum Python in the package metadata from 3.10 to 3.11, to match what 2.15 builds.

- `pyproject.toml`: `requires-python = ">=3.11"`, and remove the `Programming Language :: Python :: 3.10` classifier.
- `README.md`: the source-build prerequisite says "Python 3.11 or later".

## Why

The binary build matrix no longer includes Python 3.10: `FULL_PYTHON_VERSIONS` in `.github/scripts/generate_binary_build_matrix.py` starts at `3.11`, and the 2.15.0 wheels on the test channel are `cp311` to `cp315` (plus `cp314t` and `cp315t`), with no `cp310`. `pyproject.toml` was not updated, so the 2.15.0 wheels carry:

```
Requires-Python: >=3.10
Classifier: Programming Language :: Python :: 3.10
```

That tells PyPI and `pip show` that 3.10 is supported, and makes `uv` and Poetry try to resolve 2.15 for Python 3.10 and fail on a missing wheel instead of reporting that 3.11 is required. The PRs that dropped 3.10 from the builds (#198233, #199398) only changed build and CI config and did not touch `pyproject.toml`.

## Not changed

- `[tool.ruff]` settings and the `# TODO: Remove Python-3.10 specific suppressions` comment.
- The Python 3.10 code paths in dynamo; #199417 handles those.

## Testing

`pyproject.toml` parses (`tomllib`), and `project.requires-python` is `>=3.11` with the classifiers `3 :: Only`, `3.11` to `3.15`. I did not build a wheel or an sdist from this change. Cherry-pick to `release/2.15` is a separate PR.

Pull Request resolved: #202271
Approved by: https://github.com/huydhn, https://github.com/albanD
sub4biz pushed a commit to sub4biz/pytorch that referenced this pull request Oct 27, 2026
)

## Summary

Raise the minimum Python in the package metadata from 3.10 to 3.11, to match what 2.15 builds.

- `pyproject.toml`: `requires-python = ">=3.11"`, and remove the `Programming Language :: Python :: 3.10` classifier.
- `README.md`: the source-build prerequisite says "Python 3.11 or later".
- `[tool.ruff] target-version = "py310"`: pinned so lint does not change (see below).

## Why

The binary build matrix no longer includes Python 3.10: `FULL_PYTHON_VERSIONS` in `.github/scripts/generate_binary_build_matrix.py` starts at `3.11`, and the 2.15.0 wheels on the test channel are `cp311` to `cp315` (plus `cp314t` and `cp315t`), with no `cp310`. `pyproject.toml` was not updated, so the 2.15.0 wheels carry:

```
Requires-Python: >=3.10
Classifier: Programming Language :: Python :: 3.10
```

That tells PyPI and `pip show` that 3.10 is supported, and makes `uv` and Poetry try to resolve 2.15 for Python 3.10 and fail on a missing wheel instead of reporting that 3.11 is required. The PRs that dropped 3.10 from the builds (pytorch#198233, pytorch#199398) only changed build and CI config and did not touch `pyproject.toml`.

## Lint

Ruff derives its target version from `requires-python`, so raising it to 3.11 enabled the pyupgrade rules for 3.11 and failed the Lint job: 257 findings in 162 files (UP036 obsolete `sys.version_info` checks 104, UP035 `typing_extensions` imports 101, UP044 `Unpack` 30, UP017 `datetime.UTC` 20, UP041 2). I reproduced the same counts locally with `ruff==0.14.4` and the repo config. 134 of the fixes need `--unsafe-fixes`, and they touch `torch/_dynamo` files that the Python 3.10 cleanup PRs (pytorch#199417) are editing, so they do not belong in a metadata change. This PR pins `target-version = "py310"` in `[tool.ruff]`, which restores the previous lint behavior: on the 162 files `ruff check` passes, and `ruff format --check` reports the same single file (`torch/utils/checkpoint.py`) as on the base commit. The pin should be removed together with the Python 3.10 code cleanup.

## Not changed

- `[tool.ruff]` settings and the `# TODO: Remove Python-3.10 specific suppressions` comment.
- The Python 3.10 code paths in dynamo; pytorch#199417 handles those.

## Testing

`pyproject.toml` parses (`tomllib`), and `project.requires-python` is `>=3.11` with the classifiers `3 :: Only`, `3.11` to `3.15`. With the pin, `ruff check` (ruff 0.14.4, repo config) passes on all 162 files the Lint job had flagged. I did not build a wheel or an sdist from this change. Cherry-pick to `release/2.15` is a separate PR.

Pull Request resolved: pytorch#202271
Approved by: https://github.com/huydhn, https://github.com/albanD
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 5, 2026
)

## Summary

Raise the minimum Python in the package metadata from 3.10 to 3.11, to match what 2.15 builds.

- `pyproject.toml`: `requires-python = ">=3.11"`, and remove the `Programming Language :: Python :: 3.10` classifier.
- `README.md`: the source-build prerequisite says "Python 3.11 or later".

## Why

The binary build matrix no longer includes Python 3.10: `FULL_PYTHON_VERSIONS` in `.github/scripts/generate_binary_build_matrix.py` starts at `3.11`, and the 2.15.0 wheels on the test channel are `cp311` to `cp315` (plus `cp314t` and `cp315t`), with no `cp310`. `pyproject.toml` was not updated, so the 2.15.0 wheels carry:

```
Requires-Python: >=3.10
Classifier: Programming Language :: Python :: 3.10
```

That tells PyPI and `pip show` that 3.10 is supported, and makes `uv` and Poetry try to resolve 2.15 for Python 3.10 and fail on a missing wheel instead of reporting that 3.11 is required. The PRs that dropped 3.10 from the builds (pytorch#198233, pytorch#199398) only changed build and CI config and did not touch `pyproject.toml`.

## Not changed

- `[tool.ruff]` settings and the `# TODO: Remove Python-3.10 specific suppressions` comment.
- The Python 3.10 code paths in dynamo; pytorch#199417 handles those.

## Testing

`pyproject.toml` parses (`tomllib`), and `project.requires-python` is `>=3.11` with the classifiers `3 :: Only`, `3.11` to `3.15`. I did not build a wheel or an sdist from this change. Cherry-pick to `release/2.15` is a separate PR.

Pull Request resolved: pytorch#202271
Approved by: https://github.com/huydhn, https://github.com/albanD
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 5, 2026
)

## Summary

Raise the minimum Python in the package metadata from 3.10 to 3.11, to match what 2.15 builds.

- `pyproject.toml`: `requires-python = ">=3.11"`, and remove the `Programming Language :: Python :: 3.10` classifier.
- `README.md`: the source-build prerequisite says "Python 3.11 or later".
- `[tool.ruff] target-version = "py310"`: pinned so lint does not change (see below).

## Why

The binary build matrix no longer includes Python 3.10: `FULL_PYTHON_VERSIONS` in `.github/scripts/generate_binary_build_matrix.py` starts at `3.11`, and the 2.15.0 wheels on the test channel are `cp311` to `cp315` (plus `cp314t` and `cp315t`), with no `cp310`. `pyproject.toml` was not updated, so the 2.15.0 wheels carry:

```
Requires-Python: >=3.10
Classifier: Programming Language :: Python :: 3.10
```

That tells PyPI and `pip show` that 3.10 is supported, and makes `uv` and Poetry try to resolve 2.15 for Python 3.10 and fail on a missing wheel instead of reporting that 3.11 is required. The PRs that dropped 3.10 from the builds (pytorch#198233, pytorch#199398) only changed build and CI config and did not touch `pyproject.toml`.

## Lint

Ruff derives its target version from `requires-python`, so raising it to 3.11 enabled the pyupgrade rules for 3.11 and failed the Lint job: 257 findings in 162 files (UP036 obsolete `sys.version_info` checks 104, UP035 `typing_extensions` imports 101, UP044 `Unpack` 30, UP017 `datetime.UTC` 20, UP041 2). I reproduced the same counts locally with `ruff==0.14.4` and the repo config. 134 of the fixes need `--unsafe-fixes`, and they touch `torch/_dynamo` files that the Python 3.10 cleanup PRs (pytorch#199417) are editing, so they do not belong in a metadata change. This PR pins `target-version = "py310"` in `[tool.ruff]`, which restores the previous lint behavior: on the 162 files `ruff check` passes, and `ruff format --check` reports the same single file (`torch/utils/checkpoint.py`) as on the base commit. The pin should be removed together with the Python 3.10 code cleanup.

## Not changed

- `[tool.ruff]` settings and the `# TODO: Remove Python-3.10 specific suppressions` comment.
- The Python 3.10 code paths in dynamo; pytorch#199417 handles those.

## Testing

`pyproject.toml` parses (`tomllib`), and `project.requires-python` is `>=3.11` with the classifiers `3 :: Only`, `3.11` to `3.15`. With the pin, `ruff check` (ruff 0.14.4, repo config) passes on all 162 files the Lint job had flagged. I did not build a wheel or an sdist from this change. Cherry-pick to `release/2.15` is a separate PR.

Pull Request resolved: pytorch#202271
Approved by: https://github.com/huydhn, https://github.com/albanD
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 9, 2026
)

## Summary

Raise the minimum Python in the package metadata from 3.10 to 3.11, to match what 2.15 builds.

- `pyproject.toml`: `requires-python = ">=3.11"`, and remove the `Programming Language :: Python :: 3.10` classifier.
- `README.md`: the source-build prerequisite says "Python 3.11 or later".
- `[tool.ruff] target-version = "py310"`: pinned so lint does not change (see below).

## Why

The binary build matrix no longer includes Python 3.10: `FULL_PYTHON_VERSIONS` in `.github/scripts/generate_binary_build_matrix.py` starts at `3.11`, and the 2.15.0 wheels on the test channel are `cp311` to `cp315` (plus `cp314t` and `cp315t`), with no `cp310`. `pyproject.toml` was not updated, so the 2.15.0 wheels carry:

```
Requires-Python: >=3.10
Classifier: Programming Language :: Python :: 3.10
```

That tells PyPI and `pip show` that 3.10 is supported, and makes `uv` and Poetry try to resolve 2.15 for Python 3.10 and fail on a missing wheel instead of reporting that 3.11 is required. The PRs that dropped 3.10 from the builds (pytorch#198233, pytorch#199398) only changed build and CI config and did not touch `pyproject.toml`.

## Lint

Ruff derives its target version from `requires-python`, so raising it to 3.11 enabled the pyupgrade rules for 3.11 and failed the Lint job: 257 findings in 162 files (UP036 obsolete `sys.version_info` checks 104, UP035 `typing_extensions` imports 101, UP044 `Unpack` 30, UP017 `datetime.UTC` 20, UP041 2). I reproduced the same counts locally with `ruff==0.14.4` and the repo config. 134 of the fixes need `--unsafe-fixes`, and they touch `torch/_dynamo` files that the Python 3.10 cleanup PRs (pytorch#199417) are editing, so they do not belong in a metadata change. This PR pins `target-version = "py310"` in `[tool.ruff]`, which restores the previous lint behavior: on the 162 files `ruff check` passes, and `ruff format --check` reports the same single file (`torch/utils/checkpoint.py`) as on the base commit. The pin should be removed together with the Python 3.10 code cleanup.

## Not changed

- `[tool.ruff]` settings and the `# TODO: Remove Python-3.10 specific suppressions` comment.
- The Python 3.10 code paths in dynamo; pytorch#199417 handles those.

## Testing

`pyproject.toml` parses (`tomllib`), and `project.requires-python` is `>=3.11` with the classifiers `3 :: Only`, `3.11` to `3.15`. With the pin, `ruff check` (ruff 0.14.4, repo config) passes on all 162 files the Lint job had flagged. I did not build a wheel or an sdist from this change. Cherry-pick to `release/2.15` is a separate PR.

Pull Request resolved: pytorch#202271
Approved by: https://github.com/huydhn, https://github.com/albanD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants