File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Add hatch-vcs to default Hatch plugins.
Original file line number Diff line number Diff line change @@ -129,15 +129,15 @@ hatch_plugins:
129129 type : str
130130 help : Which Hatch plugins do you want to use?
131131 multiselect : true
132- default : []
132+ default : [hatch-vcs ]
133133 when : " {{ build_backend == 'hatch' }}"
134134 choices :
135135 hatch-vcs : hatch-vcs
136136
137137dynamic_version :
138138 type : bool
139139 help : Whether the version is dynamic.
140- default : " {{ 'hatch-vcs' in hatch_plugins }}"
140+ default : " {{ build_backend == 'hatch' and 'hatch-vcs' in hatch_plugins }}"
141141 when : false
142142
143143entry_points :
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ release = [
117117 "uv>=0.7.7",
118118{% - endif %}
119119]
120- {% if hatch_plugins %}
120+ {% if build_backend == 'hatch' and hatch_plugins %}
121121[tool.hatch]
122122{% - if 'hatch-vcs' in hatch_plugins %}
123123build.hooks.vcs.version-file = "src/{{ package_name }}/VERSION.txt"
You can’t perform that action at this time.
0 commit comments