Skip to content

Comments

Migrate to pyproject.toml and towncrier fragments#437

Merged
MaxGhenis merged 4 commits intoPolicyEngine:masterfrom
MaxGhenis:migrate-to-towncrier
Feb 24, 2026
Merged

Migrate to pyproject.toml and towncrier fragments#437
MaxGhenis merged 4 commits intoPolicyEngine:masterfrom
MaxGhenis:migrate-to-towncrier

Conversation

@MaxGhenis
Copy link
Contributor

Summary

  • Migrates from setup.py to pyproject.toml (hatchling build backend)
  • Replaces changelog_entry.yaml with towncrier fragments (changelog.d/<branch>.<type>.md) to eliminate merge conflicts
  • Each PR gets its own uniquely-named fragment file instead of all editing the same file
  • Simplifies PR CI: lightweight check that a fragment exists (no Python install needed)
  • Push workflow uses towncrier for version bumping and changelog generation

Fragment format

echo "Description." > changelog.d/<branch-name>.<type>.md
# Types: added (minor), changed (patch), fixed (patch), removed (minor), breaking (major)

🤖 Generated with Claude Code

MaxGhenis and others added 3 commits February 23, 2026 12:55
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Feb 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.51%. Comparing base (58c2fca) to head (4ed827f).
⚠️ Report is 36 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #437      +/-   ##
==========================================
+ Coverage   81.14%   82.51%   +1.37%     
==========================================
  Files         197      202       +5     
  Lines       10228    10634     +406     
  Branches     1057     1069      +12     
==========================================
+ Hits         8299     8775     +476     
+ Misses       1640     1583      -57     
+ Partials      289      276      -13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MaxGhenis MaxGhenis merged commit 7c927f3 into PolicyEngine:master Feb 24, 2026
16 checks passed
MaxGhenis added a commit to MaxGhenis/policyengine-core that referenced this pull request Feb 24, 2026
Resolves merge conflict from PolicyEngine#437 towncrier migration. Applies Python 3.14
changes to pyproject.toml: drops 3.10, adds 3.14 classifier, requires >=3.11.
Adds towncrier fragments. Fixes empty Build changelog step in push.yaml.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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