From d0b35bf70807a3a89cbf43c4e2de646bc30e2a3e Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sat, 4 Mar 2023 09:05:23 +0000 Subject: Bump Python version to 3.11 --- .github/workflows/lint.yaml | 5 ++--- Dockerfile | 4 ++-- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index fd41e972..0aa9e452 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -32,10 +32,9 @@ jobs: uses: actions/checkout@v2 - name: Install Python Dependencies - uses: HassanAbouelela/actions/setup-python@setup-python_v1.3.1 + uses: HassanAbouelela/actions/setup-python@setup-python_v1.4.0 with: - dev: true - python_version: "3.10" + python_version: "3.11" # Check all of our dev dependencies are compatible with the MIT license. # If you added a new dependencies that is being rejected, diff --git a/Dockerfile b/Dockerfile index 43fcdf5a..b20e81f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM --platform=linux/amd64 ghcr.io/chrislovering/python-poetry-base:3.10-slim +FROM --platform=linux/amd64 ghcr.io/chrislovering/python-poetry-base:3.11-slim # Install dependencies WORKDIR /bot COPY pyproject.toml poetry.lock ./ -RUN poetry install --without dev +RUN poetry install --only main # Set SHA build argument ARG git_sha="development" diff --git a/pyproject.toml b/pyproject.toml index bfb51044..293165c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = ["Python Discord "] license = "MIT" [tool.poetry.dependencies] -python = "3.10.*" +python = "3.11.*" # See https://bot-core.pythondiscord.com/ for docs. pydis_core = { version = "9.5.0", extras = ["async-rediscache"] } -- cgit v1.2.3