Skip to content

Commit

Permalink
Support Python 3.13 and bump version number
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Oct 13, 2024
1 parent 967d58d commit cf1ee7b
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 3.2.4
current_version = 3.2.5
commit = False
tag = False

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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."""
Expand All @@ -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" },
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
15 changes: 8 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -12,40 +12,41 @@ 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
commands =
mypy src tests

[testenv:docs]
basepython = python3.11
basepython = python3.12
deps =
sphinx>=7,<8
sphinx_rtd_theme>=2.0,<3
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
Expand All @@ -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}

0 comments on commit cf1ee7b

Please sign in to comment.