FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Change package version field to dynamic by C-Achard · Pull Request #118 · DeepLabCut/DeepLabCut-live-GUI · GitHub

Change package version field to dynamic - #118

Merged
C-Achard merged 5 commits into
masterfrom
cy/use-tagged-version
Aug 24, 2026
Merged

Change package version field to dynamic#118
C-Achard merged 5 commits into
masterfrom
cy/use-tagged-version

Conversation

Copy link
Copy Markdown
Contributor

The version tag from the GitHub release should be the authority on version release.
This avoids having to manually bump the release number in pyproject and helps streamline the release process.

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.
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.
C-Achard requested a lite review from Copilot August 24, 2026 13:08
C-Achard self-assigned this Aug 24, 2026
C-Achard added the packaging Related to project packaging and release label Aug 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Pull request overview

This PR updates the Python packaging configuration so the published package version is derived from the Git tag (GitHub release tag) instead of being manually maintained in pyproject.toml, streamlining the release process.

Changes:

  • Switch project version metadata to dynamic = ["version"] and add setuptools-scm as a build dependency.
  • Update the CI checkout step to fetch full git history (to support SCM-derived versioning during builds).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
pyproject.toml Removes the static version field and enables dynamic versioning via setuptools-scm in build requirements.
.github/workflows/python-package.yml Adjusts checkout depth to ensure git metadata is available for SCM-based version computation during CI builds.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

C-Achard requested a review from deruyter92 August 24, 2026 13:13
C-Achard merged commit efb2432 into master Aug 24, 2026
18 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packaging Related to project packaging and release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL