From 8dea6e2a2ecc8bb9f4bb17f795a9df4d076e6eb4 Mon Sep 17 00:00:00 2001 From: Cyril Achard Date: Mon, 24 Aug 2026 15:03:56 +0200 Subject: [PATCH 1/5] Switch project versioning to setuptools-scm Update `pyproject.toml` to use dynamic versioning by adding `setuptools_scm[simple]` to build requirements and replacing the hardcoded project version with `dynamic = ["version"]`. This moves version management to SCM tags instead of a manually maintained value. --- pyproject.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index da48c7820..eb07f59ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,9 @@ [build-system] build-backend = "setuptools.build_meta" -requires = [ "setuptools>=68" ] +requires = [ "setuptools>=68", "setuptools-scm[simple]>=9" ] [project] name = "deeplabcut-live-gui" -version = "2.0.0rc1" description = "PySide6-based GUI to run real time pose estimation experiments with DeepLabCut" readme = "README.md" keywords = [ "deep learning", "deeplabcut", "gui", "pose estimation", "real-time" ] @@ -22,6 +21,8 @@ classifiers = [ "Programming Language :: Python :: 3.12", "Topic :: Scientific/Engineering :: Artificial Intelligence", ] +# version = "2.0.0rc1" +dynamic = [ "version" ] dependencies = [ "cv2-enumerate-cameras", "deeplabcut-live>=1.1", From 4fb1d18fdf5cbea7b50e75111b868f73bae95243 Mon Sep 17 00:00:00 2001 From: Cyril Achard Date: Mon, 24 Aug 2026 15:04:07 +0200 Subject: [PATCH 2/5] Remove version field --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index eb07f59ee..fe2998b5b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,6 @@ classifiers = [ "Programming Language :: Python :: 3.12", "Topic :: Scientific/Engineering :: Artificial Intelligence", ] -# version = "2.0.0rc1" dynamic = [ "version" ] dependencies = [ "cv2-enumerate-cameras", From 2bf6d238c7ddf665d6468413ad9b2206e6d6b96c Mon Sep 17 00:00:00 2001 From: Cyril Achard Date: Mon, 24 Aug 2026 15:07:02 +0200 Subject: [PATCH 3/5] Fetch full history in Python CI workflow Set `fetch-depth: 0` on the checkout step in `.github/workflows/python-package.yml` so the workflow has complete git history when running against release tags (including `workflow_dispatch` tag refs). This avoids shallow-clone limitations in downstream release/versioning steps. --- .github/workflows/python-package.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index a1c83cbe2..4b2011242 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -60,6 +60,7 @@ jobs: uses: actions/checkout@v6 with: ref: ${{ github.event_name == 'workflow_dispatch' && format('refs/tags/{0}', inputs.release_tag) || github.ref }} + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v6 From 1621da44418e5763a51d43fb7798961399ecff46 Mon Sep 17 00:00:00 2001 From: Cyril Achard Date: Mon, 24 Aug 2026 15:11:35 +0200 Subject: [PATCH 4/5] Update v2_0_0.md --- changelog/v2_0_0.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog/v2_0_0.md b/changelog/v2_0_0.md index c47d0e5ff..4a4ca3caf 100644 --- a/changelog/v2_0_0.md +++ b/changelog/v2_0_0.md @@ -196,5 +196,6 @@ It also improves data safety, diagnostics, and general usability. * Upgrade & fix GenTL multi-camera mode by @C-Achard in https://github.com/DeepLabCut/DeepLabCut-live-GUI/pull/76 * Feature: triggered cameras, master and follower scheme by @C-Achard in https://github.com/DeepLabCut/DeepLabCut-live-GUI/pull/96 * Feature: encoding, UI and performance improvements by @C-Achard in https://github.com/DeepLabCut/DeepLabCut-live-GUI/pull/114 +* 2.0 changelogs by @C-Achard in https://github.com/DeepLabCut/DeepLabCut-live-GUI/pull/116 **Full Changelog**: https://github.com/DeepLabCut/DeepLabCut-live-GUI/compare/v2.0.0rc1...v2.0.0 From 4f1be1e1cbf522ccadd26b19c5c8b00520d4f4a4 Mon Sep 17 00:00:00 2001 From: Cyril Achard Date: Mon, 24 Aug 2026 15:12:52 +0200 Subject: [PATCH 5/5] Add missing fetch depth --- .github/workflows/python-package.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 4b2011242..2f6a06c93 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -130,6 +130,7 @@ jobs: with: # For a manual run, we want to check out the commit at the provided tag ref: ${{ github.event_name == 'workflow_dispatch' && format('refs/tags/{0}', inputs.release_tag) || github.ref }} + fetch-depth: 0 # Use a single, modern Python for the canonical release build - name: Set up Python (release build)