Skip to content

Commit dc5f866

Browse files
authored
chore!: upgrade deps (#2272)
1 parent 385e079 commit dc5f866

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@
3535
"astor",
3636
"click",
3737
"croniter",
38-
# Issue with Snowflake connector and cryptography 42+
39-
# Check here if they have added support: https://github.com/dbt-labs/dbt-snowflake/blob/main/dev-requirements.txt#L12
40-
"cryptography~=41.0.7",
4138
"duckdb",
4239
"dateparser",
4340
"hyperscript",
@@ -48,7 +45,7 @@
4845
"requests",
4946
"rich[jupyter]",
5047
"ruamel.yaml",
51-
"sqlglot[rs]~=22.4.0",
48+
"sqlglot[rs]~=22.5.0",
5249
],
5350
extras_require={
5451
"bigquery": [
@@ -65,6 +62,7 @@
6562
"agate==1.7.1",
6663
"beautifulsoup4",
6764
"black==24.1.1",
65+
"cryptography~=41.0.7",
6866
"dbt-core",
6967
"dbt-duckdb>=1.7.1",
7068
"Faker",
@@ -148,6 +146,9 @@
148146
"slack_sdk",
149147
],
150148
"snowflake": [
149+
# Issue with Snowflake connector and cryptography 42+
150+
# Check here if they have added support: https://github.com/dbt-labs/dbt-snowflake/blob/main/dev-requirements.txt#L12
151+
"cryptography~=41.0.7",
151152
"snowflake-connector-python[pandas,secure-local-storage]",
152153
"pyarrow>=10.0.1,<10.1.0",
153154
],

sqlmesh/core/config/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
import typing as t
1010
from enum import Enum
1111

12-
from cryptography.hazmat.backends import default_backend
13-
from cryptography.hazmat.primitives import serialization
1412
from pydantic import Field
1513
from sqlglot import exp
1614
from sqlglot.helper import subclasses
@@ -337,6 +335,8 @@ def _get_private_key(cls, values: t.Dict[str, t.Optional[str]], auth: str) -> t.
337335
Overall code change: Use local variables instead of class attributes + Validation
338336
"""
339337
# Start custom code
338+
from cryptography.hazmat.backends import default_backend
339+
from cryptography.hazmat.primitives import serialization
340340
from snowflake.connector.network import (
341341
DEFAULT_AUTHENTICATOR,
342342
KEY_PAIR_AUTHENTICATOR,

0 commit comments

Comments
 (0)