Commit 68d4cc1
committed
fix(dbt): pin pyOpenSSL>=24.0.0 for dbt 1.6 and 1.7 test environments
In dbt 1.6/1.7 CI environments, snowflake-connector-python resolves to
versions 3.0-3.7.x which require pyOpenSSL<24.0.0. When combined with
cryptography>=42.0 (which removed the lib.GEN_EMAIL constant), importing
the Snowflake connector raises AttributeError: module 'lib' has no
attribute 'GEN_EMAIL', failing these tests:
- test_snowflake_config (via SnowflakeConnectionConfig._validate_authenticator)
- test_api_class_loading[snowflake] (via SnowflakeConfig.relation_class)
pyOpenSSL>=24.0.0 forces pip/uv to resolve snowflake-connector-python to
3.8.0+ (which allows pyOpenSSL<25.0.0, thus including 24.x). pyOpenSSL
24.0.0 fixed the GEN_EMAIL incompatibility with cryptography>=42.0.
dbt 1.3-1.5 and 1.8-1.10 are unaffected: earlier versions resolve
connector packages that avoid this code path; later versions of the
connector already widened cryptography's upper bound.
Also collapses a multi-line docstring in classproperty to a single line.
Signed-off-by: mday-io <mdaytn@gmail.com>1 parent 8f092ac commit 68d4cc1
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | | - | |
251 | | - | |
| 249 | + | |
252 | 250 | | |
253 | 251 | | |
254 | 252 | | |
| |||
0 commit comments