Skip to content

Commit

Permalink
Support and test against Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
pgjones committed May 1, 2023
1 parent b9417d8 commit 639d59c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ jobs:
fail-fast: false
matrix:
include:
- {name: '3.11-dev', python: '3.11-dev', tox: py311}
- {name: '3.11-dev', python: '3.12-dev', tox: py312}
- {name: '3.11', python: '3.11', tox: py311}
- {name: '3.10', python: '3.10', tox: py310}
- {name: '3.9', python: '3.9', tox: py39}
- {name: '3.8', python: '3.8', tox: py38}
- {name: '3.7', python: '3.7', tox: py37}
- {name: 'format', python: '3.10', tox: format}
- {name: 'mypy', python: '3.10', tox: mypy}
- {name: 'pep8', python: '3.10', tox: pep8}
- {name: 'package', python: '3.10', tox: package}
- {name: 'format', python: '3.11', tox: format}
- {name: 'mypy', python: '3.11', tox: mypy}
- {name: 'pep8', python: '3.11', tox: pep8}
- {name: 'package', python: '3.11', tox: package}

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.10"
python: "3.11"

python:
install:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
]
Expand Down
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = docs,format,mypy,py37,py38,py39,py310,pep8,package
envlist = docs,format,mypy,py37,py38,py39,py310,py311,pep8,package
isolated_build = True

[testenv]
Expand All @@ -11,7 +11,7 @@ deps =
commands = pytest --cov=quart_trio {posargs}

[testenv:docs]
basepython = python3.10
basepython = python3.11
deps =
pydata-sphinx-theme
sphinx
Expand All @@ -20,7 +20,7 @@ commands =
sphinx-build -b html -d {envtmpdir}/doctrees docs/ docs/_build/html/

[testenv:format]
basepython = python3.10
basepython = python3.11
deps =
black
isort
Expand All @@ -29,15 +29,15 @@ commands =
isort --check --diff src/quart_trio/ tests

[testenv:pep8]
basepython = python3.10
basepython = python3.11
deps =
flake8
pep8-naming
flake8-print
commands = flake8 src/quart_trio/ tests/

[testenv:mypy]
basepython = python3.10
basepython = python3.11
deps =
mypy
pytest
Expand All @@ -46,7 +46,7 @@ commands =
mypy src/quart_trio/ tests/

[testenv:package]
basepython = python3.10
basepython = python3.11
deps =
poetry
twine
Expand Down

0 comments on commit 639d59c

Please sign in to comment.