From b3360a886adae741a074d723739adaf1ceee409d Mon Sep 17 00:00:00 2001 From: Felipe Alvarado Date: Thu, 16 Jan 2025 15:55:37 +0100 Subject: [PATCH] Update to Python 3.13 --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- docker/web/Dockerfile | 6 +++++- setup.cfg | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7026de..c706ef2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.12"] + python-version: ["3.13"] steps: - uses: actions/checkout@v4 @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.12"] + python-version: ["3.13"] services: redis: image: redis diff --git a/README.md b/README.md index 724ef81..6b091e2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![Python CI](https://github.com/safe-global/safe-decoder-service/actions/workflows/ci.yml/badge.svg)](https://github.com/safe-global/safe-decoder-service/actions/workflows/ci.yml) [![Coverage Status](https://coveralls.io/repos/github/safe-global/safe-decoder-service/badge.svg?branch=main)](https://coveralls.io/github/safe-global/safe-decoder-service?branch=main) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) -![Python 3.12](https://img.shields.io/badge/Python-3.12-blue.svg) +![Python 3.13](https://img.shields.io/badge/Python-3.13-blue.svg) [![Docker Image Version (latest semver)](https://img.shields.io/docker/v/safeglobal/safe-decoder-service?label=Docker&sort=semver)](https://hub.docker.com/r/safeglobal/safe-decoder-service) diff --git a/docker/web/Dockerfile b/docker/web/Dockerfile index 5f8f6d0..68ef525 100644 --- a/docker/web/Dockerfile +++ b/docker/web/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.12-slim +FROM python:3.13-slim EXPOSE 8888/tcp ARG APP_HOME=/app @@ -11,15 +11,19 @@ RUN set -ex \ build-essential \ git \ libssl-dev \ + curl \ " \ && apt-get update \ && apt-get upgrade -y \ && apt-get install -y --no-install-recommends $buildDeps \ + && curl https://sh.rustup.rs -sSf | sh -s -- -y \ + && export PATH="$PATH:$HOME/.cargo/bin" \ && pip install -U --no-cache-dir wheel setuptools pip \ && pip install --no-cache-dir -r requirements.txt \ && pip install --no-cache-dir ipython \ && apt-get purge -y --auto-remove $buildDeps \ && rm -rf /var/lib/apt/lists/* \ + && rustup self uninstall -y \ && find /usr/local \ \( -type d -a -name test -o -name tests \) \ -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ diff --git a/setup.cfg b/setup.cfg index bf53569..4f87d84 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,7 +17,7 @@ known_fastapi = fastapi,pydantic sections = FUTURE,STDLIB,FASTAPI,THIRDPARTY,SAFE,FIRSTPARTY,LOCALFOLDER [mypy] -python_version = 3.12 +python_version = 3.13 exclude = env check_untyped_defs = True ignore_missing_imports = True