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:
committed by
Git OBS Bridge
parent
0ca589a7c3
commit
5d52168274
@@ -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
3
dill-0.2.9.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f6d6046f9f9195206063dd0415dff185ad593d6ee8b0e67f12597c0f4df4986f
|
||||||
|
size 150738
|
@@ -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>
|
Tue Dec 4 12:47:17 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-dill
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,26 +17,23 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without test
|
|
||||||
Name: python-dill
|
Name: python-dill
|
||||||
Version: 0.2.7.1
|
Version: 0.2.9
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Serialize all of python
|
Summary: Serialize all of python
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
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
|
Source: https://files.pythonhosted.org/packages/source/d/dill/dill-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module objgraph}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
%if %{with test}
|
BuildRequires: python3-dbm
|
||||||
BuildRequires: %{python_module objgraph}
|
|
||||||
%endif
|
|
||||||
Recommends: python-objgraph
|
|
||||||
BuildArch: noarch
|
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
|
Recommends: python-objgraph
|
||||||
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -70,37 +67,38 @@ ticket list at https://github.com/uqfoundation/dill/issues.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n dill-%{version}
|
%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
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/dill/tests
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
mv %{buildroot}%{_bindir}/dill_unpickle.py %{buildroot}%{_bindir}/dill_unpickle
|
%python_clone -a %{buildroot}%{_bindir}/undill
|
||||||
mv %{buildroot}%{_bindir}/get_objgraph.py %{buildroot}%{_bindir}/get_objgraph
|
|
||||||
|
|
||||||
%python_clone -a %{buildroot}%{_bindir}/dill_unpickle
|
|
||||||
%python_clone -a %{buildroot}%{_bindir}/get_objgraph
|
%python_clone -a %{buildroot}%{_bindir}/get_objgraph
|
||||||
|
|
||||||
%if %{with test}
|
|
||||||
%check
|
%check
|
||||||
%python_exec tests/*.py
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
%endif
|
# 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
|
%post
|
||||||
%{python_install_alternative dill_unpickle get_objgraph}
|
%{python_install_alternative undill get_objgraph}
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative dill_unpickle
|
%python_uninstall_alternative undill
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc README README.md
|
%doc README README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python_alternative %{_bindir}/dill_unpickle
|
%python_alternative %{_bindir}/undill
|
||||||
%python_alternative %{_bindir}/get_objgraph
|
%python_alternative %{_bindir}/get_objgraph
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user