Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 2 additions & 43 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14', 'pypy3.9', 'pypy3.10', 'pypy3.11']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', 'pypy3.10', 'pypy3.11']

steps:
- name: Checkout project
Expand All @@ -36,45 +36,4 @@ jobs:

- name: Run unit tests with tox
id: test
run: tox

tests-old:
name: 🧪 Tests (older Python versions)
runs-on: ubuntu-22.04

strategy:
matrix:
python-version: ['3.7', '3.8']

steps:
- name: Checkout project
id: checkout
uses: actions/checkout@v5

- name: Set up Python 3.14 (tox runner)
id: setup-python
uses: actions/setup-python@v6
with:
python-version: '3.14'

- name: Install uv
id: setup-uv
uses: astral-sh/setup-uv@v6

- name: Install tox and plugins
id: install-tox
run: |
uv pip install --system tox tox-uv tox-gh-actions

- name: Set up target Python ${{ matrix.python-version }}
id: setup-target-python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Run unit tests with tox for target
id: test
shell: bash
run: |
ENV="py${{ matrix.python-version }}"; ENV=${ENV/./}
python3.14 -m tox -e "$ENV"
run: tox
18 changes: 9 additions & 9 deletions docs/usage/parser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,30 +35,30 @@ This will give the same result as manually creating the AST document::

from graphql.language.ast import *

document = DocumentNode(definitions=[
document = DocumentNode(definitions=(
ObjectTypeDefinitionNode(
name=NameNode(value='Query'),
fields=[
fields=(
FieldDefinitionNode(
name=NameNode(value='me'),
type=NamedTypeNode(name=NameNode(value='User')),
arguments=[], directives=[])
], directives=[], interfaces=[]),
arguments=(), directives=()),
), interfaces=(), directives=()),
ObjectTypeDefinitionNode(
name=NameNode(value='User'),
fields=[
fields=(
FieldDefinitionNode(
name=NameNode(value='id'),
type=NamedTypeNode(
name=NameNode(value='ID')),
arguments=[], directives=[]),
arguments=(), directives=()),
FieldDefinitionNode(
name=NameNode(value='name'),
type=NamedTypeNode(
name=NameNode(value='String')),
arguments=[], directives=[]),
], directives=[], interfaces=[]),
])
arguments=(), directives=()),
), interfaces=(), directives=()),
))


When parsing with ``no_location=False`` (the default), the AST nodes will also have a
Expand Down
10 changes: 2 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "graphql-core"
version = "3.3.0a11"
description = "GraphQL-core is a Python port of GraphQL.js, the JavaScript reference implementation for GraphQL."
readme = "README.md"
requires-python = ">=3.7"
requires-python = ">=3.10"
license = "MIT"
license-files = ["LICENSE"]
authors = [ { name = "Christoph Zwerschke", email = "cito@online.de" } ]
Expand All @@ -13,19 +13,13 @@ classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"typing-extensions>=4.12.2,<5; python_version >= '3.8' and python_version < '3.10'",
"typing-extensions>=4.7.1,<5; python_version < '3.8'",
]
dependencies = []

[project.urls]
Homepage = "https://github.com/graphql-python/graphql-core"
Expand Down
Loading
Loading