From db6d277219d174be22a342cb17a0e79bc7cc6975 Mon Sep 17 00:00:00 2001 From: Hanusz Leszek Date: Thu, 27 Apr 2023 13:02:47 +0200 Subject: [PATCH] Python 3.11 support (#410) --- .github/workflows/tests.yml | 4 +++- setup.py | 1 + tox.ini | 5 +++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 366a953b..77798ada 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -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" diff --git a/setup.py b/setup.py index 17fda63b..bc11f66c 100644 --- a/setup.py +++ b/setup.py @@ -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", diff --git a/tox.ini b/tox.ini index 070b5bf2..df1e81f1 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] envlist = black,flake8,import-order,mypy,manifest, - py{37,38,39,310,py3} + py{37,38,39,310,311,py3} [gh-actions] python = @@ -9,6 +9,7 @@ python = 3.8: py38 3.9: py39 3.10: py310 + 3.11: py311 pypy-3: pypy3 [testenv] @@ -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]