Skip to content

Fix release deploy job for pyproject/setuptools-scm packaging#83

Merged
PolarBean merged 2 commits into
mainfrom
copilot/fix-deploy-github-actions-job
Jun 8, 2026
Merged

Fix release deploy job for pyproject/setuptools-scm packaging#83
PolarBean merged 2 commits into
mainfrom
copilot/fix-deploy-github-actions-job

Conversation

Copilot AI commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

The deploy GitHub Actions job failed in the release workflow because it still attempted to edit setup.py, which no longer exists in this pyproject-based package. This PR updates version injection to the setuptools-scm path used by the current build system.

  • Workflow fix: replace obsolete setup.py mutation

    • Removed the tag extraction + sed ... setup.py step.
    • Added a single step that exports the release version via SETUPTOOLS_SCM_PRETEND_VERSION from GITHUB_REF_NAME (with optional v prefix stripped).
  • Build path alignment with current packaging

    • Keeps python -m build and publish steps unchanged.
    • Ensures release builds resolve the intended version without relying on legacy setup.py mechanics.
- name: Set package version from tag
  run: echo "SETUPTOOLS_SCM_PRETEND_VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_ENV"

Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'deploy' Fix release deploy job for pyproject/setuptools-scm packaging Jun 8, 2026
Copilot AI requested a review from PolarBean June 8, 2026 17:17
@PolarBean PolarBean marked this pull request as ready for review June 8, 2026 17:36
@PolarBean PolarBean merged commit e45c12d into main Jun 8, 2026
2 checks passed
@PolarBean PolarBean deleted the copilot/fix-deploy-github-actions-job branch June 8, 2026 17:36
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