-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix: require keyring on snowflake #2789
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know much about python deps either, but the rationale makes sense.
plugins/snowflake/setup.py
Outdated
@@ -48,6 +48,7 @@ | |||
install_requires=[ | |||
'dbt-core=={}'.format(package_version), | |||
'snowflake-connector-python==2.2.10', | |||
'snowflake-connector-python[secure-local-storage]', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the line above can just read
snowflake-connector-python[secure-local-storage]==2.2.10
I think these two things might be equivalent, but it might make sense to combine them here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Note there are other requirements for Snowflake MFA caching to work with Python connector, listed here: Python Connector for Snowflake version 2.3.7 (or later). Add this line to your Snowflake profile in profiles.yml |
resolves #2779
Description
dbt-snowflake
:snowflake-connector-python[secure-local-storage]
, which is really justkeyring
Alternatives
We could put
snowflake-connector-python[secure-local-storage]
underextras_require
instead ofinstall_requires
, since it's only really needed for external-browser auth. I opted for the more aggressive approach since:keyring
insnowflake-connector-python
is quite permissiveI don't really know what I'm doing, though, when it comes to python deps!
Checklist
I have run this code in development and it appears to resolve the stated issueThis PR includes tests, or tests are not required/relevant for this PRCHANGELOG.md
and added information about my change to the "dbt next" section.