-
-
Notifications
You must be signed in to change notification settings - Fork 363
Closed
Description
as of a few minutes ago hatch build
is failing. Example output:
➜ zarr-python git:(main) ✗ hatch build
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── sdist ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/bennettd/.local/share/hatch/env/virtual/zarr/i1kPX-Cz/zarr-build/lib/python3.11/site-packages/hatchling/__main__.py", line 6, in <module>
sys.exit(hatchling())
^^^^^^^^^^^
File "/home/bennettd/.local/share/hatch/env/virtual/zarr/i1kPX-Cz/zarr-build/lib/python3.11/site-packages/hatchling/cli/__init__.py", line 26, in hatchling
command(**kwargs)
File "/home/bennettd/.local/share/hatch/env/virtual/zarr/i1kPX-Cz/zarr-build/lib/python3.11/site-packages/hatchling/cli/build/__init__.py", line 82, in build_impl
for artifact in builder.build(
File "/home/bennettd/.local/share/hatch/env/virtual/zarr/i1kPX-Cz/zarr-build/lib/python3.11/site-packages/hatchling/builders/plugin/interface.py", line 147, in build
build_hook.initialize(version, build_data)
File "/home/bennettd/.local/share/hatch/env/virtual/zarr/i1kPX-Cz/zarr-build/lib/python3.11/site-packages/hatch_vcs/build_hook.py", line 35, in initialize
dump_version(self.root, self.metadata.version, self.config_version_file, **kwargs)
File "/home/bennettd/.local/share/hatch/env/virtual/zarr/i1kPX-Cz/zarr-build/lib/python3.11/site-packages/setuptools_scm/_integration/dump_version.py", line 77, in dump_version
write_version_to_path(
File "/home/bennettd/.local/share/hatch/env/virtual/zarr/i1kPX-Cz/zarr-build/lib/python3.11/site-packages/setuptools_scm/_integration/dump_version.py", line 111, in write_version_to_path
content = final_template.format(version=version, version_tuple=version_tuple)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'scm_version'
It looks like this has been reported on the hatch issue tracker, with a fix: pypa/hatch#2035
Metadata
Metadata
Assignees
Labels
No labels