Skip to content

Add support for Python 3.14#1049

Merged
rapids-bot[bot] merged 4 commits intorapidsai:release/26.04from
gforsyth:python-3.14-rev3
Mar 17, 2026
Merged

Add support for Python 3.14#1049
rapids-bot[bot] merged 4 commits intorapidsai:release/26.04from
gforsyth:python-3.14-rev3

Conversation

@gforsyth
Copy link
Copy Markdown
Contributor

@gforsyth gforsyth commented Mar 17, 2026

Supercedes #1033 where a VERSION file check has been flummoxed by a bunch of rebases.

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 Mar 17, 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
Copy link
Copy Markdown
Contributor Author

/ok to test

@gforsyth gforsyth marked this pull request as ready for review March 17, 2026 15:26
@gforsyth gforsyth requested review from a team as code owners March 17, 2026 15:26
@gforsyth gforsyth requested a review from AyodeAwe March 17, 2026 15:26
@gforsyth gforsyth changed the title python 3.14 rev3 Add support for Python 3.14 Mar 17, 2026
@gforsyth
Copy link
Copy Markdown
Contributor Author

/ok to test

@gforsyth gforsyth added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Mar 17, 2026
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.

Looks great. As long as whoever reviews for cucim-python-codeowners is ok with bumping the scikit-image floor, I'm good with this.

If we want to retain support for older scikit-image versions, we could enforce the new, higher floor for only Python 3.14 (with if: statements in the recipe and environment markers in pyproject.toml).

- libcucim ={{ version }}
- python
- scikit-image >=0.19.0,<0.25.0
- scikit-image >=0.23.2,<0.27.0
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.

This was missed in PR: #1038

As noted in comment: #1038 (comment)

Hence the update to scikit-image's constraints here

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.

Thanks, @jakirkham ! I forgot about that and I couldn't figure out why this was showing up in the diff 😬

Comment on lines +142 to 146
@pytest.mark.xfail(
sys.version_info >= (3, 14),
reason="Fails on Python 3.14, see tracking issue: https://github.com/rapidsai/cucim/issues/1043",
)
def test_read_random_region_cpu_memleak(testimg_tiff_stripe_4096x4096_256):
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.

@gigony this is failing in Python 3.14 so has been marked as xfail

For more details please see issue: #1043

Copy link
Copy Markdown
Member

@jakirkham jakirkham left a comment

Choose a reason for hiding this comment

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

Thanks Gil! 🙏

@gforsyth
Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 688501d into rapidsai:release/26.04 Mar 17, 2026
68 checks passed
@gforsyth gforsyth deleted the python-3.14-rev3 branch March 17, 2026 16:45
rapids-bot bot pushed a commit that referenced this pull request Mar 17, 2026
Followup to #1049

Now that rapidsai/shared-workflows#508 is merged in, we can point back at the `release/26.04` branch of `shared-workflows`

Authors:
  - Gil Forsyth (https://github.com/gforsyth)

Approvers:
  - James Lamb (https://github.com/jameslamb)

URL: #1052
@jakirkham jakirkham added this to the v26.04.00 milestone Mar 19, 2026
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.

5 participants