Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
PyPy
cffi
Commits
e6b9f3075a74
Commit
623be55a
authored
Feb 11, 2021
by
Armin Rigo
Browse files
Options
Browse Files
Download
Plain Diff
hg merge default
--HG-- branch : release-1.14
parents
aae2be1b3cae
763cf29f576c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
8 deletions
+28
-8
c/test_c.py
c/test_c.py
+14
-0
doc/source/installation.rst
doc/source/installation.rst
+4
-4
doc/source/whatsnew.rst
doc/source/whatsnew.rst
+10
-0
setup.py
setup.py
+0
-4
No files found.
c/test_c.py
View file @
e6b9f307
...
...
@@ -3974,6 +3974,20 @@ def test_from_buffer_types():
with
pytest
.
raises
(
ValueError
):
release
(
pv
[
0
])
def
test_issue483
():
BInt
=
new_primitive_type
(
"int"
)
BIntP
=
new_pointer_type
(
BInt
)
BIntA
=
new_array_type
(
BIntP
,
None
)
lst
=
list
(
range
(
25
))
bytestring
=
bytearray
(
buffer
(
newp
(
BIntA
,
lst
))[:]
+
b
'XYZ'
)
p1
=
from_buffer
(
BIntA
,
bytestring
)
# int[]
assert
len
(
buffer
(
p1
))
==
25
*
size_of_int
()
assert
sizeof
(
p1
)
==
25
*
size_of_int
()
#
p2
=
from_buffer
(
BIntP
,
bytestring
)
assert
sizeof
(
p2
)
==
size_of_ptr
()
assert
len
(
buffer
(
p2
))
==
size_of_int
()
# first element only, by default
def
test_memmove
():
Short
=
new_primitive_type
(
"short"
)
ShortA
=
new_array_type
(
new_pointer_type
(
Short
),
None
)
...
...
doc/source/installation.rst
View file @
e6b9f307
...
...
@@ -52,13 +52,13 @@ Download and Installation:
* https://pypi.python.org/pypi/cffi
* Checksums of the "source" package version 1.14.4
-1
:
* Checksums of the "source" package version 1.14.4:
- MD5:
49d23fb1a9d2e0370c9cfdfd3c0aaa3b
- MD5:
ad3d8537b1516bad6bcdc36c458788be
- SHA:
fcbe2ec59314472d59bc7664e45f66e1d60c0e0e
- SHA:
45bd57a0903a2d63b93461e096c5d291875a457b
- SHA256:
973d22ceb4100cb82c4be155a2f7e20d787f64bde9011ebc6dd84161c509b7b7
- SHA256:
1a465cbe98a7fd391d47dce4b8f7e5b921e6cd805ef421d04f5f66ba8f06086c
* Or grab the most current version from the `Heptapod page`_:
``hg clone https://foss.heptapod.net/pypy/cffi``
...
...
doc/source/whatsnew.rst
View file @
e6b9f307
...
...
@@ -3,6 +3,16 @@ What's New
======================
v1.14.4
=======
Release done for pip reasons.
v1.14.3
=======
Release done for pip reasons.
v1.14.2
=======
...
...
setup.py
View file @
e6b9f307
...
...
@@ -71,10 +71,6 @@ def get_config():
config
=
Distribution
().
get_command_obj
(
'config'
)
return
config
def
macosx_deployment_target
():
from
distutils.sysconfig
import
get_config_var
return
tuple
(
map
(
int
,
get_config_var
(
"MACOSX_DEPLOYMENT_TARGET"
).
split
(
'.'
)))
def
ask_supports_thread
():
config
=
get_config
()
ok
=
(
sys
.
platform
!=
'win32'
and
...
...
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