From 6012d99df00870d9a262eed1dbf54fa3e3660fe3 Mon Sep 17 00:00:00 2001 From: Shubham Patil Date: Wed, 20 Nov 2024 01:11:24 +0530 Subject: [PATCH] setup: support installations with Python3.13 (#36549) --- scripts/setup/constraints.txt | 2 -- scripts/setup/requirements.all.txt | 2 ++ scripts/tools/telink/requirements.txt | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/setup/constraints.txt b/scripts/setup/constraints.txt index 1b5244314196d6..874d46f6f1a526 100644 --- a/scripts/setup/constraints.txt +++ b/scripts/setup/constraints.txt @@ -32,8 +32,6 @@ cbor2==5.4.6 # via -r requirements.zephyr.txt certifi==2022.12.7 # via requests -cffi==1.15.1 - # via cryptography charset-normalizer==3.0.1 # via requests click==8.1.3 diff --git a/scripts/setup/requirements.all.txt b/scripts/setup/requirements.all.txt index 346abfa3936888..4a7672a08f639d 100644 --- a/scripts/setup/requirements.all.txt +++ b/scripts/setup/requirements.all.txt @@ -43,6 +43,8 @@ mypy-protobuf==3.5.0 protobuf==4.24.4 types-protobuf==4.24.0.2 +cffi==1.15.0; python_version < "3.13" +cffi==1.17.1; python_version >= "3.13" cryptography # python unit tests diff --git a/scripts/tools/telink/requirements.txt b/scripts/tools/telink/requirements.txt index 58b519dc924bfa..e76b1423e4ded9 100644 --- a/scripts/tools/telink/requirements.txt +++ b/scripts/tools/telink/requirements.txt @@ -1,5 +1,6 @@ cryptography==43.0.1 -cffi==1.15.0 +cffi==1.15.0; python_version < "3.13" +cffi==1.17.1; python_version >= "3.13" future==0.18.3 pycparser==2.21 pypng==0.0.21