Skip to content

Commit a8fb31b

Browse files
authored
Merge pull request #9 from AccelerationConsortium/copilot/fix-pypi-version-cleanup
Fix PyPI version suffixes when creating GitHub releases
2 parents 6ad52b6 + 106402e commit a8fb31b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ jobs:
3333
wheel-distribution: ${{ steps.wheel-distribution.outputs.path }}
3434
steps:
3535
- uses: actions/checkout@v4
36-
with: {fetch-depth: 0} # deep clone for setuptools-scm
36+
with:
37+
fetch-depth: 0 # deep clone for setuptools-scm
38+
ref: ${{ github.ref }} # ensure tags are checked out correctly
3739
- uses: actions/setup-python@v5
3840
id: setup-python
3941
with: {python-version: "3.12"}
4042
- name: Run static analysis and format checkers
4143
continue-on-error: true
4244
run: pipx run pre-commit run --all-files --show-diff-on-failure
45+
- name: Reset any changes from linting
46+
run: git reset --hard HEAD
4347
- name: Build package distribution files
4448
run: >-
4549
pipx run --python '${{ steps.setup-python.outputs.python-path }}'

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [Unreleased]
44

55
### Fixed
6+
- 2025-11-19: Fixed PyPI version generation to produce clean version numbers (e.g., 0.1.3) instead of post/dev suffixes (e.g., 0.1.3.post1.dev0) when creating releases via GitHub UI by: (1) ensuring the CI workflow checks out the exact tag commit, and (2) resetting any uncommitted changes from linting before building to avoid setuptools_scm detecting a dirty repository.
67
- 2025-11-19: Fixed ImportError by removing non-existent flow imports (custom_movements_flow, test_sequence_flow, duty_cycle_monitoring_flow, scheduled_duty_cycle_check) from src/progressive_automations_python/__init__.py. These flows only exist in scripts/prefect_flows.py, not in the package module. (Fixes job 55773363544)
78
- 2025-11-19: tests: Add tests/conftest.py to mock RPi.GPIO in CI so pytest can run in non-Raspberry Pi environments. (Fixes job 55770449647)
89

0 commit comments

Comments
 (0)