#setuptools

[ follow ]
fromdaniel.feldroy.com
16 hours ago

TIL: Single source version package builds with uv

Remove `version` in `pyproject.toml` and replace with `dynamic = ["version"]`. Add `[tool.setuptools.dynamic]` and specify the location of the version using `version = { attr = "mypackage.__version__" }`.
Python
[ Load more ]