hatch-vcs
hatch-vcs copied to clipboard
Build hook creates _version in the repo not in the src folder
I'm using hatch-vcs and want it to produce the _version.py file at the root of the package. However it creates it at the same level as the pyproject.toml file and not in my src folder
So i tried to define the file path as:
[tool.hatch.build.hooks.vcs]
version-file = "./src/my_package/_version.py"
but then when pip installing it, the _version file is nowhere to be found. What am I missing? Cheers