Skip to content

Complete towncrier migration for versioning workflow#1522

Merged
nikhilwoodruff merged 1 commit intomainfrom
fix/towncrier-versioning-workflow
Mar 8, 2026
Merged

Complete towncrier migration for versioning workflow#1522
nikhilwoodruff merged 1 commit intomainfrom
fix/towncrier-versioning-workflow

Conversation

@nikhilwoodruff
Copy link
Collaborator

Summary

The Makefile, pyproject.toml, and bump_version.py were already migrated to towncrier (fragments in changelog.d/), but the versioning workflow still triggered on changelog_entry.yaml and used yaml-changelog. This meant PRs with changelog.d/ fragments (like #1521) never triggered version bumps or PyPI publishes.

Changes:

  • Trigger on changelog.d/** and pyproject.toml instead of changelog_entry.yaml
  • Use towncrier build instead of yaml-changelog in the Versioning job
  • Read version from pyproject.toml instead of setup.py in publish-git-tag.sh
  • Remove duplicate towncrier dep, drop yaml-changelog

Once merged, this should trigger a version bump and release covering all the pending changelog.d/ fragments (including the electricity/gas variables from #1521).

Test plan

  • Versioning job triggers when this PR merges (contains changelog.d/ changes via the workflow path trigger)
  • bump_version.py correctly infers minor bump from existing fragments
  • towncrier build consumes fragments and updates CHANGELOG.md
  • Publish job fires on the resulting "Update package version" commit

@nikhilwoodruff nikhilwoodruff force-pushed the fix/towncrier-versioning-workflow branch from 9f0cc93 to 4534263 Compare March 8, 2026 20:42
The Makefile, pyproject.toml, and bump_version.py were already migrated to
towncrier, but the versioning workflow still triggered on changelog_entry.yaml
and used yaml-changelog. This meant changelog.d/ fragments never triggered
version bumps or PyPI publishes.

- Trigger on changelog.d/** and pyproject.toml instead of changelog_entry.yaml
- Use towncrier build instead of yaml-changelog
- Read version from pyproject.toml instead of setup.py in publish-git-tag.sh
- Remove duplicate towncrier dep, drop yaml-changelog

Co-Authored-By: Claude <noreply@anthropic.com>
@nikhilwoodruff nikhilwoodruff merged commit c109ee0 into main Mar 8, 2026
3 checks passed
@nikhilwoodruff nikhilwoodruff deleted the fix/towncrier-versioning-workflow branch March 8, 2026 20:44
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.

1 participant