Skip to content

Commit a05b246

Browse files
committed
feat: Support for Python 3.12
1 parent 2659d51 commit a05b246

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
strategy:
5050
matrix:
5151
os: [ubuntu-20.04]
52-
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
52+
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
5353

5454
name: ${{ matrix.os }}/tests_${{ matrix.python }}
5555
runs-on: ${{ matrix.os }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased] - TBD
44

5+
### Added
6+
7+
- Support for Python 3.12.
8+
59
## [0.10.0] - 2023-04-12
610

711
### Changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ classifiers = [
2020
"Programming Language :: Python :: 3.9",
2121
"Programming Language :: Python :: 3.10",
2222
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
2324
"Programming Language :: Python :: Implementation :: CPython",
2425
"Topic :: Software Development :: Testing",
2526
]

test/test_customization.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ def test(query):
103103

104104
test()
105105
# And "id" is still possible to generate
106-
assert find(strategy, lambda x: "id" in x).strip() == '{\n getByDate(created: {id: ""})\n}'
106+
assert find(strategy, lambda x: "id" in x).strip() in (
107+
'{\n getByDate(created: {id: ""})\n}',
108+
"{\n getByDate(created: {id: null})\n}",
109+
)
107110

108111

109112
@given(data=st.data())

tox.ini

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
isolated_build = true
3-
envlist = py{37,38,39,310,311},coverage-report
3+
envlist = py{37,38,39,310,311,312},coverage-report
44

55
[gh-actions]
66
python =
@@ -9,6 +9,7 @@ python =
99
3.9: py39
1010
3.10: py310
1111
3.11: py311
12+
3.12: py312
1213

1314
[testenv]
1415
extras =
@@ -25,9 +26,9 @@ allowlist_externals =
2526

2627
[testenv:coverage-report]
2728
description = Report coverage over all measured test runs.
28-
basepython = python3.7
29+
basepython = python3.10
2930
skip_install = true
30-
depends = py{37,38,39,310,311}
31+
depends = py{37,38,39,310,311,312}
3132
commands =
3233
coverage combine
3334
coverage report

0 commit comments

Comments
 (0)