Skip to content

Commit

Permalink
Update to Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Jan 3, 2025
1 parent c03facb commit ef8c570
Show file tree
Hide file tree
Showing 5 changed files with 688 additions and 776 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/resultsdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
hooks:
- id: pyupgrade
args:
- --py311-plus
- --py313-plus

# Linter and formatter
- repo: https://github.com/astral-sh/ruff-pre-commit
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/fedora/python-312:20250101@sha256:30e9dd44032e041c4967ec7d20f35929e6c5de30cd6afe0f575f9786e9c90723 AS builder
FROM quay.io/fedora/python-313:20250101@sha256:dc3b9cf6de0ce9dca8b7eda0b353f7cfa15887e0bfe2015b2100f7d1aa368293 AS builder

# builder should use root to install/create all files
USER root
Expand All @@ -9,7 +9,7 @@ RUN set -exo pipefail \
# install runtime dependencies
&& dnf install -y \
--installroot=/mnt/rootfs \
--releasever=/ \
--use-host-config \
--setopt install_weak_deps=false \
--nodocs \
--disablerepo=* \
Expand Down Expand Up @@ -108,6 +108,7 @@ EXPOSE 5001

# Validate virtual environment
RUN /app/entrypoint.sh python -c 'import resultsdb' \
&& mod_wsgi-express --version \
&& /app/entrypoint.sh resultsdb --help

ENTRYPOINT ["/app/entrypoint.sh"]
Expand Down
Loading

0 comments on commit ef8c570

Please sign in to comment.