pypa / hatch

Modern, extensible Python project management
https://hatch.pypa.io/latest/
MIT License
6.11k stars 309 forks source link

Env version-source: add a fallback value #1710

Open StephenRobin opened 2 months ago

StephenRobin commented 2 months ago

Our build system sets the package version number via an environment variable.

When developers are building locally (eg when doing a uv sync) the environment variable will not be set and the build fails. This is inconvenient and we'd rather it just fell back to some default value like 0.0.1.dev0+local)