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

pyproject section warning

Open awgymer opened this issue 1 year ago • 8 comments

I am just moving to hatch-vcs and after installing and adding minimal config to my pyproject.toml I am getting the following warning when running hatch build:

WARNING  pyproject.toml does not contain a tool.setuptools_scm section

pyproject.toml

[project]
...
dynamic = ["version"]
...

[tool.hatch.version]
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "mypackage/_version.py"

Versions:

hatch==1.9.1
hatch-vcs==0.4.0
hatchling==1.21.0
setuptools-scm==8.0.4

Is this warning expected? Is there a good way to mute it without just making a dummy section in my pyproject.toml?

awgymer avatar Dec 29 '23 14:12 awgymer