Skip to content

Commit 7f5b75b

Browse files
committed
Move version to package and mark pyproject dynamic
Add a __version__ = "2.0.0rc0" placeholder in dlclivegui/__init__.py and update pyproject.toml to use dynamic = ["version"] instead of a hardcoded version field. This makes the project metadata pull the version from the package source rather than storing it twice.
1 parent de9de7f commit 7f5b75b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

dlclivegui/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@
2424
"CameraConfigDialog",
2525
"main",
2626
]
27+
__version__ = "2.0.0rc0" # PLACEHOLDER

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ requires = [ "setuptools>=68" ]
44

55
[project]
66
name = "deeplabcut-live-gui"
7-
version = "2.0.0rc0" # PLACEHOLDER
87
description = "PySide6-based GUI to run real time pose estimation experiments with DeepLabCut"
98
readme = "README.md"
109
keywords = [ "deep learning", "deeplabcut", "gui", "pose estimation", "real-time" ]
@@ -22,6 +21,7 @@ classifiers = [
2221
"Programming Language :: Python :: 3.12",
2322
"Topic :: Scientific/Engineering :: Artificial Intelligence",
2423
]
24+
dynamic = [ "version" ] # version is set in dlclivegui/__init__.py
2525
dependencies = [
2626
"cv2-enumerate-cameras",
2727
"deeplabcut-live==1.1",

0 commit comments

Comments
 (0)