Skip to content

Commit 468f5cf

Browse files
claudevdmClaude
andauthored
Add vendored cloudpickle (#34424)
* Add vendored cloudpickle. * Remove references to third party cloudpickle. * Fix precommits. * Fix isort lint error. * Fix extra space. * Remove extra quote * Change vendored version to 3.1.1 --------- Co-authored-by: Claude <cvandermerwe@google.com>
1 parent 192c903 commit 468f5cf

File tree

10 files changed

+1613
-15
lines changed

10 files changed

+1613
-15
lines changed

LICENCE.cloudpickle

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Copyright (c) 2012-now, CloudPickle developers and contributors.
2+
Copyright (c) 2012, Regents of the University of California.
3+
Copyright (c) 2009 `PiCloud, Inc. <https://web.archive.org/web/20140626004012/http://www.picloud.com/>`_.
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions
8+
are met:
9+
* Redistributions of source code must retain the above copyright
10+
notice, this list of conditions and the following disclaimer.
11+
* Redistributions in binary form must reproduce the above copyright
12+
notice, this list of conditions and the following disclaimer in the
13+
documentation and/or other materials provided with the distribution.
14+
* Neither the name of the University of California, Berkeley nor the
15+
names of its contributors may be used to endorse or promote
16+
products derived from this software without specific prior written
17+
permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
25+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ tasks.rat {
9696
// Ignore CPython LICENSE file
9797
"LICENSE.python",
9898

99+
// Ignore vendored cloudpickle files
100+
"sdks/python/apache_beam/internal/cloudpickle/**",
101+
"LICENCE.cloudpickle",
102+
99103
// Json doesn't support comments.
100104
"**/*.json",
101105

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from . import cloudpickle
2+
from .cloudpickle import * # noqa
3+
4+
__doc__ = cloudpickle.__doc__
5+
6+
__version__ = "3.1.1"
7+
8+
__all__ = [ # noqa
9+
"__version__",
10+
"Pickler",
11+
"CloudPickler",
12+
"dumps",
13+
"loads",
14+
"dump",
15+
"load",
16+
"register_pickle_by_value",
17+
"unregister_pickle_by_value",
18+
]

0 commit comments

Comments
 (0)