Skip to content

chore: python version to 3.11 (while supporting 3.10) - #31503

Merged
mistercrunch merged 4 commits into
masterfrom
bump_python311
Jan 14, 2025
Merged

mistercrunch merged 4 commits into
masterfrom
bump_python311

Conversation

@mistercrunch

@mistercrunch mistercrunch commented Dec 17, 2024 •

Copy link
Copy Markdown
Member

Bumping python to 3.11 as the default version, supporting 3.10, and deprecating 3.9 support

Currently in this PR I'm setting next to 3.11 and current to 3.11.11. This means when 3.11.12 shows up CI will run on two different versions within 3.11. Eventually we can make next point to 3.12 as lib support grows.

about 3.12

Seems 3.12 is not easy at the moment, hit some issues that pointed to upgrading dependencies, but hit some conflicting diamond dependencies as I was doing so. #31313 would help sort this out at a faster pace, without the bugs and slowness of pip-compile-multi

Closes #31516

@github-actions github-actions Bot added the github_actions Pull requests that update GitHub Actions code label Dec 17, 2024

@korbit-ai korbit-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I've completed my review and didn't find any issues... but I did find this bear.

/  \.-"""-./  \
\    -   -    /
 |   o   o   |
 \  .-'''-.  /
  '-\__Y__/-'
     `---`

Need a new review? Comment /korbit-review on this PR and I'll review your latest changes.

Korbit Guide: Usage and Customization

Interacting with Korbit

  • You can manually ask Korbit to review your PR using the /korbit-review command in a comment at the root of your PR.
  • You can ask Korbit to generate a new PR description using the /korbit-generate-pr-description command in any comment on your PR.
  • Too many Korbit comments? I can resolve all my comment threads if you use the /korbit-resolve command in any comment on your PR.
  • Chat with Korbit on issues we post by tagging @korbit-ai in your reply.
  • Help train Korbit to improve your reviews by giving a 👍 or 👎 on the comments Korbit posts.

Customizing Korbit

  • Check out our docs on how you can make Korbit work best for you and your team.
  • Customize Korbit for your organization through the Korbit Console.

Current Korbit Configuration

General Settings ​
Setting Value
Review Schedule Automatic excluding drafts
Max Issue Count 10
Automatic PR Descriptions ❌
Issue Categories ​
Category Enabled
Naming ✅
Database Operations ✅
Documentation ✅
Logging ✅
Error Handling ✅
Systems and Environment ✅
Objects and Data Structures ✅
Readability and Maintainability ✅
Asynchronous Processing ✅
Design Patterns ✅
Third-Party Libraries ✅
Performance ✅
Security ✅
Functionality ✅

Feedback and Support

@mistercrunch mistercrunch changed the title chore: try and bump python version to 3.11 (while supporting 3.10 and 3.12) chore: try and bump python version to 3.11 (while supporting 3.10) Dec 18, 2024
@mistercrunch mistercrunch changed the title chore: try and bump python version to 3.11 (while supporting 3.10) chore: python version to 3.11 (while supporting 3.10) Dec 18, 2024
@villebro

Copy link
Copy Markdown
Member

Should we first merge #31313 before proceeding with this? Also, should we not wait until 3.12 is supported before moving the window of supported versions forward?

@michael-s-molina

Copy link
Copy Markdown
Member

deprecating 3.9 support

@mistercrunch There's a 5.0 proposal to drop support for 3.9. We should wait for the breaking window unless you remove the 3.9 deprecation of this PR's scope.

@mistercrunch mistercrunch added the v5.0 Label added by the release manager to track PRs to be included in the 5.0 branch label Dec 18, 2024
@mistercrunch

Copy link
Copy Markdown
Member Author

@michael-s-molina yup I'm taking this on as part of the 5.0 effort.

Should we first merge #31313

@villebro yes, that will help sorting things out. I'll push on that one to go first (pre 5.0)

should we not wait until 3.12 is supported ?

I don't think that's required, my take is we should support previous and current, and next is a nice to have as a placeholder to start getting things working. The next construct is useful to support the process of getting ready for it, but not needed to deprecate a previous version. Given the state of CI, and the fact that only some checks run on previous and next, we should strongly recommend using the current version, the next/previous are useful if/when we want to support more or while we're in the process of establishing or deprecating support.

@villebro

villebro commented Jan 8, 2025 •

Copy link
Copy Markdown
Member

@mistercrunch after letting this simmer for a while longer, would the following work:

  • we run 3.11 on Dockerfile and refer to it as the currently supported version in the docs
  • on the CI matrix, we replace current (3.11) and next (3.12) with previous (3.10) and current (3.11). After all, those are the only versions we officially support.

I don't necessarily see any reason to have next on CI if it just causes issues like this. So in the future, when we do want to start supporting 3.12, we open up a PR that bumps the versions on previous and next, and then iterate until both versions actually work.

@mistercrunch

Copy link
Copy Markdown
Member Author

Yes I think that's effectively what it is in current PR, except for next being failing on 3.12 now. Maybe I just remove next from the matrixes for now and we turn it back on when we're ready to start working on supporting 3.12

@mistercrunch

Copy link
Copy Markdown
Member Author

Ok I didn't want to loose the work I did on supporting 3.12 so started this placeholder PR here. I'll rollback 3.12 support work from this PR as it's breaking things, and remove next from our matrixes on this PR RN

@michael-s-molina

Copy link
Copy Markdown
Member

@mistercrunch Could you please add the changes made in this PR to UPDATING.md?

@mistercrunch

Copy link
Copy Markdown
Member Author

Done! I think this might be ready for merging

@mistercrunch

Copy link
Copy Markdown
Member Author

@villebro @michael-s-molina anything else needed to get this merged?

@michael-s-molina

michael-s-molina commented Jan 9, 2025 •

Copy link
Copy Markdown
Member

@villebro @michael-s-molina anything else needed to get this merged?

@mistercrunch I didn't see a change in UPDATING.md. Did you push it? I believe it's the last required step.

@mistercrunch

Copy link
Copy Markdown
Member Author

Oops, I forgot to git push my commit. I just pushed it

@michael-s-molina

Copy link
Copy Markdown
Member

@mistercrunch I left a comment about the integration tests in the committers channel.

@villebro villebro left a comment

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.

LGTM, but before merging, would you be able to add a note about the strict=False bit in the description? I assume we're mostly ok with not being strict about those zips, but In general it's probably usually better to be more strict than not..

@mistercrunch

Copy link
Copy Markdown
Member Author

I think something changed in 3.11 or 3.12 about this particular method, and ruff caught it and required this change as lint. It'll enforce this rule moving forward and is upfront about the reason (it's easy to lookup the specific rule and why it's enforced)

@mistercrunch
mistercrunch merged commit 274aa14 into master Jan 14, 2025
@mistercrunch
mistercrunch deleted the bump_python311 branch January 14, 2025 02:22
@michael-s-molina michael-s-molina removed the v5.0 Label added by the release manager to track PRs to be included in the 5.0 branch label Feb 3, 2025
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 5.0.0 First shipped in 5.0.0 labels Jul 29, 2025
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels github_actions Pull requests that update GitHub Actions code preset-io size/L 🚢 5.0.0 First shipped in 5.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

73 - Drop support for Python 3.9

4 participants