Regex version source¶
See the documentation for versioning.
Updates¶
Setting the version is supported.
Configuration¶
The version source plugin name is regex.
[tool.hatch.version]
source = "regex"
[version]
source = "regex"
Options¶
| Option | Description | 
|---|---|
| path(required) | A relative path to a file containing the project's version | 
| pattern | A regular expression that has a named group called versionthat represents the version. The default pattern looks for a variable named__version__orVERSIONthat is set to a string containing the version, optionally prefixed with the lowercase letterv. |