Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
3ea20150
Commit
3ea20150
authored
Nov 03, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make zodbpickle non-optional. Fixes #36.
parent
e76c5b02
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
14 deletions
+18
-14
.travis.yml
.travis.yml
+1
-1
CHANGES.rst
CHANGES.rst
+4
-1
setup.py
setup.py
+1
-1
src/ZODB/_compat.py
src/ZODB/_compat.py
+11
-11
tox.ini
tox.ini
+1
-0
No files found.
.travis.yml
View file @
3ea20150
...
...
@@ -9,7 +9,7 @@ python:
-
3.3
-
3.4
install
:
-
travis_retry pip install BTrees ZConfig manuel persistent six transaction zc.lockfile zdaemon zope.interface zope.testing zope.testrunner
-
travis_retry pip install BTrees ZConfig manuel persistent six transaction zc.lockfile zdaemon zo
dbpickle zo
pe.interface zope.testing zope.testrunner
-
travis_retry pip install -e .
script
:
-
zope-testrunner -u --test-path=src --auto-color --auto-progress
...
...
CHANGES.rst
View file @
3ea20150
...
...
@@ -5,7 +5,10 @@
4.2.1 (unreleased)
==================
- TBD
- Make the ``zodbpickle`` dependency required and not conditional.
This fixes various packaging issues involving pip and its wheel
cache. zodbpickle was only optional under Python 2.6 so this change
only impacts users of that version.
4.2.0 (2015-06-02)
==================
...
...
setup.py
View file @
3ea20150
...
...
@@ -153,7 +153,6 @@ setup(name="ZODB",
tests_require
=
tests_require
,
extras_require
=
{
'test'
:
tests_require
,
':python_version != "2.6"'
:
[
'zodbpickle >= 0.6.0'
],
},
install_requires
=
[
'persistent >= 4.1.0'
,
...
...
@@ -164,6 +163,7 @@ setup(name="ZODB",
'zc.lockfile'
,
'zdaemon >= 4.0.0a1'
,
'zope.interface'
,
'zodbpickle >= 0.6.0'
,
],
zip_safe
=
False
,
entry_points
=
"""
...
...
src/ZODB/_compat.py
View file @
3ea20150
...
...
@@ -12,20 +12,20 @@
#
##############################################################################
import
sys
from
six
import
PY3
IS_JYTHON
=
sys
.
platform
.
startswith
(
'java'
)
try
:
if
not
PY3
:
# Python 2.x
import
cPickle
if
((
hasattr
(
cPickle
.
Unpickler
,
'load'
)
and
not
hasattr
(
cPickle
.
Unpickler
,
'noload'
))
or
sys
.
version_info
>=
(
2
,
7
)):
# PyPy doesn't have noload, and noload is broken in Python 2.7.
# Get the fastest version we can (PyPy has no fastpickle)
try
:
import
zodbpickle.fastpickle
as
cPickle
except
ImportError
:
import
zodbpickle.pickle
as
cPickle
# PyPy's cPickle doesn't have noload, and noload is broken in Python 2.7,
# so we need zodbpickle.
# Get the fastest working version we can (PyPy has no fastpickle)
try
:
import
zodbpickle.fastpickle
as
cPickle
except
ImportError
:
import
zodbpickle.pickle
as
cPickle
Pickler
=
cPickle
.
Pickler
Unpickler
=
cPickle
.
Unpickler
dump
=
cPickle
.
dump
...
...
@@ -36,7 +36,7 @@ try:
NAME_MAPPING
=
{}
_protocol
=
1
FILESTORAGE_MAGIC
=
b"FS21"
e
xcept
ImportError
:
e
lse
:
# Python 3.x: can't use stdlib's pickle because
# http://bugs.python.org/issue6784
import
zodbpickle.pickle
...
...
tox.ini
View file @
3ea20150
...
...
@@ -20,6 +20,7 @@ deps =
transaction
zc.lockfile
zdaemon
zodbpickle
zope.interface
zope.testing
zope.testrunner
>=
4.4.6
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment