From 4b05b416178e754e23303172cf1c416dbd395f05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C5=BEe=20Pe=C4=8Dar?= Date: Mon, 4 Dec 2023 11:40:30 +0000 Subject: [PATCH] Add Python 3.12 support --- .github/workflows/build-and-test.yml | 6 +++--- .github/workflows/publish.yml | 2 +- CHANGELOG.md | 6 ++++++ pyproject.toml | 14 +++++--------- src/django_tui/__about__.py | 2 +- 5 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index ec74408..879bb60 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -17,11 +17,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.11 + - uses: actions/checkout@v4 + - name: Set up Python 3.12 uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" cache: "pip" - name: Install dependencies run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d95224c..3b1e65e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,7 +21,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.11' + python-version: '3.12' cache: 'pip' - name: Install dependencies run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 0790bcf..d37fe11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Calendar Versioning](https://calver.org). +## [23.7] - 2023-12-04 + +### Added + +Python 3.12 support + ## [23.6] - 2023-10-24 ### Added diff --git a/pyproject.toml b/pyproject.toml index c6f673b..d675929 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,6 +29,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ] @@ -67,23 +68,22 @@ cov = [ ] [[tool.hatch.envs.all.matrix]] -python = ["3.8", "3.9", "3.10", "3.11"] +python = ["3.8", "3.9", "3.10", "3.11", "3.12"] [tool.hatch.envs.lint] detached = true dependencies = [ - "black>=23.1.0", "mypy>=1.0.0", - "ruff>=0.0.243", + "ruff>=0.1.6", ] [tool.hatch.envs.lint.scripts] typing = "mypy --install-types --non-interactive {args:src/django_tui tests}" style = [ "ruff {args:.}", - "black --check --diff {args:.}", + "ruff format --check {args:.}", ] fmt = [ - "black {args:.}", + "ruff format {args:.}", "ruff --fix {args:.}", "style", ] @@ -92,10 +92,6 @@ all = [ "typing", ] -[tool.black] -target-version = ["py38"] -line-length = 120 - [tool.ruff] target-version = "py38" line-length = 120 diff --git a/src/django_tui/__about__.py b/src/django_tui/__about__.py index c0347e7..52df28a 100644 --- a/src/django_tui/__about__.py +++ b/src/django_tui/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2023-present Anže Pečar # # SPDX-License-Identifier: MIT -__version__ = "23.6" +__version__ = "23.7"