Upgrade to Python 3.15
ProprietaryMigrate deprecated and removed APIs for Python 3.15 compatibility, applying every earlier upgrade first.
org. openrewrite. python. migrate. UpgradeToPython315mod run . --recipe= org. openrewrite. python. migrate. UpgradeToPython315Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Upgrade to Python 3.14
- Replace
glob.glob1()withglob.glob(root_dir=...) - Replace keyword-argument
NamedTuplefields with a field list - Pass
[]to aNamedTuplewith no fields - Pass
{}to aTypedDictwith no fields - Replace
importlib.resources.files(package=...)withanchor=... - Replace module
__cached__with__spec__.cached - Find removed
glob.glob0() - Find removed
PurePath.is_reserved() - Find removed
load_module()on import loaders - Find removed
sre_*modules - Find removed
http.server.CGIHTTPRequestHandler - Find removed
typing.no_type_check_decorator - Find removed
ctypes.SetPointerType() - Find removed
platform.java_ver() - Find removed
wavemarker methods - Find removed
co_lnotabon code objects - Find deprecated
profilemodule - Find deprecated
webbrowser.MacOSXOSAScript - org.openrewrite.python.migrate.UpgradePythonVersionTo315