From a5c300922a007419f7884d89673f8311fa5215de Mon Sep 17 00:00:00 2001 From: Jan Gosmann Date: Fri, 5 Jan 2024 12:33:03 +0100 Subject: [PATCH] Support Python 3.12 officially --- .github/workflows/ci.yml | 14 +++++++------- CHANGELOG.rst | 9 +++++++++ poetry.lock | 8 ++++---- pyproject.toml | 4 ++-- 4 files changed, 22 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8355de5..a995552 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4.3.0 with: - python-version: '3.11' + python-version: '3.12' - uses: actions/cache@v3.0.11 with: @@ -36,9 +36,9 @@ jobs: - uses: actions/cache@v3.0.11 with: path: .venv - key: ${{ runner.os }}-py3.11-venv-${{ hashFiles('pyproject.toml') }} + key: ${{ runner.os }}-py3.12-venv-${{ hashFiles('pyproject.toml') }} restore-keys: | - ${{ runner.os }}-py3.11-venv- + ${{ runner.os }}-py3.12-venv- - uses: ./.github/actions/setup-project - name: ${{ matrix.check.name }} @@ -48,7 +48,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v3 @@ -86,7 +86,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4.3.0 with: - python-version: '3.11' + python-version: '3.12' - uses: actions/cache@v3.0.11 with: @@ -95,9 +95,9 @@ jobs: - uses: actions/cache@v3.0.11 with: path: .venv - key: ${{ runner.os }}-py3.11-venv-${{ hashFiles('pyproject.toml') }} + key: ${{ runner.os }}-py3.12-venv-${{ hashFiles('pyproject.toml') }} restore-keys: | - ${{ runner.os }}-py3.11-venv- + ${{ runner.os }}-py3.12-venv- - uses: ./.github/actions/setup-project - name: Publish to PyPI diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 69899a2..a4c6ecb 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,15 @@ All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog `_, and this project adheres to `Semantic Versioning `_. +[0.10.0] - unreleased +--------------------- + +Added +^^^^^ + +* Official support for Python 3.12. + + [0.9.4] - 2023-08-01 -------------------- diff --git a/poetry.lock b/poetry.lock index 799bf32..690ffb1 100755 --- a/poetry.lock +++ b/poetry.lock @@ -178,13 +178,13 @@ tests-no-zope = ["attrs[tests-mypy]", "cloudpickle", "hypothesis", "pympler", "p [[package]] name = "bite-parser" -version = "0.2.3" +version = "0.2.4" description = "Asynchronous parser taking incremental bites out of your byte input stream." optional = false python-versions = ">=3.8,<4.0" files = [ - {file = "bite_parser-0.2.3-py3-none-any.whl", hash = "sha256:c5ed5ec89cf385a2d5d407c7d13475fb92947cf0da2f807739f9a0bf023da08a"}, - {file = "bite_parser-0.2.3.tar.gz", hash = "sha256:e597663a19f1a412385c6813e27f0912b8aa384922519d4273debfa7296e85ee"}, + {file = "bite_parser-0.2.4-py3-none-any.whl", hash = "sha256:e2209ac3c25c9951d2d80579d7ffa7584d325666e3387a5a6f6b7e5f1f5c5494"}, + {file = "bite_parser-0.2.4.tar.gz", hash = "sha256:52ad850e8a39833b4c46ab5d90a617d1150b863160cbe0deba30ba0536770992"}, ] [[package]] @@ -1553,4 +1553,4 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "cf38b6488930d15e46bc4186200f934de5c324baa9cdd9570459d48d94287f3b" +content-hash = "1746c7ec4ecbf41542efd16440205b4be744a5a5a1a967699c49150bae82e661" diff --git a/pyproject.toml b/pyproject.toml index da73c8f..9cb043f 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,12 +25,12 @@ version = "0.9.4" # Update also in __init__.py! dmarc-metrics-exporter = "dmarc_metrics_exporter.__main__:run" [tool.poetry.dependencies] -bite-parser = "^0.2.3" +bite-parser = "^0.2.4" dataclasses-serialization = "^1.3.1" prometheus_client = "^0.19.0" python = "^3.8" uvicorn = {extras = ["standard"], version = "^0.25.0"} -xsdata = ">=21.9" +xsdata = ">=23.7" [tool.poetry.dev-dependencies] aiohttp = "^3.7.3"