diff --git a/dill-0.2.7.1.tar.gz b/dill-0.2.7.1.tar.gz deleted file mode 100644 index 2d29e78..0000000 --- a/dill-0.2.7.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97fd758f5fe742d42b11ec8318ecfcff8776bccacbfcec05dfd6276f5d450f73 -size 64485 diff --git a/dill-0.2.9.tar.gz b/dill-0.2.9.tar.gz new file mode 100644 index 0000000..1332974 --- /dev/null +++ b/dill-0.2.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6d6046f9f9195206063dd0415dff185ad593d6ee8b0e67f12597c0f4df4986f +size 150738 diff --git a/python-dill.changes b/python-dill.changes index 328d16c..6b3ea16 100644 --- a/python-dill.changes +++ b/python-dill.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 8 12:50:34 UTC 2019 - Tomáš Chvátal + +- Update to 0.2.9: + * Various test/flake updates + ------------------------------------------------------------------- Tue Dec 4 12:47:17 UTC 2018 - Matej Cepl diff --git a/python-dill.spec b/python-dill.spec index c35eda2..5b6ce94 100644 --- a/python-dill.spec +++ b/python-dill.spec @@ -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}/*