Skip to content

Commit 139704f

Browse files
authored
fix: Allow dill 0.4 so UDF serialization works on Python 3.14 (#6858)
* fix: Allow dill 0.4 so UDF serialization works on Python 3.14 dill~=0.3.0 keeps Python 3.14 users on dill 0.3.9, which does not support 3.14's changes to pickle. Serializing a UDF with dill.dumps(udf, recurse=True), as Transformation.to_proto() and StreamFeatureView.to_proto() do, fails with "TypeError: _Pickler._batch_setitems() missing 1 required positional argument: 'obj'" whenever the UDF refers to a module-level global such as pd, so on-demand feature views cannot be applied on 3.14. dill added Python 3.14 support in 0.4.0 and made it formal in 0.4.1. Allow it. The lock files still resolve dill 0.3.9 for 3.10-3.12, and pixi.lock only records the new requirement (from `pixi lock`). Signed-off-by: Yihang Chen <[email protected]> * chore: Regenerate Python requirement locks for dill 0.4 Signed-off-by: Yihang Chen <[email protected]> --------- Signed-off-by: Yihang Chen <[email protected]>
1 parent aade694 commit 139704f

17 files changed

Lines changed: 31613 additions & 26735 deletions

‎pixi.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies = [
1717
"attrs",
1818
"click>=7.0.0,<9.0.0",
1919
"colorama>=0.3.9,<1",
20-
"dill~=0.3.0",
20+
"dill>=0.3.0,<0.5",
2121
"protobuf>=4.24.0",
2222
"Jinja2>=2,<4",
2323
"mmh3",

‎sdk/python/requirements/py3.10-ci-requirements.txt‎

Lines changed: 4809 additions & 3476 deletions
Large diffs are not rendered by default.

‎sdk/python/requirements/py3.10-minimal-requirements.txt‎

Lines changed: 2067 additions & 1850 deletions
Large diffs are not rendered by default.

‎sdk/python/requirements/py3.10-minimal-sdist-requirements-build.txt‎

Lines changed: 475 additions & 409 deletions
Large diffs are not rendered by default.

‎sdk/python/requirements/py3.10-minimal-sdist-requirements.txt‎

Lines changed: 2153 additions & 1938 deletions
Large diffs are not rendered by default.

‎sdk/python/requirements/py3.10-requirements.txt‎

Lines changed: 898 additions & 783 deletions
Large diffs are not rendered by default.

‎sdk/python/requirements/py3.11-ci-requirements.txt‎

Lines changed: 4454 additions & 3658 deletions
Large diffs are not rendered by default.

‎sdk/python/requirements/py3.11-minimal-requirements.txt‎

Lines changed: 2218 additions & 1960 deletions
Large diffs are not rendered by default.

‎sdk/python/requirements/py3.11-minimal-sdist-requirements-build.txt‎

Lines changed: 480 additions & 412 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)