From bc4e7e121b5bc1e3b3901ea191181605c85b0a14c9fe60a74b134320fce71cc6 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 4 Dec 2020 12:38:26 +0000 Subject: [PATCH] Accepting request 852905 from home:mcalabkova:branches:devel:languages:python - Update to 1.6.0 * Fix a bug causing cloudpickle to crash when pickling dynamically created, importable modules. (issue #360) * cloudpickle's pickle.Pickler subclass (currently defined as cloudpickle.cloudpickle_fast.CloudPickler) can and should now be accessed as cloudpickle.Pickler. This is the only officially supported way of accessing it. (issue #366) * cloudpickle now supports pickling dict_keys, dict_items and dict_values. (PR #384) OBS-URL: https://build.opensuse.org/request/show/852905 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudpickle?expand=0&rev=31 --- cloudpickle-1.4.1.tar.gz | 3 --- cloudpickle-1.6.0.tar.gz | 3 +++ python-cloudpickle.changes | 9 +++++++++ python-cloudpickle.spec | 12 ++++++------ 4 files changed, 18 insertions(+), 9 deletions(-) delete mode 100644 cloudpickle-1.4.1.tar.gz create mode 100644 cloudpickle-1.6.0.tar.gz diff --git a/cloudpickle-1.4.1.tar.gz b/cloudpickle-1.4.1.tar.gz deleted file mode 100644 index c58a5e5..0000000 --- a/cloudpickle-1.4.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b6258a20a143603d53b037a20983016d4e978f554ec4f36b3d0895b947099ae -size 47459 diff --git a/cloudpickle-1.6.0.tar.gz b/cloudpickle-1.6.0.tar.gz new file mode 100644 index 0000000..375b2ff --- /dev/null +++ b/cloudpickle-1.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9bc994f9e9447593bd0a45371f0e7ac7333710fcf64a4eb9834bf149f4ef2f32 +size 52743 diff --git a/python-cloudpickle.changes b/python-cloudpickle.changes index 1fb5849..c09cb73 100644 --- a/python-cloudpickle.changes +++ b/python-cloudpickle.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Dec 2 15:00:54 UTC 2020 - Markéta Machová + +- Update to 1.6.0 + * Fix a bug causing cloudpickle to crash when pickling dynamically created, importable modules. (issue #360) + * cloudpickle's pickle.Pickler subclass (currently defined as cloudpickle.cloudpickle_fast.CloudPickler) can + and should now be accessed as cloudpickle.Pickler. This is the only officially supported way of accessing it. (issue #366) + * cloudpickle now supports pickling dict_keys, dict_items and dict_values. (PR #384) + ------------------------------------------------------------------- Fri Jun 26 04:16:58 UTC 2020 - Steve Kowalik diff --git a/python-cloudpickle.spec b/python-cloudpickle.spec index f5a2a20..c70126d 100644 --- a/python-cloudpickle.spec +++ b/python-cloudpickle.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-cloudpickle -Version: 1.4.1 +Version: 1.6.0 Release: 0 Summary: Extended pickling support for Python objects License: BSD-3-Clause @@ -27,9 +27,9 @@ URL: https://github.com/cloudpipe/cloudpickle Source: https://files.pythonhosted.org/packages/source/c/cloudpickle/cloudpickle-%{version}.tar.gz BuildRequires: %{python_module curses} BuildRequires: %{python_module mock} -BuildRequires: %{python_module numpy >= 1.8.2} +BuildRequires: %{python_module numpy >= 1.8.5} +BuildRequires: %{python_module pip} BuildRequires: %{python_module psutil} -BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest} BuildRequires: %{python_module scipy} BuildRequires: %{python_module setuptools} @@ -37,7 +37,7 @@ BuildRequires: %{python_module tornado} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-curses -Requires: python-numpy >= 1.8.2 +Requires: python-numpy >= 1.8.5 Requires: python-scipy Requires: python-tornado BuildArch: noarch @@ -72,9 +72,9 @@ functions and classes defined interactively in the __main__ module. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +pip install ./tests/cloudpickle_testpkg export PYTHONPATH='.:tests' -# Because of gh#cloudpipe/cloudpickle#316 -%pytest -s -k 'not (test_dynamic_module or test_load_dynamic_module_in_grandchild_process)' +%pytest -s %files %{python_files} %doc README.md