The pyproject.toml specification affords the ability to specify the project version, e.g.
[project]
name = "foo"
version = "0.0.1"
However, it is also a common Python idiom to put __version__ = "0.0.1"
in foo/__init__.py
so that users can query it.
Is there a standard way of extracting the version
from the pyproject.toml
and getting it into the foo/__init__.py
?