python-cloudpickle/python-cloudpickle.spec
Todd R 1547de45e6 Accepting request 671932 from home:alarrosa:branches:devel:languages:python
- Update to version 0.7.0:
  * Correctly serialize dynamically defined classes that have a __slots__
    attribute. (issue #225)
- Update to version 0.6.1
  * Fix regression in 0.6.0 which breaks the pickling of local function
    defined in a module, making it impossible to access builtins. (issue #211)
- Update to version 0.6.0
  * Ensure that unpickling a function defined in a dynamic module several
    times sequentially does not reset the values of global variables.
    (issue #187)
  * Restrict the ability to pickle annotations to python3.7+ (issue #193
    and issue #196)
  * Stop using the deprecated imp module under Python 3. (issue #207)
  * Fixed pickling issue with singleton types NoneType, type(...) and
    type(NotImplemented) (issue #209)
- Update to version 0.5.6
  * Ensure that unpickling a locally defined function that accesses the global
    variables of a module does not reset the values of the global variables if
    they are already initialized. (issue #187)
- Update to version 0.5.5
  * Fixed inconsistent version in cloudpickle.__version__.
- Update to version 0.5.4
  * Fixed a pickling issue for ABC in python3.7+ (issue #180).
  * Fixed a bug when pickling functions in __main__ that access global
    variables (issue #187).

OBS-URL: https://build.opensuse.org/request/show/671932
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudpickle?expand=0&rev=12
2019-02-05 18:17:07 +00:00

78 lines
2.5 KiB
RPMSpec

#
# spec file for package python-cloudpickle
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-cloudpickle
Version: 0.7.0
Release: 0
Summary: Extended pickling support for Python objects
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/cloudpipe/cloudpickle
Source: https://files.pythonhosted.org/packages/source/c/cloudpickle/cloudpickle-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
BuildRequires: %{python_module curses}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module numpy >= 1.8.2}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module scipy}
BuildRequires: %{python_module tornado}
Requires: python-curses
Requires: python-numpy >= 1.8.2
Requires: python-scipy
Requires: python-tornado
%python_subpackages
%description
The cloudpickle package makes it possible to serialize Python constructs
not supported by the default pickle module from the Python standard
library.
cloudpickle is especially useful for cluster computing where Python
expressions are shipped over the network to execute on remote hosts,
possibly close to the data.
Among other things, cloudpickle supports pickling for lambda expressions,
functions and classes defined interactively in the __main__ module.
%prep
%setup -q -n cloudpickle-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# Tests require very specific paths and py.test arguments
export PYTHONPATH='.:tests'
%python_expand py.test-%{$python_bin_suffix} -s
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%changelog