Upgrade yoyo-migrations to 9.0.0 to fix pkg_resources crash#1215
Merged
Conversation
yoyo 8.0.0 imports pkg_resources, which is no longer available: the python:3.14 base image ships no setuptools, and setuptools >= 81 has removed pkg_resources entirely. This made every yoyo command crash in the workers container with ModuleNotFoundError. yoyo 9.0.0 dropped the pkg_resources dependency; the CLI and the `step` API used by our migration files are unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
audiodude
enabled auto-merge
July 17, 2026 13:29
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1215 +/- ##
=======================================
Coverage 92.64% 92.64%
=======================================
Files 78 78
Lines 4987 4987
=======================================
Hits 4620 4620
Misses 367 367 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Problem
Running migrations in the production workers container fails immediately:
yoyo-migrations==8.0.0importspkg_resources, which comes from setuptools. Two things make that import impossible now:python:3.14base image no longer includes setuptools (Python 3.12+ stopped bundling it).pkg_resourcesentirely (current release is 83.0.0).Fix
Bump to
yoyo-migrations==9.0.0, which dropped thepkg_resourcesdependency. Verified in a clean Python 3.14 environment that 9.0.0 imports and runs with no setuptools present, while 8.0.0–8.2.0 all fail. The project only uses yoyo via the CLI (yoyo apply) andfrom yoyo import stepindb/migrations/, both unchanged in 9.0.0.The Pipfile.lock diff is a targeted upgrade (
pipenv upgrade yoyo-migrations==9.0.0) — no other packages changed; the whitespace churn is the pre-commit prettier hook re-normalizing pipenv's output.🤖 Generated with Claude Code