Tools: add cron script to refresh mwgg_igdb (ao) and upgrade deps#50
Closed
lallaria wants to merge 1 commit into
Closed
Tools: add cron script to refresh mwgg_igdb (ao) and upgrade deps#50lallaria wants to merge 1 commit into
lallaria wants to merge 1 commit into
Conversation
Adds tools/cron_update_mwgg_igdb_ao.sh for scheduled re-installation of the ao game-index variant followed by a uv pip upgrade of all project requirements (transitive deps included). Force-reinstalls game_index/ao with --no-deps, runs an import smoke test, then upgrades requirements.txt with --upgrade --reinstall so stale transitive pins get refreshed. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this fixing or adding?
Adds
tools/cron_update_mwgg_igdb_ao.sh, a small cron-friendly script that:mwgg_igdbfromgame_index/aointo a configuredmwgg_venv(uv pip install --force-reinstall --no-deps --upgrade).from mwgg_igdb import GAMES_DATA, GameIndex) so a broken install surfaces in cron mail instead of failing silently at next launch.uv pip install --upgrade --reinstall -r requirements.txt, which pulls in the latest compatible versions for the listed packages and their transitive deps.--reinstallkeeps stale pins from prior partial runs from lingering.Config is via env vars at the top of the script (
MWGG_REPO_ROOT,MWGG_VENV,MWGG_REQUIREMENTS); the header comment includes a sample crontab line.Note: nothing else in the repo currently installs the ao variant —
build_exe.pyreinstalls sixteen. If a build runs after this cron, it will overwrite the ao install. Worth keeping in mind when scheduling.How was this tested?
Static review only — script is shell-only and has not been executed against a live venv. Manual smoke test on a target host is recommended before scheduling: run with
MWGG_VENVpointed at the real venv and confirm all three steps succeed.If this makes graphical changes, please attach screenshots.
N/A — tooling only.