With a setup.py file, I could run `python setup.py --version` and it would print the version number. With a pyproject.toml file using setuptools, how can I conveniently get metadata like that?
@nedbatNed Batchelder in my tooling I use `hatch metadata` (which I think should work with non-hatchling too. But if the package is installed it should be a python -c 'import importlib.metadata; print(importlib.metadata.version("pkg-name"))` one liner π€
If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/hynek/statuses/114197564752112982 on your instance and quote it. (Note that quoting is not supported in Mastodon.)