Skip to content

Commit 1b45883

Browse files
committed
chore: add Python 3.12
1 parent e401fec commit 1b45883

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Python
1515
uses: actions/setup-python@v4
1616
with:
17-
python-version: "3.10"
17+
python-version: "3.12"
1818
- name: Build wheel and source tarball
1919
run: |
2020
pip install wheel

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Set up Python
1212
uses: actions/setup-python@v4
1313
with:
14-
python-version: "3.10"
14+
python-version: "3.12"
1515
- name: Install dependencies
1616
run: |
1717
python -m pip install --upgrade pip

.github/workflows/tests.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ jobs:
88
strategy:
99
max-parallel: 4
1010
matrix:
11-
python-version: ["3.8", "3.9", "3.10", "3.11"]
11+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1212
os: [ubuntu-latest, windows-latest]
1313
exclude:
1414
- os: windows-latest
1515
python-version: "3.8"
1616
- os: windows-latest
1717
python-version: "3.9"
18+
- os: windows-latest
19+
python-version: "3.10"
1820
- os: windows-latest
1921
python-version: "3.11"
2022

@@ -39,7 +41,7 @@ jobs:
3941
- name: Set up Python
4042
uses: actions/setup-python@v4
4143
with:
42-
python-version: "3.10"
44+
python-version: "3.12"
4345
- name: Install test dependencies
4446
run: |
4547
python -m pip install --upgrade pip

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"Programming Language :: Python :: 3.9",
7676
"Programming Language :: Python :: 3.10",
7777
"Programming Language :: Python :: 3.11",
78+
"Programming Language :: Python :: 3.12",
7879
"License :: OSI Approved :: MIT License",
7980
],
8081
keywords="api graphql protocol rest",

tox.ini

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
envlist =
33
black,flake8,import-order,mypy,manifest,
4-
py{38,39,310,311}
4+
py{38,39,310,311,312}
55
; requires = tox-conda
66

77
[gh-actions]
@@ -10,6 +10,7 @@ python =
1010
3.9: py39
1111
3.10: py310
1212
3.11: py311
13+
3.12: py312
1314

1415
[testenv]
1516
conda_channels = conda-forge
@@ -22,35 +23,35 @@ whitelist_externals =
2223
python
2324
commands =
2425
pip install -U setuptools
25-
py{38,39,311}: pytest tests {posargs}
26-
py{310}: pytest tests --cov-report=term-missing --cov=graphql_server {posargs}
26+
py{38,39,310,311}: pytest tests {posargs}
27+
py{312}: pytest tests --cov-report=term-missing --cov=graphql_server {posargs}
2728

2829
[testenv:black]
29-
basepython = python3.10
30+
basepython = python3.12
3031
deps = -e.[dev]
3132
commands =
3233
black --check graphql_server tests
3334

3435
[testenv:flake8]
35-
basepython = python3.10
36+
basepython = python3.12
3637
deps = -e.[dev]
3738
commands =
3839
flake8 setup.py graphql_server tests
3940

4041
[testenv:import-order]
41-
basepython = python3.10
42+
basepython = python3.12
4243
deps = -e.[dev]
4344
commands =
4445
isort graphql_server/ tests/
4546

4647
[testenv:mypy]
47-
basepython = python3.10
48+
basepython = python3.12
4849
deps = -e.[dev]
4950
commands =
5051
mypy graphql_server tests --ignore-missing-imports
5152

5253
[testenv:manifest]
53-
basepython = python3.10
54+
basepython = python3.12
5455
deps = -e.[dev]
5556
commands =
5657
check-manifest -v

0 commit comments

Comments
 (0)