ofek / hatch-vcs

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

What is the metadata hook for? #45

Closed flying-sheep closed 1 year ago

flying-sheep commented 1 year ago

Does anything happen when you specify [tool.hatch.metadata.hooks.vcs] in addition to [tool.hatch.version] source = "vcs"?

When I leave out the metadata hook header, the built package’s metadata still contains a setuptools-scm generated version.

RonnyPfannschmidt commented 1 year ago

The metadata hook is for dynamically rendering scm data into projects metadata other than the version

flying-sheep commented 1 year ago

Ah, got it! The examples kinda hint toward that, but it’s not outright stated. Maybe that should be added.