From cca432d589bed83cc4a28858d6aa0ca9ab26ca16 Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Mon, 7 Oct 2024 16:48:00 -0700 Subject: [PATCH] Add support for Python 3.13 (#4296) --- .changes/next-release/enhancement-Python-91279.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-91279.json diff --git a/.changes/next-release/enhancement-Python-91279.json b/.changes/next-release/enhancement-Python-91279.json new file mode 100644 index 0000000000..faba0db4ae --- /dev/null +++ b/.changes/next-release/enhancement-Python-91279.json @@ -0,0 +1,5 @@ +{ + "type": "enhancement", + "category": "Python", + "description": "Added provisional Python 3.13 support to Boto3" +} diff --git a/.github/workflows/run-crt-test.yml b/.github/workflows/run-crt-test.yml index 50caf35aa4..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', '3.13-dev'] + 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 6954844237..36fcef95cd 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13-dev"] + 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. @@ -33,6 +33,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 d57620ea68..a8d93c6444 100644 --- a/setup.py +++ b/setup.py @@ -52,6 +52,7 @@ def get_version(): 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', ], project_urls={ 'Documentation': 'https://boto3.amazonaws.com/v1/documentation/api/latest/index.html', diff --git a/tox.ini b/tox.ini index 691511dbe3..05f21ac74d 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 # Comment to build sdist and install into virtualenv # This is helpful to test installation but takes extra time