| 1 |
In development |
| 2 |
============== |
| 3 |
|
| 4 |
3.1.2 |
| 5 |
===== |
| 6 |
|
| 7 |
- Fix pickling of abstract base classes containing type annotations for |
| 8 |
Python 3.14. ([PR#578](https://github.com/cloudpipe/cloudpickle/pull/578)) |
| 9 |
|
| 10 |
3.1.1 |
| 11 |
===== |
| 12 |
|
| 13 |
- Various fixes to support for Python 3.14 ([PR #545]( |
| 14 |
https://github.com/cloudpipe/cloudpickle/pull/545)). |
| 15 |
|
| 16 |
3.1.0 |
| 17 |
===== |
| 18 |
|
| 19 |
- Some improvements to make cloudpickle more deterministic when pickling |
| 20 |
dynamic functions and classes, in particular with CPython 3.13. |
| 21 |
([PR #524](https://github.com/cloudpipe/cloudpickle/pull/524) and |
| 22 |
[PR #534](https://github.com/cloudpipe/cloudpickle/pull/534)) |
| 23 |
|
| 24 |
- Fix a problem with the joint usage of cloudpickle's `_whichmodule` and |
| 25 |
`multiprocessing`. |
| 26 |
([PR #529](https://github.com/cloudpipe/cloudpickle/pull/529)) |
| 27 |
|
| 28 |
3.0.0 |
| 29 |
===== |
| 30 |
|
| 31 |
- Officially support Python 3.12 and drop support for Python 3.6 and 3.7. |
| 32 |
Dropping support for older Python versions made it possible to simplify the |
| 33 |
code base significantly, hopefully making it easier to contribute to and |
| 34 |
maintain the project. |
| 35 |
([PR #517](https://github.com/cloudpipe/cloudpickle/pull/517)) |
| 36 |
|
| 37 |
- Fix pickling of dataclasses and their instances. |
| 38 |
([issue #386](https://github.com/cloudpipe/cloudpickle/issues/386), |
| 39 |
[PR #513](https://github.com/cloudpipe/cloudpickle/pull/513)) |
| 40 |
|
| 41 |
- Any color you like as long as it's black. |
| 42 |
([PR #521](https://github.com/cloudpipe/cloudpickle/pull/521)) |
| 43 |
|
| 44 |
- Drop `setup.py` and `setuptools` in favor of `pyproject.toml` and `flit`. |
| 45 |
([PR #521](https://github.com/cloudpipe/cloudpickle/pull/521)) |
| 46 |
|
| 47 |
2.2.1 |
| 48 |
===== |
| 49 |
|
| 50 |
- Fix pickling of NamedTuple in Python 3.9+. |
| 51 |
([issue #460](https://github.com/cloudpipe/cloudpickle/issues/460)) |
| 52 |
|
| 53 |
2.2.0 |
| 54 |
===== |
| 55 |
|
| 56 |
- Fix support of PyPy 3.8 and later. |
| 57 |
([issue #455](https://github.com/cloudpipe/cloudpickle/issues/455)) |
| 58 |
|
| 59 |
2.1.0 |
| 60 |
===== |
| 61 |
|
| 62 |
- Support for pickling `abc.abstractproperty`, `abc.abstractclassmethod`, |
| 63 |
and `abc.abstractstaticmethod`. |
| 64 |
([PR #450](https://github.com/cloudpipe/cloudpickle/pull/450)) |
| 65 |
|
| 66 |
- Support for pickling subclasses of generic classes. |
| 67 |
([PR #448](https://github.com/cloudpipe/cloudpickle/pull/448)) |
| 68 |
|
| 69 |
- Support and CI configuration for Python 3.11. |
| 70 |
([PR #467](https://github.com/cloudpipe/cloudpickle/pull/467)) |
| 71 |
|
| 72 |
- Support for the experimental `nogil` variant of CPython |
| 73 |
([PR #470](https://github.com/cloudpipe/cloudpickle/pull/470)) |
| 74 |
|
| 75 |
2.0.0 |
| 76 |
===== |
| 77 |
|
| 78 |
- Python 3.5 is no longer supported. |
| 79 |
|
| 80 |
- Support for registering modules to be serialised by value. This allows code |
| 81 |
defined in local modules to be serialised and executed remotely without those |
| 82 |
local modules installed on the remote machine. |
| 83 |
([PR #417](https://github.com/cloudpipe/cloudpickle/pull/417)) |
| 84 |
|
| 85 |
- Fix a side effect altering dynamic modules at pickling time. |
| 86 |
([PR #426](https://github.com/cloudpipe/cloudpickle/pull/426)) |
| 87 |
|
| 88 |
- Support for pickling type annotations on Python 3.10 as per [PEP 563]( |
| 89 |
https://www.python.org/dev/peps/pep-0563/) |
| 90 |
([PR #400](https://github.com/cloudpipe/cloudpickle/pull/400)) |
| 91 |
|
| 92 |
- Stricter parametrized type detection heuristics in |
| 93 |
_is_parametrized_type_hint to limit false positives. |
| 94 |
([PR #409](https://github.com/cloudpipe/cloudpickle/pull/409)) |
| 95 |
|
| 96 |
- Support pickling / depickling of OrderedDict KeysView, ValuesView, and |
| 97 |
ItemsView, following similar strategy for vanilla Python dictionaries. |
| 98 |
([PR #423](https://github.com/cloudpipe/cloudpickle/pull/423)) |
| 99 |
|
| 100 |
- Suppressed a source of non-determinism when pickling dynamically defined |
| 101 |
functions and handles the deprecation of co_lnotab in Python 3.10+. |
| 102 |
([PR #428](https://github.com/cloudpipe/cloudpickle/pull/428)) |
| 103 |
|
| 104 |
1.6.0 |
| 105 |
===== |
| 106 |
|
| 107 |
- `cloudpickle`'s pickle.Pickler subclass (currently defined as |
| 108 |
`cloudpickle.cloudpickle_fast.CloudPickler`) can and should now be accessed |
| 109 |
as `cloudpickle.Pickler`. This is the only officially supported way of |
| 110 |
accessing it. |
| 111 |
([issue #366](https://github.com/cloudpipe/cloudpickle/issues/366)) |
| 112 |
|
| 113 |
- `cloudpickle` now supports pickling `dict_keys`, `dict_items` and |
| 114 |
`dict_values`. |
| 115 |
([PR #384](https://github.com/cloudpipe/cloudpickle/pull/384)) |
| 116 |
|
| 117 |
|
| 118 |
1.5.0 |
| 119 |
===== |
| 120 |
|
| 121 |
- Fix a bug causing cloudpickle to crash when pickling dynamically created, |
| 122 |
importable modules. |
| 123 |
([issue #360](https://github.com/cloudpipe/cloudpickle/issues/354)) |
| 124 |
|
| 125 |
- Add optional dependency on `pickle5` to get improved performance on |
| 126 |
Python 3.6 and 3.7. |
| 127 |
([PR #370](https://github.com/cloudpipe/cloudpickle/pull/370)) |
| 128 |
|
| 129 |
- Internal refactoring to ease the use of `pickle5` in cloudpickle |
| 130 |
for Python 3.6 and 3.7. |
| 131 |
([PR #368](https://github.com/cloudpipe/cloudpickle/pull/368)) |
| 132 |
|
| 133 |
|
| 134 |
1.4.1 |
| 135 |
===== |
| 136 |
|
| 137 |
- Fix incompatibilities between cloudpickle 1.4.0 and Python 3.5.0/1/2 |
| 138 |
introduced by the new support of cloudpickle for pickling typing constructs. |
| 139 |
([issue #360](https://github.com/cloudpipe/cloudpickle/issues/360)) |
| 140 |
|
| 141 |
- Restore compat with loading dynamic classes pickled with cloudpickle |
| 142 |
version 1.2.1 that would reference the `types.ClassType` attribute. |
| 143 |
([PR #359](https://github.com/cloudpipe/cloudpickle/pull/359)) |
| 144 |
|
| 145 |
|
| 146 |
1.4.0 |
| 147 |
===== |
| 148 |
|
| 149 |
**This version requires Python 3.5 or later** |
| 150 |
|
| 151 |
- cloudpickle can now all pickle all constructs from the ``typing`` module |
| 152 |
and the ``typing_extensions`` library in Python 3.5+ |
| 153 |
([PR #318](https://github.com/cloudpipe/cloudpickle/pull/318)) |
| 154 |
|
| 155 |
- Stop pickling the annotations of a dynamic class for Python < 3.6 |
| 156 |
(follow up on #276) |
| 157 |
([issue #347](https://github.com/cloudpipe/cloudpickle/issues/347)) |
| 158 |
|
| 159 |
- Fix a bug affecting the pickling of dynamic `TypeVar` instances on Python 3.7+, |
| 160 |
and expand the support for pickling `TypeVar` instances (dynamic or non-dynamic) |
| 161 |
to Python 3.5-3.6 ([PR #350](https://github.com/cloudpipe/cloudpickle/pull/350)) |
| 162 |
|
| 163 |
- Add support for pickling dynamic classes subclassing `typing.Generic` |
| 164 |
instances on Python 3.7+ |
| 165 |
([PR #351](https://github.com/cloudpipe/cloudpickle/pull/351)) |
| 166 |
|
| 167 |
1.3.0 |
| 168 |
===== |
| 169 |
|
| 170 |
- Fix a bug affecting dynamic modules occuring with modified builtins |
| 171 |
([issue #316](https://github.com/cloudpipe/cloudpickle/issues/316)) |
| 172 |
|
| 173 |
- Fix a bug affecting cloudpickle when non-modules objects are added into |
| 174 |
sys.modules |
| 175 |
([PR #326](https://github.com/cloudpipe/cloudpickle/pull/326)). |
| 176 |
|
| 177 |
- Fix a regression in cloudpickle and python3.8 causing an error when trying to |
| 178 |
pickle property objects. |
| 179 |
([PR #329](https://github.com/cloudpipe/cloudpickle/pull/329)). |
| 180 |
|
| 181 |
- Fix a bug when a thread imports a module while cloudpickle iterates |
| 182 |
over the module list |
| 183 |
([PR #322](https://github.com/cloudpipe/cloudpickle/pull/322)). |
| 184 |
|
| 185 |
- Add support for out-of-band pickling (Python 3.8 and later). |
| 186 |
https://docs.python.org/3/library/pickle.html#example |
| 187 |
([issue #308](https://github.com/cloudpipe/cloudpickle/pull/308)) |
| 188 |
|
| 189 |
- Fix a side effect that would redefine `types.ClassTypes` as `type` |
| 190 |
when importing cloudpickle. |
| 191 |
([issue #337](https://github.com/cloudpipe/cloudpickle/pull/337)) |
| 192 |
|
| 193 |
- Fix a bug affecting subclasses of slotted classes. |
| 194 |
([issue #311](https://github.com/cloudpipe/cloudpickle/issues/311)) |
| 195 |
|
| 196 |
- Dont pickle the abc cache of dynamically defined classes for Python 3.6- |
| 197 |
(This was already the case for python3.7+) |
| 198 |
([issue #302](https://github.com/cloudpipe/cloudpickle/issues/302)) |
| 199 |
|
| 200 |
1.2.2 |
| 201 |
===== |
| 202 |
|
| 203 |
- Revert the change introduced in |
| 204 |
([issue #276](https://github.com/cloudpipe/cloudpickle/pull/276)) |
| 205 |
attempting to pickle functions annotations for Python 3.4 to 3.6. It is not |
| 206 |
possible to pickle complex typing constructs for those versions (see |
| 207 |
[issue #193]( https://github.com/cloudpipe/cloudpickle/issues/193)) |
| 208 |
|
| 209 |
- Fix a bug affecting bound classmethod saving on Python 2. |
| 210 |
([issue #288](https://github.com/cloudpipe/cloudpickle/issues/288)) |
| 211 |
|
| 212 |
- Add support for pickling "getset" descriptors |
| 213 |
([issue #290](https://github.com/cloudpipe/cloudpickle/pull/290)) |
| 214 |
|
| 215 |
1.2.1 |
| 216 |
===== |
| 217 |
|
| 218 |
- Restore (partial) support for Python 3.4 for downstream projects that have |
| 219 |
LTS versions that would benefit from cloudpickle bug fixes. |
| 220 |
|
| 221 |
|
| 222 |
1.2.0 |
| 223 |
===== |
| 224 |
|
| 225 |
- Leverage the C-accelerated Pickler new subclassing API (available in Python |
| 226 |
3.8) in cloudpickle. This allows cloudpickle to pickle Python objects up to |
| 227 |
30 times faster. |
| 228 |
([issue #253](https://github.com/cloudpipe/cloudpickle/pull/253)) |
| 229 |
|
| 230 |
- Support pickling of classmethod and staticmethod objects in python2. |
| 231 |
arguments. ([issue #262](https://github.com/cloudpipe/cloudpickle/pull/262)) |
| 232 |
|
| 233 |
- Add support to pickle type annotations for Python 3.5 and 3.6 (pickling type |
| 234 |
annotations was already supported for Python 3.7, Python 3.4 might also work |
| 235 |
but is no longer officially supported by cloudpickle) |
| 236 |
([issue #276](https://github.com/cloudpipe/cloudpickle/pull/276)) |
| 237 |
|
| 238 |
- Internal refactoring to proactively detect dynamic functions and classes when |
| 239 |
pickling them. This refactoring also yields small performance improvements |
| 240 |
when pickling dynamic classes (~10%) |
| 241 |
([issue #273](https://github.com/cloudpipe/cloudpickle/pull/273)) |
| 242 |
|
| 243 |
1.1.1 |
| 244 |
===== |
| 245 |
|
| 246 |
- Minor release to fix a packaging issue (Markdown formatting of the long |
| 247 |
description rendered on pypi.org). The code itself is the same as 1.1.0. |
| 248 |
|
| 249 |
1.1.0 |
| 250 |
===== |
| 251 |
|
| 252 |
- Support the pickling of interactively-defined functions with positional-only |
| 253 |
arguments. ([issue #266](https://github.com/cloudpipe/cloudpickle/pull/266)) |
| 254 |
|
| 255 |
- Track the provenance of dynamic classes and enums so as to preseve the |
| 256 |
usual `isinstance` relationship between pickled objects and their |
| 257 |
original class defintions. |
| 258 |
([issue #246](https://github.com/cloudpipe/cloudpickle/pull/246)) |
| 259 |
|
| 260 |
1.0.0 |
| 261 |
===== |
| 262 |
|
| 263 |
- Fix a bug making functions with keyword-only arguments forget the default |
| 264 |
values of these arguments after being pickled. |
| 265 |
([issue #264](https://github.com/cloudpipe/cloudpickle/pull/264)) |
| 266 |
|
| 267 |
0.8.1 |
| 268 |
===== |
| 269 |
|
| 270 |
- Fix a bug (already present before 0.5.3 and re-introduced in 0.8.0) |
| 271 |
affecting relative import instructions inside depickled functions |
| 272 |
([issue #254](https://github.com/cloudpipe/cloudpickle/pull/254)) |
| 273 |
|
| 274 |
0.8.0 |
| 275 |
===== |
| 276 |
|
| 277 |
- Add support for pickling interactively defined dataclasses. |
| 278 |
([issue #245](https://github.com/cloudpipe/cloudpickle/pull/245)) |
| 279 |
|
| 280 |
- Global variables referenced by functions pickled by cloudpickle are now |
| 281 |
unpickled in a new and isolated namespace scoped by the CloudPickler |
| 282 |
instance. This restores the (previously untested) behavior of cloudpickle |
| 283 |
prior to changes done in 0.5.4 for functions defined in the `__main__` |
| 284 |
module, and 0.6.0/1 for other dynamic functions. |
| 285 |
|
| 286 |
0.7.0 |
| 287 |
===== |
| 288 |
|
| 289 |
- Correctly serialize dynamically defined classes that have a `__slots__` |
| 290 |
attribute. |
| 291 |
([issue #225](https://github.com/cloudpipe/cloudpickle/issues/225)) |
| 292 |
|
| 293 |
|
| 294 |
0.6.1 |
| 295 |
===== |
| 296 |
|
| 297 |
- Fix regression in 0.6.0 which breaks the pickling of local function defined |
| 298 |
in a module, making it impossible to access builtins. |
| 299 |
([issue #211](https://github.com/cloudpipe/cloudpickle/issues/211)) |
| 300 |
|
| 301 |
|
| 302 |
0.6.0 |
| 303 |
===== |
| 304 |
|
| 305 |
- Ensure that unpickling a function defined in a dynamic module several times |
| 306 |
sequentially does not reset the values of global variables. |
| 307 |
([issue #187](https://github.com/cloudpipe/cloudpickle/issues/205)) |
| 308 |
|
| 309 |
- Restrict the ability to pickle annotations to python3.7+ ([issue #193]( |
| 310 |
https://github.com/cloudpipe/cloudpickle/issues/193) and [issue #196]( |
| 311 |
https://github.com/cloudpipe/cloudpickle/issues/196)) |
| 312 |
|
| 313 |
- Stop using the deprecated `imp` module under Python 3. |
| 314 |
([issue #207](https://github.com/cloudpipe/cloudpickle/issues/207)) |
| 315 |
|
| 316 |
- Fixed pickling issue with singleton types `NoneType`, `type(...)` and |
| 317 |
`type(NotImplemented)` ([issue #209](https://github.com/cloudpipe/cloudpickle/issues/209)) |
| 318 |
|
| 319 |
|
| 320 |
0.5.6 |
| 321 |
===== |
| 322 |
|
| 323 |
- Ensure that unpickling a locally defined function that accesses the global |
| 324 |
variables of a module does not reset the values of the global variables if |
| 325 |
they are already initialized. |
| 326 |
([issue #187](https://github.com/cloudpipe/cloudpickle/issues/187)) |
| 327 |
|
| 328 |
|
| 329 |
0.5.5 |
| 330 |
===== |
| 331 |
|
| 332 |
- Fixed inconsistent version in `cloudpickle.__version__`. |
| 333 |
|
| 334 |
|
| 335 |
0.5.4 |
| 336 |
===== |
| 337 |
|
| 338 |
- Fixed a pickling issue for ABC in python3.7+ ([issue #180]( |
| 339 |
https://github.com/cloudpipe/cloudpickle/issues/180)). |
| 340 |
|
| 341 |
- Fixed a bug when pickling functions in `__main__` that access global |
| 342 |
variables ([issue #187]( |
| 343 |
https://github.com/cloudpipe/cloudpickle/issues/187)). |
| 344 |
|
| 345 |
0.5.3 |
| 346 |
===== |
| 347 |
- Fixed a crash in Python 2 when serializing non-hashable instancemethods of built-in |
| 348 |
types ([issue #144](https://github.com/cloudpipe/cloudpickle/issues/144)). |
| 349 |
|
| 350 |
- itertools objects can also pickled |
| 351 |
([PR #156](https://github.com/cloudpipe/cloudpickle/pull/156)). |
| 352 |
|
| 353 |
- `logging.RootLogger` can be also pickled |
| 354 |
([PR #160](https://github.com/cloudpipe/cloudpickle/pull/160)). |
| 355 |
|
| 356 |
0.5.2 |
| 357 |
===== |
| 358 |
|
| 359 |
- Fixed a regression: `AttributeError` when loading pickles that hold a |
| 360 |
reference to a dynamically defined class from the `__main__` module. |
| 361 |
([issue #131]( https://github.com/cloudpipe/cloudpickle/issues/131)). |
| 362 |
|
| 363 |
- Make it possible to pickle classes and functions defined in faulty |
| 364 |
modules that raise an exception when trying to look-up their attributes |
| 365 |
by name. |
| 366 |
|
| 367 |
|
| 368 |
0.5.1 |
| 369 |
===== |
| 370 |
|
| 371 |
- Fixed `cloudpickle.__version__`. |
| 372 |
|
| 373 |
0.5.0 |
| 374 |
===== |
| 375 |
|
| 376 |
- Use `pickle.HIGHEST_PROTOCOL` by default. |
| 377 |
|
| 378 |
0.4.4 |
| 379 |
===== |
| 380 |
|
| 381 |
- `logging.RootLogger` can be also pickled |
| 382 |
([PR #160](https://github.com/cloudpipe/cloudpickle/pull/160)). |
| 383 |
|
| 384 |
0.4.3 |
| 385 |
===== |
| 386 |
|
| 387 |
- Fixed a regression: `AttributeError` when loading pickles that hold a |
| 388 |
reference to a dynamically defined class from the `__main__` module. |
| 389 |
([issue #131]( https://github.com/cloudpipe/cloudpickle/issues/131)). |
| 390 |
|
| 391 |
- Fixed a crash in Python 2 when serializing non-hashable instancemethods of built-in |
| 392 |
types. ([issue #144](https://github.com/cloudpipe/cloudpickle/issues/144)) |
| 393 |
|
| 394 |
0.4.2 |
| 395 |
===== |
| 396 |
|
| 397 |
- Restored compatibility with pickles from 0.4.0. |
| 398 |
- Handle the `func.__qualname__` attribute. |
| 399 |
|
| 400 |
0.4.1 |
| 401 |
===== |
| 402 |
|
| 403 |
- Fixed a crash when pickling dynamic classes whose `__dict__` attribute was |
| 404 |
defined as a [`property`](https://docs.python.org/3/library/functions.html#property). |
| 405 |
Most notably, this affected dynamic [namedtuples](https://docs.python.org/2/library/collections.html#namedtuple-factory-function-for-tuples-with-named-fields) |
| 406 |
in Python 2. (https://github.com/cloudpipe/cloudpickle/pull/113) |
| 407 |
- Cloudpickle now preserves the `__module__` attribute of functions (https://github.com/cloudpipe/cloudpickle/pull/118/). |
| 408 |
- Fixed a crash when pickling modules that don't have a `__package__` attribute (https://github.com/cloudpipe/cloudpickle/pull/116). |
| 409 |
|
| 410 |
0.4.0 |
| 411 |
===== |
| 412 |
|
| 413 |
* Fix functions with empty cells |
| 414 |
* Allow pickling Logger objects |
| 415 |
* Fix crash when pickling dynamic class cycles |
| 416 |
* Ignore "None" mdoules added to sys.modules |
| 417 |
* Support WeakSets and ABCMeta instances |
| 418 |
* Remove non-standard `__transient__` support |
| 419 |
* Catch exception from `pickle.whichmodule()` |
| 420 |
|
| 421 |
|
| 422 |
0.3.1 |
| 423 |
===== |
| 424 |
|
| 425 |
* Fix version information and ship a changelog |
| 426 |
|
| 427 |
0.3.0 |
| 428 |
===== |
| 429 |
|
| 430 |
* Import submodules accessed by pickled functions |
| 431 |
* Support recursive functions inside closures |
| 432 |
* Fix `ResourceWarnings` and `DeprecationWarnings` |
| 433 |
* Assume modules with `__file__` attribute are not dynamic |
| 434 |
|
| 435 |
0.2.2 |
| 436 |
===== |
| 437 |
|
| 438 |
* Support Python 3.6 |
| 439 |
* Support Tornado Coroutines |
| 440 |
* Support builtin methods |
| 441 |
|
| 442 |
0.2.1 |
| 443 |
===== |
| 444 |
|
| 445 |
* Packaging fix |
| 446 |
|
| 447 |
0.2.0 |
| 448 |
===== |
| 449 |
|
| 450 |
* Support `method_descriptor` |
| 451 |
* Support unbound instancemethods |
| 452 |
* Fixes for PyPy3 |
| 453 |
* More support for pickling dynamic imports |
| 454 |
|
| 455 |
0.1.0 |
| 456 |
===== |
| 457 |
|
| 458 |
Released on 2015-04-16 from the (real) clouds somewhere between Montréal and |
| 459 |
Atlanta. |