Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
persistent
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
persistent
Commits
3e0f98d6
Commit
3e0f98d6
authored
Apr 25, 2019
by
Marius Gedminas
Committed by
GitHub
Apr 25, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #111 from zopefoundation/fix-c-warning
Fix C compilation warning
parents
dc2283d8
700d25cf
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
20 deletions
+24
-20
.manylinux-install.sh
.manylinux-install.sh
+0
-1
.travis.yml
.travis.yml
+0
-7
CHANGES.rst
CHANGES.rst
+13
-0
appveyor.yml
appveyor.yml
+0
-2
persistent/cPersistence.c
persistent/cPersistence.c
+4
-2
setup.py
setup.py
+6
-7
tox.ini
tox.ini
+1
-1
No files found.
.manylinux-install.sh
View file @
3e0f98d6
...
@@ -5,7 +5,6 @@ set -e -x
...
@@ -5,7 +5,6 @@ set -e -x
# Compile wheels
# Compile wheels
for
PYBIN
in
/opt/python/
*
/bin
;
do
for
PYBIN
in
/opt/python/
*
/bin
;
do
if
[[
"
${
PYBIN
}
"
==
*
"cp27"
*
]]
||
\
if
[[
"
${
PYBIN
}
"
==
*
"cp27"
*
]]
||
\
[[
"
${
PYBIN
}
"
==
*
"cp34"
*
]]
||
\
[[
"
${
PYBIN
}
"
==
*
"cp35"
*
]]
||
\
[[
"
${
PYBIN
}
"
==
*
"cp35"
*
]]
||
\
[[
"
${
PYBIN
}
"
==
*
"cp36"
*
]]
||
\
[[
"
${
PYBIN
}
"
==
*
"cp36"
*
]]
||
\
[[
"
${
PYBIN
}
"
==
*
"cp37"
*
]]
;
then
[[
"
${
PYBIN
}
"
==
*
"cp37"
*
]]
;
then
...
...
.travis.yml
View file @
3e0f98d6
language
:
python
language
:
python
sudo
:
false
matrix
:
matrix
:
include
:
include
:
-
os
:
linux
-
os
:
linux
python
:
2.7
python
:
2.7
-
os
:
linux
python
:
3.4
-
os
:
linux
-
os
:
linux
python
:
3.5
python
:
3.5
-
os
:
linux
-
os
:
linux
...
@@ -18,7 +15,6 @@ matrix:
...
@@ -18,7 +15,6 @@ matrix:
python
:
pypy3
python
:
pypy3
-
os
:
linux
-
os
:
linux
dist
:
xenial
dist
:
xenial
sudo
:
true
python
:
3.7
python
:
3.7
# It's important to use 'macpython' builds to get the least
# It's important to use 'macpython' builds to get the least
# restrictive wheel tag. It's also important to avoid
# restrictive wheel tag. It's also important to avoid
...
@@ -26,9 +22,6 @@ matrix:
...
@@ -26,9 +22,6 @@ matrix:
-
os
:
osx
-
os
:
osx
language
:
generic
language
:
generic
env
:
TERRYFY_PYTHON='macpython 2.7'
env
:
TERRYFY_PYTHON='macpython 2.7'
-
os
:
osx
language
:
generic
env
:
TERRYFY_PYTHON='macpython 3.4'
-
os
:
osx
-
os
:
osx
language
:
generic
language
:
generic
env
:
TERRYFY_PYTHON='macpython 3.5'
env
:
TERRYFY_PYTHON='macpython 3.5'
...
...
CHANGES.rst
View file @
3e0f98d6
...
@@ -30,6 +30,8 @@
...
@@ -30,6 +30,8 @@
- Fix DeprecationWarning about ``PY_SSIZE_T_CLEAN``.
- Fix DeprecationWarning about ``PY_SSIZE_T_CLEAN``.
See `issue 108 <https://github.com/zopefoundation/persistent/issues/108>`_.
See `issue 108 <https://github.com/zopefoundation/persistent/issues/108>`_.
- Drop support for Python 3.4.
4.4.3 (2018-10-22)
4.4.3 (2018-10-22)
------------------
------------------
...
@@ -44,6 +46,7 @@
...
@@ -44,6 +46,7 @@
ZODB does. This eliminates some issues in doctests. See `issue 95
ZODB does. This eliminates some issues in doctests. See `issue 95
<https://github.com/zopefoundation/persistent/pull/95>`_.
<https://github.com/zopefoundation/persistent/pull/95>`_.
4.4.2 (2018-08-28)
4.4.2 (2018-08-28)
------------------
------------------
...
@@ -110,6 +113,7 @@
...
@@ -110,6 +113,7 @@
values have not changed. See `issue 41
values have not changed. See `issue 41
<https://github.com/zopefoundation/persistent/issues/41>`_.
<https://github.com/zopefoundation/persistent/issues/41>`_.
4.3.0 (2018-07-30)
4.3.0 (2018-07-30)
------------------
------------------
...
@@ -125,6 +129,7 @@
...
@@ -125,6 +129,7 @@
be eligible for the pickle cache; that is no longer the case. See
be eligible for the pickle cache; that is no longer the case. See
`issue 69 <https://github.com/zopefoundation/persistent/issues/69>`_.
`issue 69 <https://github.com/zopefoundation/persistent/issues/69>`_.
4.2.4.2 (2017-04-23)
4.2.4.2 (2017-04-23)
--------------------
--------------------
...
@@ -179,12 +184,14 @@
...
@@ -179,12 +184,14 @@
https://github.com/zopefoundation/persistent/wiki/Notes_on_state_new_and_slots
https://github.com/zopefoundation/persistent/wiki/Notes_on_state_new_and_slots
if you're curious.)
if you're curious.)
4.2.1 (2016-05-26)
4.2.1 (2016-05-26)
------------------
------------------
- Fix the hashcode of C ``TimeStamp`` objects on 64-bit Python 3 on
- Fix the hashcode of C ``TimeStamp`` objects on 64-bit Python 3 on
Windows.
Windows.
4.2.0 (2016-05-05)
4.2.0 (2016-05-05)
------------------
------------------
...
@@ -198,11 +205,13 @@
...
@@ -198,11 +205,13 @@
- Drop support for Python 2.6 and 3.2.
- Drop support for Python 2.6 and 3.2.
4.1.1 (2015-06-02)
4.1.1 (2015-06-02)
------------------
------------------
- Fix manifest and re-upload to fix stray files included in 4.1.0.
- Fix manifest and re-upload to fix stray files included in 4.1.0.
4.1.0 (2015-05-19)
4.1.0 (2015-05-19)
------------------
------------------
...
@@ -212,6 +221,7 @@
...
@@ -212,6 +221,7 @@
- Fix the hashcode of the Python ``TimeStamp`` on 32-bit platforms.
- Fix the hashcode of the Python ``TimeStamp`` on 32-bit platforms.
4.0.9 (2015-04-08)
4.0.9 (2015-04-08)
------------------
------------------
...
@@ -227,6 +237,7 @@
...
@@ -227,6 +237,7 @@
- 100% branch coverage.
- 100% branch coverage.
4.0.8 (2014-03-20)
4.0.8 (2014-03-20)
------------------
------------------
...
@@ -245,6 +256,7 @@
...
@@ -245,6 +256,7 @@
``Persistent`` object which has been removed from the jar's cache
``Persistent`` object which has been removed from the jar's cache
(fixes aborting a ZODB Connection that has added objects). (PR #7)
(fixes aborting a ZODB Connection that has added objects). (PR #7)
4.0.7 (2014-02-20)
4.0.7 (2014-02-20)
------------------
------------------
...
@@ -283,6 +295,7 @@
...
@@ -283,6 +295,7 @@
- C extenstions now build under Python 3.2, passing the same tests as
- C extenstions now build under Python 3.2, passing the same tests as
the pure-Python reference implementation.
the pure-Python reference implementation.
4.0.3 (2012-11-19)
4.0.3 (2012-11-19)
------------------
------------------
...
...
appveyor.yml
View file @
3e0f98d6
...
@@ -7,8 +7,6 @@ environment:
...
@@ -7,8 +7,6 @@ environment:
matrix
:
matrix
:
-
python
:
27
-
python
:
27
-
python
:
27-x64
-
python
:
27-x64
-
python
:
34
-
python
:
34-x64
-
python
:
35
-
python
:
35
-
python
:
35-x64
-
python
:
35-x64
-
python
:
36
-
python
:
36
...
...
persistent/cPersistence.c
View file @
3e0f98d6
...
@@ -31,8 +31,10 @@ struct ccobject_head_struct
...
@@ -31,8 +31,10 @@ struct ccobject_head_struct
*/
*/
#if !defined(PY3K) && defined(_WIN32)
#if !defined(PY3K) && defined(_WIN32)
typedef
unsigned
long
long
uint64_t
;
typedef
unsigned
long
long
uint64_t
;
# define PRIx64 "llx"
#else
#else
#include <stdint.h>
# include <stdint.h>
# include <inttypes.h>
#endif
#endif
/* These two objects are initialized when the module is loaded */
/* These two objects are initialized when the module is loaded */
...
@@ -1478,7 +1480,7 @@ Per_repr(cPersistentObject *self)
...
@@ -1478,7 +1480,7 @@ Per_repr(cPersistentObject *self)
length modifier for %x, so to format a 64-bit value we need to
length modifier for %x, so to format a 64-bit value we need to
use stdio.
use stdio.
*/
*/
snprintf
(
buf
,
sizeof
(
buf
)
-
1
,
"%
llx"
,
oid_value
);
snprintf
(
buf
,
sizeof
(
buf
)
-
1
,
"%
"
PRIx64
,
oid_value
);
oid_str
=
PyUnicode_FromFormat
(
" oid 0x%s"
,
buf
);
oid_str
=
PyUnicode_FromFormat
(
" oid 0x%s"
,
buf
);
}
}
...
...
setup.py
View file @
3e0f98d6
...
@@ -89,13 +89,12 @@ setup(name='persistent',
...
@@ -89,13 +89,12 @@ setup(name='persistent',
"Development Status :: 6 - Mature"
,
"Development Status :: 6 - Mature"
,
"License :: OSI Approved :: Zope Public License"
,
"License :: OSI Approved :: Zope Public License"
,
"Programming Language :: Python"
,
"Programming Language :: Python"
,
'Programming Language :: Python :: 2'
,
"Programming Language :: Python :: 2"
,
'Programming Language :: Python :: 2.7'
,
"Programming Language :: Python :: 2.7"
,
'Programming Language :: Python :: 3'
,
"Programming Language :: Python :: 3"
,
'Programming Language :: Python :: 3.4'
,
"Programming Language :: Python :: 3.5"
,
'Programming Language :: Python :: 3.5'
,
"Programming Language :: Python :: 3.6"
,
'Programming Language :: Python :: 3.6'
,
"Programming Language :: Python :: 3.7"
,
'Programming Language :: Python :: 3.7'
,
"Programming Language :: Python :: Implementation :: CPython"
,
"Programming Language :: Python :: Implementation :: CPython"
,
"Programming Language :: Python :: Implementation :: PyPy"
,
"Programming Language :: Python :: Implementation :: PyPy"
,
"Framework :: ZODB"
,
"Framework :: ZODB"
,
...
...
tox.ini
View file @
3e0f98d6
[tox]
[tox]
envlist
=
envlist
=
py27,py
27-pure,py27-pure-cffi,pypy,py34,py35,py36,py37
,pypy3,coverage,docs
py27,py
35,py36,py37,py27-pure,py27-pure-cffi,pypy
,pypy3,coverage,docs
[testenv]
[testenv]
deps
=
deps
=
...
...
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