Skip to content

Commit

Permalink
Python 3.11 support (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
leszekhanusz authored Apr 27, 2023
1 parent f3b0f26 commit db6d277
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "pypy3.8"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.8"]
os: [ubuntu-latest, windows-latest]
exclude:
- os: windows-latest
Expand All @@ -17,6 +17,8 @@ jobs:
python-version: "3.9"
- os: windows-latest
python-version: "3.10"
- os: windows-latest
python-version: "3.11"
- os: windows-latest
python-version: "pypy3.8"

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: PyPy",
],
keywords="api graphql protocol rest relay gql client",
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[tox]
envlist =
black,flake8,import-order,mypy,manifest,
py{37,38,39,310,py3}
py{37,38,39,310,311,py3}

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
pypy-3: pypy3

[testenv]
Expand All @@ -27,7 +28,7 @@ deps = -e.[test]
commands =
pip install -U setuptools
; run "tox -- tests -s" to show output for debugging
py{37,39,310,py3}: pytest {posargs:tests}
py{37,39,310,311,py3}: pytest {posargs:tests}
py{38}: pytest {posargs:tests --cov-report=term-missing --cov=gql}

[testenv:black]
Expand Down

0 comments on commit db6d277

Please sign in to comment.