Skip to content

Commit

Permalink
Add Python 3.12 support (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
nateprewitt committed Aug 14, 2023
1 parent 6622ca0 commit 082815d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/next-release/enhancement-Python-27390.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 s3transfer"
}
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]

steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ psutil>=4.1.0,<5.0.0
tabulate==0.7.5
coverage==5.5
wheel==0.38.1
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 @@ -41,10 +41,12 @@ 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',
],
)
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 082815d

Please sign in to comment.