hatch-vcs icon indicating copy to clipboard operation
hatch-vcs copied to clipboard

Build hook creates _version in the repo not in the src folder

Open seb5g opened this issue 4 months ago • 1 comments

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

seb5g avatar Oct 03 '24 14:10 seb5g