Skip to content

Commit

Permalink
Merge pull request #1125 from Jamim/feature/python-3.11-3.12
Browse files Browse the repository at this point in the history
Add support for Python 3.11/3.12
  • Loading branch information
pakrym-stripe authored Nov 10, 2023
2 parents 966de59 + 064ac45 commit d0772fe
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,12 @@ jobs:
"3.8",
"3.9",
"3.10",
"3.11",
"3.12",
"pypy-3.7",
"pypy-3.8",
"pypy-3.9",
"pypy-3.10",
]

steps:
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ target-version = [
"py38",
"py39",
"py310",
# "py311", # black 21.12b0 doesn't
# "py312", # support these targets
]
exclude = '''
/(
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ pytest-cov >= 2.8.1, < 2.11.0
pytest-mock >= 2.0.0
pytest-xdist >= 1.31.0
pytest >= 6.0.0
# black==23.11.0 supports py311/py312 targets,
# but it's keen to reformat way too many files
black==21.12b0
click==8.0.4 # Version 8.1 breaks black
flake8
Expand Down
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,15 @@
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
],
Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
envlist =
fmt
lint
pyright
py{310,39,38,37,36,py3}
py{312,311,310,39,38,37,36,py3}
skip_missing_interpreters = true

[gh-actions]
python =
3.12: py312
3.11: py311
3.10: py310
3.9: py39
3.8: py38
Expand Down Expand Up @@ -63,4 +64,4 @@ passenv = GITHUB_*
commands =
coverage combine
coveralls --service=github
depends = py{310,39,38,37,36,py3}
depends = py{312,311,310,39,38,37,36,py3}

0 comments on commit d0772fe

Please sign in to comment.