Skip to content

Remove setuptools_git build dependency causing invalid version on shallow clones - #139

Closed
joshanne with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-python-package-build
Closed

Remove setuptools_git build dependency causing invalid version on shallow clones#139
joshanne with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-python-package-build

Conversation

Copilot AI commented Aug 6, 2026

Copy link
Copy Markdown

The CI build fails because setuptools_git (listed in pyproject.toml's build-system.requires) invokes vcs_versioning to derive a version from git tags. On GitHub Actions' shallow clone, this produces 0.0.post1.post1+gc6054028c — an invalid PEP 440 version — causing pip to abort before the build even starts.

Changes

  • pyproject.toml: Drop setuptools_git>=1.0 from build-system.requires. The package already defines its version statically in dronecan_gui_tool/version.py (__version__ = 1, 2, 28), so this dependency was never needed.
# Before
requires = ["setuptools>=42", "setuptools_git>=1.0"]

# After
requires = ["setuptools>=42"]

Co-authored-by: joshanne <12959316+joshanne@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job for Python package build Remove setuptools_git build dependency causing invalid version on shallow clones Aug 6, 2026
Copilot AI requested a review from joshanne August 6, 2026 23:31
@joshanne joshanne closed this Aug 7, 2026
@joshanne
joshanne deleted the copilot/fix-python-package-build branch August 7, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants