From 6c8c355f04f0b4e9aa44ff59eaa5c2c5ecd377f3 Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Mon, 7 Oct 2024 12:43:40 -0700 Subject: [PATCH] Add support for Python 3.13 (#3185) --- .changes/next-release/enhancement-Python-365.json | 5 +++++ .github/workflows/run-crt-test.yml | 4 +++- .github/workflows/run-tests.yml | 4 +++- setup.py | 1 + tox.ini | 2 +- 5 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 .changes/next-release/enhancement-Python-365.json diff --git a/.changes/next-release/enhancement-Python-365.json b/.changes/next-release/enhancement-Python-365.json new file mode 100644 index 0000000000..306b4d8b26 --- /dev/null +++ b/.changes/next-release/enhancement-Python-365.json @@ -0,0 +1,5 @@ +{ + "type": "enhancement", + "category": "Python", + "description": "Added provisional Python 3.13 support to Botocore" +} diff --git a/.github/workflows/run-crt-test.yml b/.github/workflows/run-crt-test.yml index ff18ec5d28..0a3f6a426f 100644 --- a/.github/workflows/run-crt-test.yml +++ b/.github/workflows/run-crt-test.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] os: [ubuntu-latest, macOS-latest, windows-latest] # Python 3.8 and 3.9 do not run on m1 hardware which is now standard for # macOS-latest. @@ -32,6 +32,8 @@ jobs: uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 with: python-version: '${{ matrix.python-version }}' + cache: 'pip' + allow-prereleases: true - name: Install dependencies and CRT run: | python scripts/ci/install --extras crt diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index af643e1ce1..b21498044c 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] os: [ubuntu-latest, macOS-latest, windows-latest] # Python 3.8 and 3.9 do not run on m1 hardware which is now standard for # macOS-latest. @@ -32,6 +32,8 @@ jobs: uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 with: python-version: '${{ matrix.python-version }}' + cache: 'pip' + allow-prereleases: true - name: Install dependencies run: | python scripts/ci/install diff --git a/setup.py b/setup.py index 26ddfb4a18..d0e487020d 100644 --- a/setup.py +++ b/setup.py @@ -68,5 +68,6 @@ def find_version(*file_paths): 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', ], ) diff --git a/tox.ini b/tox.ini index 9014a42fe6..38a9c3197d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38,py39,py310,py311,py312 +envlist = py38,py39,py310,py311,py312,py313 skipsdist = True