You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by lo...@apache.org on 2022/09/12 17:06:43 UTC

[beam] branch release-2.42.0 updated: Pin the version of cloudpickle to 2.1.x for Beam 2.42.0 (#23121)

This is an automated email from the ASF dual-hosted git repository.

lostluck pushed a commit to branch release-2.42.0
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/release-2.42.0 by this push:
     new 22f672e7d42 Pin the version of cloudpickle to 2.1.x for Beam 2.42.0 (#23121)
22f672e7d42 is described below

commit 22f672e7d426a85855dfb8256c198d2170ecc9ab
Author: tvalentyn <tv...@users.noreply.github.com>
AuthorDate: Mon Sep 12 10:06:35 2022 -0700

    Pin the version of cloudpickle to 2.1.x for Beam 2.42.0 (#23121)
---
 sdks/python/setup.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sdks/python/setup.py b/sdks/python/setup.py
index f0863bf49cd..f097ea986d9 100644
--- a/sdks/python/setup.py
+++ b/sdks/python/setup.py
@@ -217,7 +217,11 @@ if __name__ == '__main__':
         # dill on client and server, therefore list of allowed versions is very
         # narrow. See: https://github.com/uqfoundation/dill/issues/341.
         'dill>=0.3.1.1,<0.3.2',
-        'cloudpickle>=2.1.0,<3',
+        # It is prudent to use the same version of pickler at job submission
+        # and at runtime, therefore bounds need to be tight.
+        # To avoid depending on an old dependency, update the minor version on
+        # every Beam release, see: https://github.com/apache/beam/issues/23119
+        'cloudpickle~=2.1.0',
         'fastavro>=0.23.6,<2',
         'grpcio>=1.33.1,!=1.48.0,<2',
         'hdfs>=2.1.0,<3.0.0',