How to set setuptools_scm local_scheme through hatch vcs options? #12
-
For reasons described elsewhere it can be helpful when having version numbers be determined through the vcs through For a [build-system]
# Minimum requirements for the build system to execute.
requires = ["setuptools>=61.0.0", "setuptools_scm>=7.0.1"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/package_name/_version.py"
local_scheme = "no-local-version" but how do I tell local_scheme = "no-local-version" ? This is my current [build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "package_name"
...
dynamic = ["version"]
...
[tool.hatch]
version.source = "vcs"
build.hooks.vcs.version-file = "src/package_name/version.py" Attempting to add build.hooks.vcs.local_scheme = "no-local-version" doesn't work. Apologies if I've missed something in the docs! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello! |
Beta Was this translation helpful? Give feedback.
Hello!
raw-options
https://github.com/ofek/hatch-vcs#version-source-options