uv
uv now sets up every new Python project as an installable package with the code tucked one folder down, a default Astral withdrew two years ago and has rebuilt its own tooling to restore.
Astral released uv 0.12.0 on 28 July, and the change a Python programmer meets first is what appears the moment a project is created. Until now, the command that starts one left a single file called main.py in an otherwise empty folder. It now puts your code in a folder one level down, writes the few lines that let the project be built and installed like any package you would download, and installs it into its own environment before you have written anything.
The same release refuses to install a package that would write over the Python interpreter running it.
This sounds like filing. It works as a test. With the code sitting in the folder you are standing in, Python finds it because you happen to be standing there. Move it one level down and your own tests can only reach it the way a stranger's machine would, by installing it first. The classic packaging failure is a file that works perfectly for its author and vanishes for everyone else, because it was never included in what shipped. The new layout makes that break on the author's machine, while someone can still fix it.
uv had this default once before. It was there in 2024 and gone by the next release, because declaring a project installable meant naming a separate program to do the building, and that extra name confused people arriving at Python. Astral's answer was to remove the cost. They wrote a build program of their own, folded it into uv so nothing extra has to be named, and switched the default back on.
uv is now the common starting point for new Python projects, pulled down something like 75 million times a month and well past Poetry, the tool it displaced. Whether to bury your code one folder deeper has been argued in blog posts for a decade, and it is now settled by what a single command prints, with --no-package still there for anyone who wants the flat version. The release is labelled breaking out of caution more than necessity: the rest of it is accumulated strictness about how packages must be archived and checksummed, held back since March, and Astral expects most projects to upgrade untouched. What changes is not any project that already exists, but the shape of every one that comes next.
Upgrade, run uv init demo, and read the pyproject.toml it writes; the release notes list every tightening that ships with it, including the ones that only bite people who publish packages.
Get the tool at github.com →The lenses
The facts
How this connects
Tap a node to open it