← All recipes
Moderne licensed

Upgrade to Python 3.13

Recipe IDorg.openrewrite.python.migrate.UpgradeToPython313Artifactopenrewrite-migrate-python

Migrate deprecated and removed APIs for Python 3.13 compatibility. This includes detecting usage of modules removed in PEP 594 ('dead batteries'), other API changes between Python 3.12 and 3.13, and bumping third-party dependencies (ruff, avro-python3) whose pinned releases do not install cleanly on Python 3.13.

Composite recipepythonmigration3.13Proprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.python.migrate.UpgradeToPython313

If the recipe isn’t available locally, install it with:

mod config recipes pip install openrewrite-migrate-python

Definition

This recipe runs the following recipes in order.