Santa came super early in 2026!

With build 1.4.0, it is now possible to easily dump effective package metadata!

So getting the version of a package in the current directory is now as easy as `pipx run build --metadata 2>/dev/null | jq -r .version`.

This is NOT like parsing pyproject.toml or whatever. It builds the package and looks at the result. So it works even with setup.py.

github.com/pypa/build/releases

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/hynek/statuses/115863544688948293 on your instance and quote it. (Note that quoting is not supported in Mastodon.)