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-snowflake
you will need to editsetup.py
and changesnowflake-connector-python
to 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.11
Shell (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-arrow
if using homebrew to grab the latest 10.0.0-1 which supports Python 3.11.Checklist
changie new
to create a changelog entry