Skip to content

Add support for Python 3.14#881

Merged
rapids-bot[bot] merged 4 commits intorapidsai:mainfrom
gforsyth:python-3.14
Mar 4, 2026
Merged

Add support for Python 3.14#881
rapids-bot[bot] merged 4 commits intorapidsai:mainfrom
gforsyth:python-3.14

Conversation

@gforsyth
Copy link
Copy Markdown
Contributor

Description

Contributes to rapidsai/build-planning#205

This PR adds support for Python 3.14.

Notes for Reviewers

This is part of ongoing work to add Python 3.14 support across RAPIDS.
It temporarily introduces a build/test matrix including Python 3.14, from rapidsai/shared-workflows#508.

A follow-up PR will revert back to pointing at the main branch of shared-workflows once all
RAPIDS repos have added Python 3.14 support.

This will fail until all dependencies have been updated to Python 3.14

CI here is expected to fail until all of this project's upstream dependencies support Python 3.14.

This can be merged whenever all CI jobs are passing.

@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot bot commented Feb 24, 2026

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@gforsyth gforsyth added non-breaking Introduces a non-breaking change improvement Improves an existing functionality labels Feb 24, 2026
@gforsyth
Copy link
Copy Markdown
Contributor Author

gforsyth commented Mar 2, 2026

/ok to test

@gforsyth
Copy link
Copy Markdown
Contributor Author

gforsyth commented Mar 2, 2026

Looks like ray doesn't have Python 3.14 support yet, so we'll have to skip the ray tests on the Python 3.14 test runners
ray-project/ray#56434

@gforsyth
Copy link
Copy Markdown
Contributor Author

gforsyth commented Mar 2, 2026

/ok to test

@gforsyth
Copy link
Copy Markdown
Contributor Author

gforsyth commented Mar 2, 2026

/ok to test

1 similar comment
@gforsyth
Copy link
Copy Markdown
Contributor Author

gforsyth commented Mar 3, 2026

/ok to test

Comment on lines +504 to +506
# https://github.com/python/cpython/issues/126831
multiprocessing.set_start_method("fork")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is another place where the change to forkserver as the default method is causing issues.

This is the simple workaround which I've put in place just to get things passing.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll take a look in #899.

Comment on lines +462 to +473
py: "3.14"
packages:
- matrix:
arch: x86_64
py: "3.*"
packages:
- ray-default>=2.49,<2.52
- matrix:
arch: aarch64
packages:

- matrix:
packages:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be reverted once ray-default supports Python 3.14

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you open an issue in the repo tracking that and put a TODO comment here linking to it? That'll make it less likely to be forgotten.

details for that issue:

  1. ray itself doesn't have Python 3.14 wheels yet, tracked here: Support Python 3.14 ray-project/ray#56434
  2. even if it did, it couldn't have conda packages yet because its dependencies aren't supporting Python 3.14 (from https://conda-forge.org/status/migration/?name=python314)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep! Done

@gforsyth
Copy link
Copy Markdown
Contributor Author

gforsyth commented Mar 3, 2026

/ok to test

@gforsyth gforsyth requested a review from jameslamb March 3, 2026 15:34
@gforsyth gforsyth marked this pull request as ready for review March 3, 2026 15:34
@gforsyth gforsyth requested review from a team as code owners March 3, 2026 15:34
Copy link
Copy Markdown
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small suggestion, otherwise looks good to me. If ray is an optional dependency of this project then I agree shipping with partial 3.14 support is better than waiting for ray.

Comment on lines +462 to +473
py: "3.14"
packages:
- matrix:
arch: x86_64
py: "3.*"
packages:
- ray-default>=2.49,<2.52
- matrix:
arch: aarch64
packages:

- matrix:
packages:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you open an issue in the repo tracking that and put a TODO comment here linking to it? That'll make it less likely to be forgotten.

details for that issue:

  1. ray itself doesn't have Python 3.14 wheels yet, tracked here: Support Python 3.14 ray-project/ray#56434
  2. even if it did, it couldn't have conda packages yet because its dependencies aren't supporting Python 3.14 (from https://conda-forge.org/status/migration/?name=python314)

@gforsyth
Copy link
Copy Markdown
Contributor Author

gforsyth commented Mar 4, 2026

/merge

@rapids-bot rapids-bot bot merged commit 608e6f2 into rapidsai:main Mar 4, 2026
66 checks passed
@gforsyth gforsyth deleted the python-3.14 branch March 4, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants