Skip to content

Commit

Permalink
Pin boto3 (#900)
Browse files Browse the repository at this point in the history
Should bypass this issue on uploads boto/boto3#4398

```
An error occurred (MissingContentLength) when calling the PutObject operation: Unknown
```
  • Loading branch information
singiamtel authored Jan 20, 2025
1 parent 1de1f5e commit 1091f6f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ 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 = [
'pyyaml',
'requests',
'distro',
'jinja2',
'boto3',
'boto3==1.23.10',
]

[project.urls]
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 1091f6f

Please sign in to comment.