Skip to content

Commit 98862ae

Browse files
make version dynamic
1 parent 0d3a8ec commit 98862ae

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ maintainers = [
1515
urls.Documentation = "https://spatialdata.readthedocs.io/"
1616
urls.Source = "https://github.com/scverse/spatialdata.git"
1717
urls.Home-page = "https://github.com/scverse/spatialdata.git"
18-
version = "0.0.1.dev1"
1918
requires-python = ">=3.9"
19+
dynamic= [
20+
"version" # allow version to be set by git tags
21+
]
2022
license = {file = "LICENSE"}
2123
readme = "README.md"
2224
dependencies = [
@@ -115,6 +117,12 @@ formats = "ipynb,md"
115117
[tool.hatch.build.targets.wheel]
116118
packages = ['src/spatialdata']
117119

120+
[tool.hatch.version]
121+
source = "vcs"
122+
123+
[tool.hatch.build.hooks.vcs]
124+
version-file = "_version.py"
125+
118126
[tool.hatch.metadata]
119127
allow-direct-references = true
120128

0 commit comments

Comments
 (0)