Skip to content

Commit

Permalink
Add Python 3.12 support.
Browse files Browse the repository at this point in the history
Also update pre-commit tool versions.

Closes #9.
  • Loading branch information
kpfleming committed Oct 7, 2023
1 parent 0b02735 commit 0c4a846
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.1.0"
rev: "1.2.0"
hooks:
- id: pyproject-fmt
# Ruff must be run before Black, so Black can reformat fixes made by Ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.290
rev: v0.0.292
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
1 change: 1 addition & 0 deletions changelog.d/9.adding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added Python 3.12 support.
1 change: 1 addition & 0 deletions plugin_example/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

[tool.setuptools]
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
]
dynamic = [
Expand Down Expand Up @@ -78,7 +79,7 @@ packages = [
]

[tool.hatch.envs.default]
python = "3.11"
python = "3.12"

[tool.hatch.envs.lint]
dependencies = [
Expand Down
2 changes: 1 addition & 1 deletion workflow-support/make_ci_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ build_cmd_with_source() {
build_cmd apt update --quiet=2
build_cmd apt install --yes --quiet=2 "${lint_deps[@]}" "${proj_deps[@]}" "${proj_build_deps[@]}"

build_cmd pip3.11 install git+https://github.com/pypa/hatch
build_cmd pip3.12 install git+https://github.com/pypa/hatch

for env in "${hatchenvs[@]}"; do
# this looks weird... but it causes Hatch to create the env,
Expand Down

0 comments on commit 0c4a846

Please sign in to comment.