
TL;DR
The release of uv 0.12.0 introduces significant breaking changes, particularly affecting the default project structure generated by the uv init command. Users should be aware of these changes when initializing new projects.
✦ Why It Matters
Review the new project structure in uv 0.12.0 to ensure your workflows remain efficient.
Key Takeaways
Full Summary
In the latest release of uv, version 0.12.0, notable breaking changes have been implemented, particularly affecting the default project structure created by the uv init command. Previously, running uv init would generate a project with main.py in the root directory.
Now, it defaults to a src/ layout, which is a more organized approach for Python projects. Additionally, the uv_build backend is configured to facilitate the building of wheels and .tar.gz distribution files when executing uv build.
A new script alias, uv-init, is also established, allowing users to run a main() function from src/uv_init/__init__.py. These changes encourage developers to adopt a src layout, which can improve project organization and maintainability.
Related