From a486e462d5d93bbf916ec34f50079b2bd7e5f58d Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Thu, 27 Jun 2024 21:48:52 +0100 Subject: [PATCH] Python 3.12 --- .github/workflows/lint-test.yaml | 2 +- Dockerfile | 2 +- pyproject.toml | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 327727b..2d7fe14 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -11,7 +11,7 @@ jobs: - name: Install Python Dependencies uses: HassanAbouelela/actions/setup-python@setup-python_v1.4.2 with: - python_version: '3.11' + python_version: '3.12' install_args: "--only main --only lint --only test" # Attempt to run the bot. Setting `IN_CI` to true, so bot.run() is never called. diff --git a/Dockerfile b/Dockerfile index 0ba81be..c5dcf9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=linux/amd64 ghcr.io/owl-corp/python-poetry-base:3.11-slim +FROM --platform=linux/amd64 ghcr.io/owl-corp/python-poetry-base:3.12-slim # Install dependencies WORKDIR /bot diff --git a/pyproject.toml b/pyproject.toml index aeda483..3a2aeb1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,9 +3,10 @@ name = "sir-robin" version = "0.1.0" description = "" authors = ["Python Discord "] +package-mode = false [tool.poetry.dependencies] -python = "3.11.*" +python = "3.12.*" pydis-core = { version = "10.7.0", extras = ["async-rediscache"]} arrow = "1.3.0" @@ -35,7 +36,7 @@ requires = ["poetry-core>=1.2.0"] build-backend = "poetry.core.masonry.api" [tool.ruff] -target-version = "py311" +target-version = "py312" extend-exclude = [".cache"] line-length = 120 unsafe-fixes = true