Skip to content

Conversation

@policyengine
Copy link

@policyengine policyengine bot commented Dec 8, 2025

Summary

Fixes #32

The git tagging was broken for several reasons:

  1. Missing write permissions: The test job in push.yaml had contents: "read" but needs contents: "write" to push tags
  2. Silent failures: publish-git-tag.sh was called with || true, hiding all errors
  3. Deprecated API: fetch_version.py used pkg_resources.get_distribution() which is deprecated and may fail depending on how the package is installed
  4. Wrong URLs: The changelog links pointed to policyengine-us-data instead of policyengine-uk-data

Changes

  • Changed contents permission from "read" to "write" in push.yaml
  • Removed || true from the publish-git-tag.sh call so errors are visible
  • Rewrote fetch_version.py to parse version directly from pyproject.toml
  • Fixed all 82 changelog comparison URLs to point to the correct repository

Note

After merging, you may want to manually create the historical tags (1.0.0 through 1.29.2) if the compare links are important to you. Future versions will be tagged automatically.

- Change contents permission from 'read' to 'write' to allow pushing tags
- Remove '|| true' from publish-git-tag.sh call to surface errors
- Replace deprecated pkg_resources with direct pyproject.toml parsing
- Fix changelog URLs to point to policyengine-uk-data (not policyengine-us-data)
@policyengine policyengine bot mentioned this pull request Dec 8, 2025
@nwoodruff-co nwoodruff-co merged commit 216266b into main Dec 9, 2025
2 of 3 checks passed
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.

Fix versioning action

3 participants