Skip to content

Commit

Permalink
Support Python 3.13 (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
leszekhanusz authored Jan 20, 2025
1 parent 212e2e1 commit cd071da
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.10"]
os: [ubuntu-24.04, windows-latest]
exclude:
- os: windows-latest
Expand All @@ -22,6 +22,8 @@ jobs:
python-version: "3.11"
- os: windows-latest
python-version: "3.12"
- os: windows-latest
python-version: "3.13"
- os: windows-latest
python-version: "pypy3.10"

Expand Down
1 change: 0 additions & 1 deletion docs/code_examples/fastapi_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from fastapi import FastAPI, HTTPException
from fastapi.responses import HTMLResponse

from gql import Client, gql
from gql.transport.aiohttp import AIOHTTPTransport

Expand Down
1 change: 0 additions & 1 deletion docs/code_examples/httpx_async_trio.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import trio

from gql import Client, gql
from gql.transport.httpx import HTTPXAsyncTransport

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"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,7 +1,7 @@
[tox]
envlist =
black,flake8,import-order,mypy,manifest,
py{38,39,310,311,312,py3}
py{38,39,310,311,312,313,py3}

[gh-actions]
python =
Expand All @@ -10,6 +10,7 @@ python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
pypy-3: pypy3

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

[testenv:black]
Expand Down

0 comments on commit cd071da

Please sign in to comment.