r/Python
•
u/JanGiacomelli
•
Jun 10 '26
Discussion What's your approach for breaking changes inside minor version upgrades of your dependencies
For example, FastAPI introduced a breaking change in a minor version upgrade. By default, it started rejecting requests without a Content-Type header. With only the major version pinned, uv lock --upgrade upgrades to the latest version. A similar thing has happened with google-auth-oauthlib. And that's what bit us.
In our case, everything was fine after the upgrade according to the end-to-end test suite, since most modern HTTP clients add the Content-Type header by default. The issue arose when calls were made using some older Java versions. The customer didn't explicitly add the header, so calls were rejected once their cron had started.
Since reading every release note for every dependency is a very dull and time-consuming task, we wrote a Python script that downloads all release notes and added a Claude command to read them, update dependency versions, and update code as required by breaking changes, while keeping the existing state. So far, it's working great.
Anyhow, curious to hear how others are dealing with these things? I assume you're not reading every release note for every dependency?