-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Python 3.11, require NumPy 1.23+ #704
Conversation
cc @thewtex (for awareness) |
It looks like the Also are there any related updates needed to |
All of these import-related changes were made by I see the exact same changes made if I run Line 18 in 47e0f74
So I'm not sure how these changes weren't previously caught in CI. All of the checks in https://github.com/rapidsai/cucim/blob/branch-24.04/.pre-commit-config.yaml are pinned to specific versions of things, so not sure what changed between #694 and now 🤔 |
https://github.com/rapidsai/cucim/actions/runs/8070438319/job/22048142083?pr=704 is failing because we're building against numpy 1.21.3, which doesn't support Python 3.11. |
Thanks for finding that! I just did a bit of research, sharing some notes that might help inform what we do about this. From https://numpy.org/news/#numpy-1240-released, it looks like It looks like
cucim/python/cucim/pyproject.toml Line 29 in 47e0f74
But is pinning to cucim/conda/recipes/cucim/meta.yaml Line 66 in 47e0f74
|
It was pinned specifically to 1.21 in #480, because that's the oldest version of numpy we support. |
conda-forge is using We should be able to update this pin to |
Yeah in Python 3.11 NumPy was bumped to 1.23 The simplest solution would be to bump to NumPy 1.23 here If for some reason that does not work, we can use NumPy 1.21 for older Python versions and NumPy 1.23 for Python 3.11 Edit: It looks like Bradley posted this at the same time |
Ah yeah sorry about that, I could have chosen a better link. It's build dependency AND a runtime dependency, via this cucim/conda/recipes/cucim/meta.yaml Line 75 in 47e0f74
right? |
/merge |
Thanks all! 🙏 |
Description
Contributes to rapidsai/build-planning#3
This PR adds support for Python 3.11.
It also bumps uses of
NumPy
tonumpy>=1.23
, see rapidsai/build-planning#3 (comment).Notes for Reviewers
This is part of ongoing work to add Python 3.11 support across RAPIDS.
The Python 3.11 CI workflows introduced in rapidsai/shared-workflows#176 are optional... they are not yet required to run successfully for PRs to be merged.
This PR can be merged once all jobs are running successfully (including the non-required jobs for Python 3.11). The CI logs should be verified that the jobs are building and testing with Python 3.11.
See rapidsai/shared-workflows#176 for more details.