From ddd679d1a1bc730d99ba6d2e3e32a66ee28ae7ef Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Feb 10 2020 05:50:34 +0000 Subject: Update to 1.14.0 (#1800646) --- diff --git a/fix-python39-compat.patch b/fix-python39-compat.patch deleted file mode 100644 index 6cdde39..0000000 --- a/fix-python39-compat.patch +++ /dev/null @@ -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"))) diff --git a/python-cffi.spec b/python-cffi.spec index f65d9bd..f2471b1 100644 --- a/python-cffi.spec +++ b/python-cffi.spec @@ -1,16 +1,11 @@ Name: python-cffi -Version: 1.13.2 -Release: 2%{?dist} +Version: 1.14.0 +Release: 1%{?dist} Summary: Foreign Function Interface for Python to call C code License: MIT URL: https://cffi.readthedocs.org/ 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: gcc @@ -75,6 +70,9 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest -k "not test_u %doc doc/build/html %changelog +* Mon Feb 10 2020 Lumír Balhar - 1.14.0 +- Update to 1.14.0 (#1800646) + * Thu Jan 30 2020 Fedora Release Engineering - 1.13.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index 7d5498c..e27d960 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cffi-1.13.2.tar.gz) = 2c57d9c06c39e95498a54408dc39940427190f3c03e1b8f1a3584140db08a5775dd12e6e67b03093429c130af579d01519b0fc868b99ba7a530068ed22d38522 +SHA512 (cffi-1.14.0.tar.gz) = 4c5451eeede1d48a8f4b40e25b845ad1863b8bf3bd39624e6c693c2800d89a13efedc4c43b37e317a035613bffc2e3fd5f7e583c46cb283cb5cb930356f86253