From 1091f6f462cce819701d7be54c318ec633243ab2 Mon Sep 17 00:00:00 2001 From: Sergio Garcia <47090312+singiamtel@users.noreply.github.com> Date: Mon, 20 Jan 2025 14:44:57 +0100 Subject: [PATCH] Pin boto3 (#900) Should bypass this issue on uploads https://github.com/boto/boto3/issues/4398 ``` An error occurred (MissingContentLength) when calling the PutObject operation: Unknown ``` --- pyproject.toml | 3 ++- requirements.txt | 4 +++- setup.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3e3ab8ad..6a508a0d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,7 @@ classifiers = [ 'Programming Language :: Python :: 3.10', # ubuntu2204 'Programming Language :: Python :: 3.11', # MacOS 'Programming Language :: Python :: 3.12', # MacOS + 'Programming Language :: Python :: 3.13', # MacOS ] dependencies = [ @@ -31,7 +32,7 @@ dependencies = [ 'requests', 'distro', 'jinja2', - 'boto3', + 'boto3==1.23.10', ] [project.urls] diff --git a/requirements.txt b/requirements.txt index ba1705f2..b76a4055 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,6 @@ requests pyyaml distro jinja2 -boto3; python_version >= '3.6' +# https://github.com/boto/boto3/issues/4398 +# This version is the last compatible with python 3.6.8 +boto3==1.23.10; python_version >= '3.6' diff --git a/setup.py b/setup.py index 9688b1e6..5f569575 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ # Old setuptools versions (which pip2 uses) don't support range comparisons # (like :python_version >= "3.6") in extras_require, so do this ourselves here. if sys.version_info >= (3, 6): - install_requires.append('boto3') + install_requires.append('boto3==1.23.10') setup( name='alibuild',