Update to 1.14.0 (#1800646)

This commit is contained in:
Lumir Balhar 2020-02-10 06:50:34 +01:00
parent 2cb480e1e9
commit ddd679d1a1
3 changed files with 6 additions and 52 deletions

View File

@ -1,44 +0,0 @@
diff --git a/testing/cffi0/backend_tests.py b/testing/cffi0/backend_tests.py
index 7b55ba8..7008f82 100644
--- a/testing/cffi0/backend_tests.py
+++ b/testing/cffi0/backend_tests.py
@@ -1241,7 +1241,7 @@ class BackendTests:
py.test.skip(str(e))
f.write(ffi.buffer(a, 1000 * ffi.sizeof("int")))
f.seek(0)
- assert f.read() == array.array('i', range(1000)).tostring()
+ assert f.read() == array.array('i', range(1000)).tobytes()
f.seek(0)
b = ffi.new("int[]", 1005)
f.readinto(ffi.buffer(b, 1000 * ffi.sizeof("int")))
@@ -1260,7 +1260,7 @@ class BackendTests:
py.test.skip(str(e))
f.write(ffi.buffer(a, 1000 * ffi.sizeof("int")))
f.seek(0)
- assert f.read() == array.array('i', range(1000)).tostring()
+ assert f.read() == array.array('i', range(1000)).tobytes()
f.seek(0)
b = ffi.new("int[]", 1005)
f.readinto(ffi.buffer(b, 1000 * ffi.sizeof("int")))
diff --git a/testing/cffi1/test_new_ffi_1.py b/testing/cffi1/test_new_ffi_1.py
index d6eeecd..5b36c50 100644
--- a/testing/cffi1/test_new_ffi_1.py
+++ b/testing/cffi1/test_new_ffi_1.py
@@ -1220,7 +1220,7 @@ class TestNewFFI1:
py.test.skip(str(e))
f.write(ffi.buffer(a, 1000 * ffi.sizeof("int")))
f.seek(0)
- assert f.read() == array.array('i', range(1000)).tostring()
+ assert f.read() == array.array('i', range(1000)).tobytes()
f.seek(0)
b = ffi.new("int[]", 1005)
f.readinto(ffi.buffer(b, 1000 * ffi.sizeof("int")))
@@ -1238,7 +1238,7 @@ class TestNewFFI1:
py.test.skip(str(e))
f.write(ffi.buffer(a, 1000 * ffi.sizeof("int")))
f.seek(0)
- assert f.read() == array.array('i', range(1000)).tostring()
+ assert f.read() == array.array('i', range(1000)).tobytes()
f.seek(0)
b = ffi.new("int[]", 1005)
f.readinto(ffi.buffer(b, 1000 * ffi.sizeof("int")))

View File

@ -1,16 +1,11 @@
Name: python-cffi Name: python-cffi
Version: 1.13.2 Version: 1.14.0
Release: 2%{?dist} Release: 1%{?dist}
Summary: Foreign Function Interface for Python to call C code Summary: Foreign Function Interface for Python to call C code
License: MIT License: MIT
URL: https://cffi.readthedocs.org/ URL: https://cffi.readthedocs.org/
Source0: %{pypi_source cffi} Source0: %{pypi_source cffi}
# On Python 3.9 the array.tostring() was removed in favor of array.tobytes()
# array.tobytes() is also present in previous versions, array.tostring() was deprecated
# Reported upstream: https://bitbucket.org/cffi/cffi/issues/438/test-failures-with-python-39
Patch0: fix-python39-compat.patch
BuildRequires: libffi-devel BuildRequires: libffi-devel
BuildRequires: gcc BuildRequires: gcc
@ -75,6 +70,9 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest -k "not test_u
%doc doc/build/html %doc doc/build/html
%changelog %changelog
* Mon Feb 10 2020 Lumír Balhar <lbalhar@redhat.com> - 1.14.0
- Update to 1.14.0 (#1800646)
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-2 * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (cffi-1.13.2.tar.gz) = 2c57d9c06c39e95498a54408dc39940427190f3c03e1b8f1a3584140db08a5775dd12e6e67b03093429c130af579d01519b0fc868b99ba7a530068ed22d38522 SHA512 (cffi-1.14.0.tar.gz) = 4c5451eeede1d48a8f4b40e25b845ad1863b8bf3bd39624e6c693c2800d89a13efedc4c43b37e317a035613bffc2e3fd5f7e583c46cb283cb5cb930356f86253