Skip to content

Commit 4a53042

Browse files
committed
Add support for Python 3.12
1 parent 9cae431 commit 4a53042

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: build
22

3-
on: [push, pull_request]
3+
on: [push, pull_request, workflow_dispatch]
44

55
jobs:
66
build:
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
13+
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
1414
os: [ubuntu-latest, windows-latest]
1515

1616
steps:
@@ -19,6 +19,7 @@ jobs:
1919
uses: actions/setup-python@v4
2020
with:
2121
python-version: ${{ matrix.python }}
22+
allow-prereleases: true
2223
- name: Install hatch
2324
run: python -m pip install --upgrade pip hatch hatch-vcs
2425
- name: Run tests

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ classifiers = [
3232
"Programming Language :: Python :: 3.9",
3333
"Programming Language :: Python :: 3.10",
3434
"Programming Language :: Python :: 3.11",
35+
"Programming Language :: Python :: 3.12",
3536
"Topic :: Software Development :: Libraries",
3637
"Topic :: Utilities",
3738
]
@@ -58,7 +59,7 @@ dependencies = [
5859
default = "pytest {args}"
5960

6061
[[tool.hatch.envs.test.matrix]]
61-
python = ["3.7", "3.8", "3.9", "3.10", "3.11"]
62+
python = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
6263

6364
[tool.setuptools_scm]
6465

0 commit comments

Comments
 (0)