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

Python 3.13 #215

Merged
merged 2 commits into from
Jan 3, 2025
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/resultsdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
with:
python-version: ${{ matrix.python-version }}

- name: Install system dependencies
uses: nick-invision/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2
uses: nick-invision/retry@7152eba30c6575329ac0576536151aca5a72780e # v3
with:
timeout_minutes: 10
retry_wait_seconds: 30
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ repos:

# Auto-update syntax
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
rev: v3.19.1
hooks:
- id: pyupgrade
args:
- --py311-plus
- --py313-plus

# Linter and formatter
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.1
rev: v0.8.5
hooks:
- id: ruff
args:
Expand All @@ -59,7 +59,7 @@ repos:

# Type linter
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.14.1
hooks:
- id: mypy
args:
Expand All @@ -82,6 +82,6 @@ repos:

# renovate.json validator
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 39.46.1
rev: 39.86.3
hooks:
- id: renovate-config-validator
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/fedora/python-312:20241120@sha256:aedc5b00a981c671a5dab3c1885f89398b2bf633264542635e3fc3096a56538a 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 All @@ -19,7 +19,9 @@ RUN set -exo pipefail \
openldap \
python3 \
httpd-core \
python3-mod_wsgi \
&& dnf --installroot=/mnt/rootfs clean all \
&& ln -s mod_wsgi-express-3 /mnt/rootfs/usr/bin/mod_wsgi-express \
# https://python-poetry.org/docs/master/#installing-with-the-official-installer
&& curl -sSL --proto "=https" https://install.python-poetry.org | python3 - \
&& python3 -m venv /venv
Expand Down Expand Up @@ -108,6 +110,7 @@ EXPOSE 5001

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

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