From 8b0b9a73a6d17565f2b02f4fbda36ca3ec1c95a5 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Fri, 6 Oct 2023 22:51:40 -0400 Subject: [PATCH] Add Python 3.12 support. Also update pre-commit tool versions. Closes #2. --- .pre-commit-config.yaml | 4 ++-- changelog.d/2.adding.md | 1 + pyproject.toml | 3 ++- workflow-support/make_ci_image.sh | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 changelog.d/2.adding.md diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dd71757..6e92267 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] diff --git a/changelog.d/2.adding.md b/changelog.d/2.adding.md new file mode 100644 index 0000000..82291f1 --- /dev/null +++ b/changelog.d/2.adding.md @@ -0,0 +1 @@ +Added Python 3.12 support. \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 2c5ee2f..94bb70e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [ @@ -80,7 +81,7 @@ packages = [ ] [tool.hatch.envs.default] -python = "3.11" +python = "3.12" [tool.hatch.envs.lint] dependencies = [ diff --git a/workflow-support/make_ci_image.sh b/workflow-support/make_ci_image.sh index 12a86e1..1bc9a81 100755 --- a/workflow-support/make_ci_image.sh +++ b/workflow-support/make_ci_image.sh @@ -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,