Skip to content

Commit afe126d

Browse files
committed
ENH: Add a version property to the project
Add a version property to the project. Fixes: ``` ValueError: invalid pyproject.toml config: `project`. configuration error: `project` must contain ['version'] properties ``` raised for example at: https://readthedocs.org/projects/wmap/builds/22725765/
1 parent e65e549 commit afe126d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
[build-system]
2+
requires = [
3+
"setuptools >= 66",
4+
"setuptools_scm >= 6.4",
5+
]
6+
17
[project]
28
authors = [
39
{name = "O'Donnnell lab"}, {email = "[email protected]"}
@@ -9,6 +15,7 @@ classifiers = [
915
"Topic :: Scientific/Engineering :: Medical Science Apps.",
1016
]
1117
description = "White Matter Analysis Pipeline (WMAP)"
18+
dynamic = ["version"]
1219
keywords = ["DWI, neuroimaging, tractography"]
1320
maintainers = [
1421
{name = "O'Donnnell lab"}, {email = "[email protected]"}
@@ -28,3 +35,6 @@ doc = [
2835
homepage = "https://github.com/SlicerDMRI/wmap"
2936
documentation = "https://wmap.readthedocs.io/en/latest/"
3037
repository = "https://github.com/SlicerDMRI/wmap"
38+
39+
[tool.setuptools_scm]
40+
write_to = "./_version.py"

0 commit comments

Comments
 (0)