From 98862aedb95a26e4df5b75a1beaa675506dd393a Mon Sep 17 00:00:00 2001 From: Kevin Yamauchi Date: Tue, 2 May 2023 16:12:58 +0200 Subject: [PATCH] make version dynamic --- pyproject.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e7139e45..db7967fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,8 +15,10 @@ maintainers = [ urls.Documentation = "https://spatialdata.readthedocs.io/" urls.Source = "https://github.com/scverse/spatialdata.git" urls.Home-page = "https://github.com/scverse/spatialdata.git" -version = "0.0.1.dev1" requires-python = ">=3.9" +dynamic= [ + "version" # allow version to be set by git tags +] license = {file = "LICENSE"} readme = "README.md" dependencies = [ @@ -115,6 +117,12 @@ formats = "ipynb,md" [tool.hatch.build.targets.wheel] packages = ['src/spatialdata'] +[tool.hatch.version] +source = "vcs" + +[tool.hatch.build.hooks.vcs] +version-file = "_version.py" + [tool.hatch.metadata] allow-direct-references = true