Skip to content

Commit

Permalink
Add support for Python 3.12 (#3822)
Browse files Browse the repository at this point in the history
  • Loading branch information
nateprewitt committed Aug 15, 2023
1 parent acda7c0 commit 76d31bf
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changes/next-release/enhancement-Python-59246.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "enhancement",
"category": "Python",
"description": "Added provisional Python 3.12 support to Boto3"
}
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest, macOS-latest, windows-latest ]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
wheel==0.38.1
coverage==5.5
setuptools==67.8.0;python_version>="3.12"

# Pytest specific deps
pytest==7.1.2
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci/install-dev-deps
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
import os
import sys
from contextlib import contextmanager
from subprocess import check_call

Expand All @@ -25,4 +26,6 @@ def run(command):

if __name__ == "__main__":
with cd(REPO_ROOT):
if sys.version_info[:2] >= (3, 12):
run("pip install setuptools")
run("pip install -r requirements-dev-lock.txt")
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ def get_version():
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
project_urls={
'Documentation': 'https://boto3.amazonaws.com/v1/documentation/api/latest/index.html',
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/docs/test_docstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,15 @@ def test_batch_action_help(self):
' :type Bar: string',
' :param Bar: Documents Bar',
' :rtype: dict',
' :returns: ',
' :returns:',
' **Response Syntax**',
' ::',
' {',
" 'Foo': 'string',",
" 'Bar': 'string'",
' }',
' **Response Structure**',
' - *(dict) --* ',
' - *(dict) --*',
' - **Foo** *(string) --* Documents Foo',
' - **Bar** *(string) --* Documents Bar',
],
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37,py38,py39,py310,py311
envlist = py37,py38,py39,py310,py311,py312

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

0 comments on commit 76d31bf

Please sign in to comment.