From 83383544747cab5544f6b4b2e00a184eba2acd0d Mon Sep 17 00:00:00 2001 From: Christian Hartung Date: Tue, 3 Oct 2023 09:51:25 -0300 Subject: [PATCH] chore: add support for python 3.12 --- .devcontainer/devcontainer.json | 2 +- .github/workflows/tests.yml | 4 ++-- CHANGES.rst | 1 + hatch.toml | 2 +- pyproject.toml | 5 +++-- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 4390a48..546082b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "loafer", - "image": "mcr.microsoft.com/devcontainers/python:0-3.11", + "image": "mcr.microsoft.com/devcontainers/python:0-3.12", "features": { "ghcr.io/devcontainers-contrib/features/hatch:2": {}, "ghcr.io/devcontainers-contrib/features/pre-commit:2": {} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cdf0ee0..6e0a271 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,7 +32,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" - name: Run linters run: | @@ -50,7 +50,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - name: Checkout uses: actions/checkout@v3 diff --git a/CHANGES.rst b/CHANGES.rst index e82a220..35e5854 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,6 +3,7 @@ UNRELEASED * refactor: remove ConfigurationError exception * refactor: remove concurrency limit param * refactor: remove max threads param +* chore: add support for Python 3.12 4.0.0 (2023-07-10) ------------------ diff --git a/hatch.toml b/hatch.toml index 151f7bb..1098ff7 100644 --- a/hatch.toml +++ b/hatch.toml @@ -18,4 +18,4 @@ check-fixtures = "pytest --dead-fixtures" test = "pytest -vv --cov=loafer --cov-report=term-missing" [[envs.test.matrix]] -python = ["3.8", "3.9", "3.10", "3.11"] +python = ["3.8", "3.9", "3.10", "3.11", "3.12"] diff --git a/pyproject.toml b/pyproject.toml index 2cd9aed..c697c44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,9 +22,10 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: System :: Distributed Computing", ] -requires-python = ">=3.8,<3.12" +requires-python = ">=3.8,<3.13" dependencies = ["aiobotocore>=2.0.0,<3.0.0"] [project.urls] @@ -33,7 +34,7 @@ Repository = "https://github.com/olist/olist-loafer/" [tool.black] line-length = 110 -target-version = ["py38", "py39", "py310", "py311"] +target-version = ["py38", "py39", "py310", "py311", "py312"] [tool.isort] profile = "black"