From 7252a9bb4570e31e3c592bc5966941f6de7b8842 Mon Sep 17 00:00:00 2001 From: Takashi Iwamoto Date: Mon, 18 Nov 2024 18:46:42 +0900 Subject: [PATCH] Upgrade Python, packages, and OS in Dockerfile --- .github/workflows/flake8.yml | 8 ++++---- .github/workflows/pytype.yml | 8 ++++---- .github/workflows/tests.yml | 6 +++--- Dockerfile | 4 ++-- requirements.txt | 6 +++--- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index 01e63ae..5f01141 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -9,13 +9,13 @@ jobs: timeout-minutes: 5 strategy: matrix: - python-version: ["3.9"] + python-version: ["3.12"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Run flake8 verification run: | - pip install "flake8==6.0.0" && flake8 main*.py app/*.py \ No newline at end of file + pip install "flake8==7.1.1" && flake8 main*.py app/*.py diff --git a/.github/workflows/pytype.yml b/.github/workflows/pytype.yml index 34b2b9f..8c842ce 100644 --- a/.github/workflows/pytype.yml +++ b/.github/workflows/pytype.yml @@ -9,14 +9,14 @@ jobs: timeout-minutes: 5 strategy: matrix: - python-version: ["3.10"] + python-version: ["3.12"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Run pytype verification run: | pip install -r requirements.txt - pip install "pytype==2023.03.02" boto3 && pytype *.py \ No newline at end of file + pip install "pytype==2024.10.11" boto3 && pytype *.py diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 682381a..fff8035 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,11 +9,11 @@ jobs: timeout-minutes: 5 strategy: matrix: - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Run tests diff --git a/Dockerfile b/Dockerfile index 77e6a0f..1dafb4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11.4-slim-buster AS builder +FROM python:3.12.7-slim-bookworm AS builder ARG USE_BEDROCK=false COPY requirements.txt /build/ WORKDIR /build/ @@ -8,7 +8,7 @@ RUN if [ "$USE_BEDROCK" = "true" ]; then \ fi RUN pip install --no-cache-dir -r requirements.txt -FROM python:3.11.4-slim-buster AS app +FROM python:3.12.7-slim-bookworm AS app WORKDIR /app/ COPY *.py /app/ COPY app/*.py /app/app/ diff --git a/requirements.txt b/requirements.txt index 33c8ad5..3b37213 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -slack-bolt>=1.21.1,<2 -slack-sdk>=3.33.1,<4 -litellm>=1.50.2,<2 +slack-bolt>=1.21.2,<2 +slack-sdk>=3.33.3,<4 +litellm>=1.52.9,<2 pillow>=11.0.0,<12 requests>=2.32.3,<3