15
0
forked from pool/python-ZODB

Accepting request 681509 from devel:languages:python

- 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

OBS-URL: https://build.opensuse.org/request/show/681509
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ZODB?expand=0&rev=7
This commit is contained in:
2019-03-05 11:24:42 +00:00
committed by Git OBS Bridge
5 changed files with 28 additions and 32 deletions

View File

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

3
ZODB-5.5.1.tar.gz Normal file
View File

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

View File

@@ -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):

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Mon Mar 4 14:15:53 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- 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

View File

@@ -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