Zero-Drama Upgrades: Real-World Tactics for Major Python Migrations

Track:
Tooling, Packaging, Developer Productivity
Type:
Talk
Level:
intermediate
Duration:
30 minutes

Abstract

Upgrading to a new major version of any Python library can be challenging—especially when your codebase is large and critical to your business. In this talk, we’ll explore a step-by-step approach to managing these upgrades with minimal friction, using our recent migration from Pydantic v1 to v2 as a real-world example. However, all the strategies we discuss can be applied to other Python libraries or frameworks, ensuring your next migration is smooth and stress-free.

You’ll learn how to:

  • Identify and Resolve Breaking Changes: Spot incompatibilities early and prevent disruptive failures.
  • Refactor for New Features: Adapt your code to leverage the latest improvements and simplify your design.
  • Test Safely and Iteratively: Maintain reliability by rolling out incremental changes.
  • Achieve Real-World Benefits: Discover how major upgrades can boost performance, reduce complexity, and future-proof your projects.

Whether you work on an enterprise-level system or a small project, you’ll leave with practical insights, best practices, and tools to handle major Python migrations—without the drama.