Skip to content

Commit

Permalink
SNOW-1843819: relax snowpark python 3.11 cloudpickle dependency to un…
Browse files Browse the repository at this point in the history
…ify anaconda no arch build (#2704)
  • Loading branch information
sfc-gh-aling authored Dec 4, 2024
1 parent dc83b57 commit 91f4357
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
- Added `load` method to `DataFrameReader` to work in conjunction with `format`.
- Added `save` method to `DataFrameWriter` to work in conjunction with `format`.
- Added support to read keyword arguments to `options` method for `DataFrameReader` and `DataFrameWriter`.
- Relaxed the cloudpickle dependency for Python 3.11 to simplify build requirements. However, for Python 3.11, `cloudpickle==2.2.1` remains the only supported version.

#### Bug Fixes

Expand Down
3 changes: 1 addition & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ requirements:
- mypy-protobuf
run:
- python
- cloudpickle >=1.6.0,<=2.2.1,!=2.1.0,!=2.2.0 # [py<=310]
- cloudpickle==2.2.1 # [py==311]
- cloudpickle >=1.6.0,<=2.2.1,!=2.1.0,!=2.2.0
- snowflake-connector-python >=3.10.0,<4.0.0
- typing-extensions >=4.1.0,<5.0.0
# need to pin libffi because of problems in cryptography.
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
# snowpark directly depends on typing-extension, so we should not remove it even if connector also depends on it.
"typing-extensions>=4.1.0, <5.0.0",
"pyyaml",
"cloudpickle>=1.6.0,<=2.2.1,!=2.1.0,!=2.2.0;python_version<'3.11'",
"cloudpickle==2.2.1;python_version~='3.11'", # backend only supports cloudpickle 2.2.1 + python 3.11 at the moment
"cloudpickle>=1.6.0,<=2.2.1,!=2.1.0,!=2.2.0",
# `protoc` < 3.20 is not able to generate protobuf code compatible with protobuf >= 3.20.
"protobuf>=3.20, <6", # Snowpark IR
"python-dateutil", # Snowpark IR
Expand Down

0 comments on commit 91f4357

Please sign in to comment.