forked from pool/python-ZODB
Accepting request 307495 from devel:languages:python
- update to version 4.1.0 - drop fix-for-upstream-test.patch: fixed upstream - delete backup files in sources - remove unwanted shebang in python file - do not set the executable bit of python files - pass -q to the test to avoid spamming the build log (forwarded request 307288 from benoit_monin) OBS-URL: https://build.opensuse.org/request/show/307495 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ZODB?expand=0&rev=4
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f5874f434c171824d70f57b2b61bfe1526f97ea019e7f9743fd72370029b7075
|
||||
size 390414
|
||||
3
ZODB-4.1.0.tar.gz
Normal file
3
ZODB-4.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ee85731439e34994e1471a4f27fc556cc24fff58a1b4664baa9250e8bd0ee85f
|
||||
size 461347
|
||||
@@ -1,25 +0,0 @@
|
||||
diff --git a/src/ZODB/tests/testUtils.py b/src/ZODB/tests/testUtils.py
|
||||
index bc3d089..17803cc 100644
|
||||
--- a/src/ZODB/tests/testUtils.py
|
||||
+++ b/src/ZODB/tests/testUtils.py
|
||||
@@ -20,7 +20,7 @@ from persistent import Persistent
|
||||
|
||||
from zope.testing import renormalizing
|
||||
from ZODB.utils import U64, p64, u64
|
||||
-from ZODB._compat import loads, long
|
||||
+from ZODB._compat import loads
|
||||
|
||||
|
||||
NUM = 100
|
||||
@@ -35,9 +35,9 @@ checker = renormalizing.RENormalizing([
|
||||
|
||||
class TestUtils(unittest.TestCase):
|
||||
|
||||
- small = [random.randrange(1, 1<<32, int=long)
|
||||
+ small = [random.randrange(1, 1<<32)
|
||||
for i in range(NUM)]
|
||||
- large = [random.randrange(1<<32, 1<<64, int=long)
|
||||
+ large = [random.randrange(1<<32, 1<<64)
|
||||
for i in range(NUM)]
|
||||
all = small + large
|
||||
|
||||
@@ -1,3 +1,26 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 15 10:52:45 UTC 2015 - benoit.monin@gmx.fr
|
||||
|
||||
- update to version 4.1.0:
|
||||
* Fix registration of custom logging level names ("BLATHER",
|
||||
"TRACE). We have been registering them in the wrong order since
|
||||
2004. Before Python 3.4, the stdlib logging module masked the
|
||||
error by registering them in both directions.
|
||||
* Add support for Python 3.4.
|
||||
- additional changes from version 4.0.1:
|
||||
* Fix POSKeyError during transaction.commit when after
|
||||
savepoint.rollback. see #16
|
||||
* Ensure that the pickler used in PyPy always has a persistent_id
|
||||
attribute (inst_persistent_id is not present on the pure-Python
|
||||
pickler). (PR #17)
|
||||
* Provide better error reporting when trying to load an object on
|
||||
a closed connection.
|
||||
- drop fix-for-upstream-test.patch: fixed upstream
|
||||
- delete backup files in sources
|
||||
- remove unwanted shebang in python file
|
||||
- do not set the executable bit of python files
|
||||
- pass -q to the test to avoid spamming the build log
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 1 21:17:50 UTC 2014 - os-dev@jacraig.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-ZODB
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 LISA GmbH, Bingen, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -18,15 +18,13 @@
|
||||
|
||||
|
||||
Name: python-ZODB
|
||||
Version: 4.0.0
|
||||
Version: 4.1.0
|
||||
Release: 0
|
||||
Summary: Zope Object Database: object database and persistence
|
||||
License: ZPL-2.1
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://www.zodb.org/
|
||||
Source: https://pypi.python.org/packages/source/Z/ZODB/ZODB-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM fix-for-upstream-test.patch -- already fixed in git 4.0.0b3-16-g1cdf9a7
|
||||
Patch1: fix-for-upstream-test.patch
|
||||
BuildRequires: python-BTrees
|
||||
BuildRequires: python-ZConfig
|
||||
BuildRequires: python-persistent-devel
|
||||
@@ -73,18 +71,19 @@ This package contains documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n ZODB-%{version}
|
||||
%patch1 -p1
|
||||
# delete backup files
|
||||
find . -name "*~" -print -delete
|
||||
# remove unwanted shebang
|
||||
find src -name "*.py" | xargs sed -i '1 { /^#!/ d }'
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
chmod 0755 %{buildroot}%{python_sitelib}/ZODB/scripts/{space,fsoids,fsrefs,checkbtrees,analyze,migrate}.py
|
||||
chmod 0755 %{buildroot}%{python_sitelib}/ZODB/scripts/{fstest,fstail,repozo,fsstats,netspace,zodbload}.py
|
||||
|
||||
%check
|
||||
python setup.py test
|
||||
python setup.py -q test
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
||||
Reference in New Issue
Block a user