Files
python-dill/python-dill.spec
Todd R e9bb774eaf Accepting request 768848 from home:TheBlackCat:branches:devel:languages:python:numeric
- version update to 0.3.1.1
  * Add support for pickling MappingProxyType on Python3
  * Fix GetSetDescriptorType unpickling error in test_selected.py
  * add python 3.x keywords to dump and load
  * add save_socket method for socket objects
  * add support for pickling MappingProxyType
  * cleanup of Pickler,Unpickler; move dump to Pickler.dump
  * don't use multiple inheritance in Pickler,Unpickler
  * enabled to pickle __kwdefaults__ property
  * fix pickling keyword only arguments
  * fix typo in readline error message (#327)
  * more handling of 3.8 SyntaxWarnings
  * rollback register(SocketType) due to multiprocess test_pickling failure
  * unified handling of MappingProxyType and DictProxyType

OBS-URL: https://build.opensuse.org/request/show/768848
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=12
2020-01-30 17:23:51 +00:00

88 lines
2.8 KiB
RPMSpec

#
# spec file for package python-dill
#
# Copyright (c) 2020 SUSE LLC
#
# 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-dill
Version: 0.3.1.1
Release: 0
Summary: Module to serialize all of Python
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/uqfoundation/dill
Source: https://files.pythonhosted.org/packages/source/d/dill/dill-%{version}.tar.gz
BuildRequires: %{python_module objgraph >= 1.7.2}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-dbm
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-objgraph >= 1.7.2
BuildArch: noarch
%python_subpackages
%description
Dill extends python's `pickle` module for serializing and de-serializing
python objects to the majority of the built-in python types. Serialization
is the process of converting an object to a byte stream, and the inverse
of which is converting a byte stream back to on python object hierarchy.
Dill provides the user the same interface as the `pickle` module, and
also includes some additional features. In addition to pickling python
objects, `dill` provides the ability to save the state of an interpreter
session in a single command.
%prep
%setup -q -n dill-%{version}
find dill -name '*.py' -exec sed -i '1{\@^#!%{_bindir}/env python@d}' {} \;
%build
%python_build
%install
%python_install
%python_expand rm -r %{buildroot}%{$python_sitelib}/dill/tests
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/undill
%python_clone -a %{buildroot}%{_bindir}/get_objgraph
%check
export PYTHONDONTWRITEBYTECODE=1
# Creative; copied from .travis.yml
failed=0
for test in tests/*.py; do
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python $test || failed=1
done
exit $failed
%post
%{python_install_alternative undill get_objgraph}
%postun
%python_uninstall_alternative undill
%files %{python_files}
%doc README README.md
%license LICENSE
%python_alternative %{_bindir}/undill
%python_alternative %{_bindir}/get_objgraph
%{python_sitelib}/*
%changelog