diff --git a/ZODB-5.4.0.tar.gz b/ZODB-5.4.0.tar.gz deleted file mode 100644 index d566cfe..0000000 --- a/ZODB-5.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b306042f4f0d558a477d65c34b0dd6e7604c6e583f55dfda52befa2fa13e076 -size 514222 diff --git a/ZODB-5.5.1.tar.gz b/ZODB-5.5.1.tar.gz new file mode 100644 index 0000000..fc8dedc --- /dev/null +++ b/ZODB-5.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20155942fa326e89ad8544225bafd74237af332ce9d7c7105a22318fe8269666 +size 512395 diff --git a/python-ZODB-testsuite.patch b/python-ZODB-testsuite.patch deleted file mode 100644 index 7ae8b59..0000000 --- a/python-ZODB-testsuite.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- ZODB-5.4.0/setup.py.orig 2018-03-26 07:29:02.000000000 -0600 -+++ ZODB-5.4.0/setup.py 2018-03-26 20:19:35.621276487 -0600 -@@ -85,10 +85,12 @@ def alltests(): - mod = __import__( - _modname(dirpath, base, os.path.splitext(filename)[0]), - {}, {}, ['*']) -- _unittests_only(suite, mod.test_suite()) -+ if (hasattr(mod, 'test_suite')): -+ _unittests_only(suite, mod.test_suite()) - elif 'tests.py' in filenames: - mod = __import__(_modname(dirpath, base, 'tests'), {}, {}, ['*']) -- _unittests_only(suite, mod.test_suite()) -+ if (hasattr(mod, 'test_suite')): -+ _unittests_only(suite, mod.test_suite()) - return suite - - def read(path): diff --git a/python-ZODB.changes b/python-ZODB.changes index 231a584..c19a264 100644 --- a/python-ZODB.changes +++ b/python-ZODB.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Mon Mar 4 14:15:53 UTC 2019 - Tomáš Chvátal + +- Update to 5.5.1: + * Add support for Python 3.7. + * Bump the dependency on zodbpickle to at least 1.0.1. This is required to avoid a memory leak on Python 2.7. See issue 203. + * Bump the dependency on persistent to at least 4.4.0. + * Make the internal support functions for dealing with OIDs (p64 and u64) somewhat faster and raise more informative exceptions on certain types of bad input. See issue 216. + * Remove support for python setup.py test. It hadn't been working for some time. See issue #218. + * Make the tests run faster by avoiding calls to time.sleep(). +- Drop no longer needed python-ZODB-testsuite.patch + ------------------------------------------------------------------- Thu Jul 26 10:43:46 UTC 2018 - tchvatal@suse.com diff --git a/python-ZODB.spec b/python-ZODB.spec index 3f6f68d..3bb7557 100644 --- a/python-ZODB.spec +++ b/python-ZODB.spec @@ -1,7 +1,7 @@ # # spec file for package python-ZODB # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2013 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -13,27 +13,27 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ZODB -Version: 5.4.0 +Version: 5.5.1 Release: 0 Summary: Zope Object Database: object database and persistence License: ZPL-2.1 Group: Development/Libraries/Python -URL: http://www.zodb.org/ +URL: https://github.com/zopefoundation/ZODB Source: https://files.pythonhosted.org/packages/source/Z/ZODB/ZODB-%{version}.tar.gz -Patch0: python-ZODB-testsuite.patch BuildRequires: %{python_module BTrees >= 4.2.0} BuildRequires: %{python_module ZConfig} BuildRequires: %{python_module manuel} -BuildRequires: %{python_module persistent-devel >= 4.2.0} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module persistent-devel >= 4.4.0} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} -BuildRequires: %{python_module transaction >= 2.0.3} +BuildRequires: %{python_module transaction >= 2.4.0} BuildRequires: %{python_module zc.lockfile} BuildRequires: %{python_module zodbpickle >= 1.0.1} BuildRequires: %{python_module zope.interface} @@ -43,9 +43,9 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-BTrees >= 4.2.0 Requires: python-ZConfig -Requires: python-persistent >= 4.2.0 +Requires: python-persistent >= 4.4.0 Requires: python-six -Requires: python-transaction >= 2.0.3 +Requires: python-transaction >= 2.4.0 Requires: python-zc.lockfile Requires: python-zodbpickle >= 1.0.1 Requires: python-zope.interface @@ -76,14 +76,15 @@ find . -name "*~" -print -delete # remove unwanted shebang find src -name "*.py" | xargs sed -i '1 { /^#!/ d }' rm -rf src/ZODB.egg-info -%patch0 -p1 +# do not test docu generating +rm -f src/ZODB/tests/testdocumentation.py %build %python_build %install %python_install -%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/fsdump %python_clone -a %{buildroot}%{_bindir}/fsoids @@ -92,7 +93,7 @@ rm -rf src/ZODB.egg-info %python_clone -a %{buildroot}%{_bindir}/repozo %check -#%%python_exec setup.py test +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} zope-testrunner-%{$python_bin_suffix} --test-path=src %post %python_install_alternative fsdump fsoids fsrefs fstail repozo