ofek / hatch-vcs

Hatch plugin for versioning with your preferred VCS
MIT License
109 stars 15 forks source link

version-file under [tool.hatch.version] doesn't work #37

Closed raamana closed 1 year ago

raamana commented 1 year ago

docs seems to suggest version-file must be under [tool.hatch.version] but it doesn't work. it needs to be under [tool.hatch.build.hooks.vcs]. it would help newbies to clarify this.

ofek commented 1 year ago

where do you see that? I'm looking at https://github.com/ofek/hatch-vcs#build-hook

RonnyPfannschmidt commented 1 year ago

@raamana is there perhaps a confusion between the builtin support for reading the version from a file and this plugin, which may write it

raamana commented 1 year ago

Sorry guys, I think I may have conflated a few different things, as this is all new to me. Anyways I think it would be easier for [total] newbies to write out a simple HOWTO guide to move from versioneer to hatch-vcs. Maybe I will write a simple one soon based on my experience.