Skip to content

Commit 92e701c

Browse files
committed
Update version handling in pyproject.toml to use dynamic versioning
1 parent 88444dc commit 92e701c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "datalab-kernel"
7-
version = "0.1.0"
87
description = "A standalone Jupyter kernel for DataLab with optional live synchronization"
98
readme = "README.md"
109
license = {text = "BSD-3-Clause"}
@@ -36,6 +35,7 @@ dependencies = [
3635
"matplotlib>=3.5",
3736
"sigima>=1.0",
3837
]
38+
dynamic = ["version"]
3939

4040
[project.optional-dependencies]
4141
dev = [
@@ -67,6 +67,9 @@ datalab-kernel-install = "datalab_kernel.install:main"
6767
where = ["."]
6868
include = ["datalab_kernel*"]
6969

70+
[tool.setuptools.dynamic]
71+
version = { attr = "datalab_kernel.__version__" }
72+
7073
[tool.pytest.ini_options]
7174
testpaths = ["datalab_kernel/tests"]
7275
python_files = ["*_test.py", "test_*.py"]

0 commit comments

Comments
 (0)