Skip to content

Commit

Permalink
Upgrade python to 3.13 (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
hollanbm authored Dec 20, 2024
1 parent 67c1a33 commit 331799f
Show file tree
Hide file tree
Showing 6 changed files with 214 additions and 210 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update -y -qq && \
apt-get autoremove -y -qq

# git safe directories
RUN git config --global --add safe.directory "*"
RUN git config --global --add safe.directory /workspaces/renamarr

RUN apt-get -y -qq install \
fzf \
Expand All @@ -21,6 +21,6 @@ RUN chmod 0755 /config

RUN pip install pipx
RUN pipx --global ensurepath
RUN pipx --global install poetry==1.8.3 ruff pre-commit pytest yamale yamllint
RUN pipx --global install poetry==1.8.4 ruff pre-commit pytest yamale yamllint

USER vscode
2 changes: 1 addition & 1 deletion .github/workflows/python-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
architecture: "x64"

#----------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ The application run immediately on startup, and then continue to schedule jobs e

#### Requirements

* [Python 3.12](https://www.python.org/downloads/release/python-3123/)
* [Python 3.13](https://www.python.org/downloads/release/python-3130/)
* [pipx](https://pipx.pypa.io/stable/installation/)
* [poetry](https://python-poetry.org/docs/#installation)

Expand Down
7 changes: 3 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
ARG PYTHON_VERSION=3.12
FROM python:${PYTHON_VERSION}-slim-bookworm AS builder
FROM python:3.13-slim-bookworm AS builder

WORKDIR /home/app/renamarr

# install poetry
RUN pip install poetry==1.8.3
RUN pip install poetry==1.8.4

COPY pyproject.toml poetry.lock ./

Expand All @@ -18,7 +17,7 @@ ENV POETRY_NO_INTERACTION=1 \
RUN --mount=type=cache,target=/tmp/poetry_cache poetry install --only main --no-root
RUN poetry install

FROM python:3.12-slim-bookworm AS app
FROM python:3.13-slim-bookworm AS app

# update base os
RUN apt-get update -y -qq && \
Expand Down
Loading

0 comments on commit 331799f

Please sign in to comment.