Update to 0.31.1

Resolves: RHEL-157871
Signed-off-by: Kseniia Nivnia <knivnia@redhat.com>
This commit is contained in:
Kseniia Nivnia 2026-04-09 11:56:15 +01:00
parent b316aab07a
commit dd41b27fc8
No known key found for this signature in database
6 changed files with 47 additions and 24 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
/pkcs11.h
/awscrt-0.20.5.tar.gz
/awscrt-0.27.2.tar.gz
/awscrt-0.31.1.tar.gz

View File

@ -3,8 +3,8 @@ Python bindings for the AWS Common Runtime}
Name: python-awscrt
Version: 0.27.2
Release: 2%{?dist}
Version: 0.31.1
Release: 1%{?dist}
Summary: Python bindings for the AWS Common Runtime
# All files are licensed under Apache-2.0, except:
@ -18,22 +18,18 @@ Source0: %{pypi_source awscrt}
# two tests require internet connection, skip them
Patch0: skip-tests-requiring-network.patch
# SHA1 is deprecated - remove it from tests
# skip SHA1 in test_crypto
Patch1: skip-SHA1-in-test_crypto.patch
# https://github.com/awslabs/aws-c-cal/pull/225
Patch2: der-c.patch
# websockets test fail fix
Patch3: websockets.patch
# Remove FIPS version check to build with OpenSSL 3.x
Patch4: s2n-remove-fips-version-check.patch
Patch2: websockets.patch
# remove FIPS version check in s2n
Patch3: s2n-remove-fips-version-check.patch
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: openssl-devel
BuildRequires: python%{python3_pkgversion}-websockets
@ -53,13 +49,10 @@ Summary: %{summary}
%autosetup -p1 -n awscrt-%{version}
# relax version requirements
sed -i -e 's/setuptools>=75\.3\.1/setuptools/' -e 's/wheel>=0\.45\.1/wheel/' pyproject.toml
# Remove websocket test for now
# TODO: fix the test properly
rm -f test/test_websocket.py
# fix for osci.rpmdeplint test - package builds with the name 'unknown'
sed -i -e 's/"setuptools>=75\.3\.1",/"setuptools",\n "wheel",/' pyproject.toml
# fix bdist_wheel import for setuptools 70.0.0+
sed -i -e 's/from setuptools\.command\.bdist_wheel import bdist_wheel/from wheel.bdist_wheel import bdist_wheel/' setup.py
# package builds with the name 'unknown'
sed -i '/setuptools\.setup(/a\ name="awscrt",' setup.py
@ -86,6 +79,10 @@ PYTHONPATH="%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}" %{py
%changelog
* Thu Apr 09 2026 Kseniia Nivnia <knivnia@redhat.com> - 0.31.1-1
- Update to 0.31.1
Resolves: RHEL-157871
* Wed Nov 26 2025 Kseniia Nivnia <knivnia@redhat.com> - 0.27.2-2
- Add patch fixing FIPS mode crash in awscli2
Resolves: RHEL-131280

View File

@ -55,4 +55,3 @@ index 628900f..7f2296d 100644
+ h = Hash.sha256_new()
h.update(b'totally original test string')
digest = h.digest()

View File

@ -1,8 +1,36 @@
diff --git a/test/test_aiohttp_client.py b/test/test_aiohttp_client.py
index f3fa544..3b04218 100644
--- a/test/test_aiohttp_client.py
+++ b/test/test_aiohttp_client.py
@@ -288,6 +288,7 @@ class TestAsyncClient(NativeResourceTest):
return connection
+ @unittest.skip("Requires network")
async def _test_h2_client(self):
url = urlparse("https://d1cz66xoahf9cl.cloudfront.net/http_test_doc.txt")
connection = await self._new_h2_client_connection(url)
@@ -309,6 +310,7 @@ class TestAsyncClient(NativeResourceTest):
await connection.close()
+ @unittest.skip("Requires network")
async def _test_h2_manual_write_exception(self):
url = urlparse("https://d1cz66xoahf9cl.cloudfront.net/http_test_doc.txt")
connection = await self._new_h2_client_connection(url)
@@ -428,6 +430,7 @@ class TestAsyncClient(NativeResourceTest):
finally:
self._stop_server()
+ @unittest.skip("Requires network")
async def _test_cross_thread_http2_client(self):
"""Test using an HTTP/2 client from a different thread/event loop."""
url = urlparse("https://d1cz66xoahf9cl.cloudfront.net/http_test_doc.txt")
diff --git a/test/test_http_client.py b/test/test_http_client.py
index f79f39a..7498a96 100644
index 6aa9917..ad4b700 100644
--- a/test/test_http_client.py
+++ b/test/test_http_client.py
@@ -353,6 +353,7 @@ class TestClient(NativeResourceTest):
@@ -354,6 +354,7 @@ class TestClient(NativeResourceTest):
tls_connection_options=tls_conn_opt)
return connection_future.result(self.timeout)
@ -10,7 +38,7 @@ index f79f39a..7498a96 100644
def test_h2_client(self):
url = urlparse("https://d1cz66xoahf9cl.cloudfront.net/http_test_doc.txt")
connection = self._new_h2_client_connection(url)
@@ -375,6 +376,7 @@ class TestClient(NativeResourceTest):
@@ -376,6 +377,7 @@ class TestClient(NativeResourceTest):
self.assertEqual(None, connection.close().exception(self.timeout))

View File

@ -1 +1 @@
SHA512 (awscrt-0.27.2.tar.gz) = 0b8ee3ed71a69957ef07e43542cb9c342bb0865668f95a4e3227a4e877d03648c70417c2e2ea7aaae44bbeace0a906dff7ab82bbf4d1e51498b382c5c624f9c7
SHA512 (awscrt-0.31.1.tar.gz) = 5ded69bdbf3d475764dad79d42492453e07ff6e8b9d61e753cd76c910f7ecfd3055c4d58b90e0449a92e88e2b27a103434aa56cca08f64b32ea8592ee0aeef18

View File

@ -22,5 +22,3 @@ index fcbcedb..ebebbcb 100644
+ sleep(0.01)
+
asyncio.run_coroutine_threadsafe(self._current_connection.send(msg), self._server_loop)