From 780ca22be58a28211bbf85072ca20dc6ef098c87 Mon Sep 17 00:00:00 2001 From: mandalore Date: Fri, 26 Jun 2026 21:01:51 -0500 Subject: [PATCH] fix: install pip deps in CI with --break-system-packages Python 3.12 (PEP 668) blocks bare pip installs into the system. Move the install step into the CI script and drop the self-install fallback from the Python script. Co-Authored-By: Claude Sonnet 4.6 --- .gitlab-ci.yml | 1 + scripts/sync-elo.py | 11 ++--------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1d95216..c9bdef9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,7 @@ sync-elo: only: - schedules script: + - pip3 install --break-system-packages requests openpyxl -q - python3 scripts/sync-elo.py - git config user.email ci@gateway-gamers.net - 'git config user.name "GG CI Bot"' diff --git a/scripts/sync-elo.py b/scripts/sync-elo.py index 8cbbdd8..c4d7f65 100644 --- a/scripts/sync-elo.py +++ b/scripts/sync-elo.py @@ -10,15 +10,8 @@ import sys from datetime import datetime, timezone from io import BytesIO -try: - import requests - import openpyxl -except ImportError: - print("Installing dependencies…", flush=True) - import subprocess - subprocess.check_call([sys.executable, "-m", "pip", "install", "requests", "openpyxl", "-q"]) - import requests - import openpyxl +import requests +import openpyxl DOWNLOAD_URL = ( "https://excel.officeapps.live.com/x/_layouts/XlFileHandler.aspx"