From cf1ee7bf7f23cfb83ab55b199f635586010cdb04 Mon Sep 17 00:00:00 2001 From: Christoph Zwerschke Date: Sun, 13 Oct 2024 19:57:27 +0200 Subject: [PATCH] Support Python 3.13 and bump version number --- .bumpversion.cfg | 2 +- .github/workflows/lint.yml | 4 ++-- .github/workflows/publish.yml | 4 ++-- .github/workflows/test.yml | 2 +- README.md | 2 +- docs/conf.py | 2 +- pyproject.toml | 5 +++-- setup.py | 1 + src/graphql/version.py | 2 +- tox.ini | 15 ++++++++------- 10 files changed, 21 insertions(+), 18 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 5a10e3f9..c77eac55 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 3.2.4 +current_version = 3.2.5 commit = False tag = False diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 90dde974..2ed9eeb4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,10 +9,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python 3.11 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: 3.11 + python-version: 3.12 - name: Install dependencies run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 42f07380..8e2be707 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,10 +12,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python 3.11 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: 3.11 + python-version: 3.12 - name: Build wheel and source tarball run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c9ec84c5..46ea700f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3.9', 'pypy3.10'] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.9', 'pypy3.10'] steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index 3f66fe40..66d91c33 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ a query language for APIs created by Facebook. ![Lint Status](https://github.com/graphql-python/graphql-core/actions/workflows/lint.yml/badge.svg) [![Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) -The current version 3.2.4 of GraphQL-core is up-to-date with GraphQL.js version 16.8.2. +The current version 3.2.5 of GraphQL-core is up-to-date with GraphQL.js version 16.8.2. An extensive test suite with over 2300 unit tests and 100% coverage comprises a replication of the complete test suite of GraphQL.js, making sure this port is diff --git a/docs/conf.py b/docs/conf.py index 4d2ebb65..c155d22c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -61,7 +61,7 @@ # The short X.Y version. # version = '3.2' # The full version, including alpha/beta/rc tags. -version = release = "3.2.4" +version = release = "3.2.5" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/pyproject.toml b/pyproject.toml index 9841c29a..a1406d93 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "graphql-core" -version = "3.2.4" +version = "3.2.5" description = """ GraphQL-core is a Python port of GraphQL.js,\ the JavaScript reference implementation for GraphQL.""" @@ -24,7 +24,8 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12" + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13" ] packages = [ { include = "graphql", from = "src" }, diff --git a/setup.py b/setup.py index f8780b43..1cf7e83b 100644 --- a/setup.py +++ b/setup.py @@ -34,6 +34,7 @@ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ], install_requires=[ "typing-extensions>=4,<5; python_version < '3.10'", diff --git a/src/graphql/version.py b/src/graphql/version.py index 64d08cf4..88002ac1 100644 --- a/src/graphql/version.py +++ b/src/graphql/version.py @@ -4,7 +4,7 @@ __all__ = ["version", "version_info", "version_js", "version_info_js"] -version = "3.2.4" +version = "3.2.5" version_js = "16.8.2" diff --git a/tox.ini b/tox.ini index 5417b688..34757911 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py3{6,7,8,9,10,11,12}, pypy3{9,10}, black, flake8, mypy, docs, manifest +envlist = py3{6,7,8,9,10,11,12,13}, pypy3{9,10}, black, flake8, mypy, docs, manifest isolated_build = true [gh-actions] @@ -12,24 +12,25 @@ python = 3.10: py310 3.11: py311 3.12: py312 + 3.13: py313 pypy3: pypy39 pypy3.9: pypy39 pypy3.10: pypy310 [testenv:black] -basepython = python3.11 +basepython = python3.12 deps = black==24.8.0 commands = black src tests setup.py -t py311 --check [testenv:flake8] -basepython = python3.11 +basepython = python3.12 deps = flake8>=7,<8 commands = flake8 src tests setup.py [testenv:mypy] -basepython = python3.11 +basepython = python3.12 deps = mypy>=1.11,<2 pytest>=8.3,<9 @@ -37,7 +38,7 @@ commands = mypy src tests [testenv:docs] -basepython = python3.11 +basepython = python3.12 deps = sphinx>=7,<8 sphinx_rtd_theme>=2.0,<3 @@ -45,7 +46,7 @@ commands = sphinx-build -b html -nEW docs docs/_build/html [testenv:manifest] -basepython = python3.11 +basepython = python3.12 deps = check-manifest>=0.49,<1 commands = check-manifest -v @@ -62,5 +63,5 @@ deps = commands = # to also run the time-consuming tests: tox -e py311 -- --run-slow # to run the benchmarks: tox -e py311 -- -k benchmarks --benchmark-enable - py3{6,7,8,9,10,11}, pypy3{9,10}: pytest tests {posargs} + py3{6,7,8,9,10,11,13}, pypy3{9,10}: pytest tests {posargs} py312: pytest tests {posargs: --cov-report=term-missing --cov=graphql --cov=tests --cov-fail-under=100}