so similar to question in link I want to specify version within pyproject.toml and use that within code (eg for package var _version__
)
I wanted to use solution as specified like below to
import importlib.metadata
__version__ = importlib_metadata.version(__package__ or __name__)
one issue I seem to be running into though is that if editable install (ie pip install -e .
) and update the pyproject.toml project.version this wont be automatically reflected in __version__
. is there way to get such behavior?