14
0
forked from pool/python-dill

- Update to 0.2.9:

* Various test/flake updates

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=6
This commit is contained in:
Tomáš Chvátal
2019-03-08 13:03:30 +00:00
committed by Git OBS Bridge
parent 0ca589a7c3
commit 5d52168274
4 changed files with 30 additions and 26 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:97fd758f5fe742d42b11ec8318ecfcff8776bccacbfcec05dfd6276f5d450f73
size 64485

3
dill-0.2.9.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f6d6046f9f9195206063dd0415dff185ad593d6ee8b0e67f12597c0f4df4986f
size 150738

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Mar 8 12:50:34 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.2.9:
* Various test/flake updates
-------------------------------------------------------------------
Tue Dec 4 12:47:17 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-dill
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@@ -17,26 +17,23 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-dill
Version: 0.2.7.1
Version: 0.2.9
Release: 0
Summary: Serialize all of python
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://www.cacr.caltech.edu/~mmckerns/dill.htm
URL: https://github.com/uqfoundation/dill
Source: https://files.pythonhosted.org/packages/source/d/dill/dill-%{version}.tar.gz
BuildRequires: %{python_module objgraph}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module objgraph}
%endif
Recommends: python-objgraph
BuildRequires: python3-dbm
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-objgraph
BuildArch: noarch
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
@@ -70,37 +67,38 @@ ticket list at https://github.com/uqfoundation/dill/issues.
%prep
%setup -q -n dill-%{version}
find dill -name '*.py' -exec sed -i '1{\@^#!/usr/bin/env python@d}' {} \;
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}
mv %{buildroot}%{_bindir}/dill_unpickle.py %{buildroot}%{_bindir}/dill_unpickle
mv %{buildroot}%{_bindir}/get_objgraph.py %{buildroot}%{_bindir}/get_objgraph
%python_clone -a %{buildroot}%{_bindir}/dill_unpickle
%python_clone -a %{buildroot}%{_bindir}/undill
%python_clone -a %{buildroot}%{_bindir}/get_objgraph
%if %{with test}
%check
%python_exec tests/*.py
%endif
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 dill_unpickle get_objgraph}
%{python_install_alternative undill get_objgraph}
%postun
%python_uninstall_alternative dill_unpickle
%python_uninstall_alternative undill
%files %{python_files}
%defattr(-,root,root,-)
%doc README README.md
%license LICENSE
%python_alternative %{_bindir}/dill_unpickle
%python_alternative %{_bindir}/undill
%python_alternative %{_bindir}/get_objgraph
%{python_sitelib}/*