Skip to content

Commit 3833fb5

Browse files
committed
Deprecate Python 3.9 support
1 parent bf42628 commit 3833fb5

9 files changed

Lines changed: 15 additions & 12 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "Python",
4+
"description": "End of support for Python 3.9"
5+
}

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
1717
with:
1818
persist-credentials: false
19-
- name: Set up Python 3.9
19+
- name: Set up Python 3.10
2020
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
2121
with:
22-
python-version: 3.9
22+
python-version: "3.10"
2323
- name: Run pre-commit
2424
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507

.github/workflows/run-crt-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.15-dev"]
19+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15-dev"]
2020
os: [ubuntu-latest, macOS-latest, windows-latest]
2121

2222
steps:

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.15-dev"]
19+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15-dev"]
2020
os: [ubuntu-latest, macOS-latest, windows-latest]
2121

2222
steps:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ exclude = [
3737
line-length = 79
3838
indent-width = 4
3939

40-
target-version = "py39"
40+
target-version = "py310"
4141

4242
[tool.ruff.lint]
4343
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.

requirements-dev-lock.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.9
2+
# This file is autogenerated by pip-compile with Python 3.10
33
# by the following command:
44
#
55
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements-dev-lock.txt requirements-dev.txt

s3transfer/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ def __call__(self, bytes_amount):
131131
import os
132132
import queue
133133
import random
134-
import socket
135134
import string
136135
import threading
137136
from logging import NullHandler
@@ -617,7 +616,7 @@ def _download_range(
617616
current_index += len(chunk)
618617
return
619618
except (
620-
socket.timeout,
619+
TimeoutError,
621620
OSError,
622621
ReadTimeoutError,
623622
IncompleteReadError,
@@ -843,7 +842,7 @@ def _get_object(self, bucket, key, filename, extra_args, callback):
843842
bucket, key, filename, extra_args, callback
844843
)
845844
except (
846-
socket.timeout,
845+
TimeoutError,
847846
OSError,
848847
ReadTimeoutError,
849848
IncompleteReadError,

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_version():
3333
'crt': 'botocore[crt]>=1.37.4,<2.0a.0',
3434
},
3535
license="Apache License 2.0",
36-
python_requires=">= 3.9",
36+
python_requires=">= 3.10",
3737
classifiers=[
3838
'Development Status :: 3 - Alpha',
3939
'Intended Audience :: Developers',
@@ -42,7 +42,6 @@ def get_version():
4242
'Programming Language :: Python',
4343
'Programming Language :: Python :: 3',
4444
'Programming Language :: Python :: 3 :: Only',
45-
'Programming Language :: Python :: 3.9',
4645
'Programming Language :: Python :: 3.10',
4746
'Programming Language :: Python :: 3.11',
4847
'Programming Language :: Python :: 3.12',

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py39,py310,py311,py312,py313,py314
2+
envlist = py310,py311,py312,py313,py314
33

44
# Comment to build sdist and install into virtualenv
55
# This is helpful to test installation but takes extra time

0 commit comments

Comments
 (0)