Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Python, packages, and OS in Dockerfile #13

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
pip install "flake8==7.1.1" && flake8 main*.py app/*.py
8 changes: 4 additions & 4 deletions .github/workflows/pytype.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
pip install "pytype==2024.10.11" boto3 && pytype *.py
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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/
Expand All @@ -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/
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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