This repository was archived by the owner on Sep 2, 2025. It is now read-only.
Add support for Python 3.11#336
Closed
joshuataylor wants to merge 2 commits intodbt-labs:mainfrom
joshuataylor:feature/python311
Closed
Add support for Python 3.11#336joshuataylor wants to merge 2 commits intodbt-labs:mainfrom joshuataylor:feature/python311
joshuataylor wants to merge 2 commits intodbt-labs:mainfrom
joshuataylor:feature/python311
Conversation
6 tasks
6 tasks
Contributor
|
thanks for the issue and PR @joshuataylor! hoping to get this support out this week or next. for now, closing this in favor of #331 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
resolves #331
Description
Bump to support Python 3.11 . Unfortunately Snowflake isn't planning to support wheels for this until 2023.
However, they are up for this: snowflakedb/snowflake-connector-python#1349
So it looks like it could come sooner than expected, hopefully :).
So to test this is a bit fiddly, you have a few options:
Option 1) Use my wheels
I've built the above PR, and I'm using the wheels locally. For
dbt-snowflakeyou will need to editsetup.pyand changesnowflake-connector-pythonto the following:Linux: https://pub-06bff9b264344d5c807b16a2c12bf62d.r2.dev/snowflake_connector_python-2.9.0-cp311-cp311-linux_x86_64.whl
Mac: https://pub-06bff9b264344d5c807b16a2c12bf62d.r2.dev/snowflake_connector_python-2.8.3-cp311-cp311-macosx_12_0_arm64.whl
Not sure why these versions are different 🤷
Option 2) Use that branch and build your wheels
If you are on Linux, you can use that branch above:
Now you have a few options:
Docker:
./ci/build_docker.sh 3.11Shell (Mac): ./ci/build_darwin.sh 3.11
Shell (Linux): ./ci/build_linux.sh 3.11 # Note this didn't work for me, it's designed for their CI environment
If using a mac and you want to build wheels, you're going to want to
brew install apache-arrowif using homebrew to grab the latest 10.0.0-1 which supports Python 3.11.Checklist
changie newto create a changelog entry