Commit 623be55a authored by Armin Rigo's avatar Armin Rigo

hg merge default

--HG--
branch : release-1.14
......@@ -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)
......
......@@ -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``
......
......@@ -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
=======
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment