Skip to content

Migrate from setup.py to pyproject.toml#3319

Merged
MaxGhenis merged 2 commits intomasterfrom
migrate-to-pyproject
Mar 6, 2026
Merged

Migrate from setup.py to pyproject.toml#3319
MaxGhenis merged 2 commits intomasterfrom
migrate-to-pyproject

Conversation

@MaxGhenis
Copy link
Collaborator

Summary

  • Replaces setup.py with pyproject.toml using hatchling build backend, consistent with other PolicyEngine repositories
  • All dependencies, entry points, classifiers, and metadata preserved exactly
  • Updated Makefile install target (removed --config-settings editable_mode=compat) and changelog target (bump-version now references pyproject.toml)
  • Added ruff>=0.9.0 in dev dependencies (no black)

Test plan

  • CI passes (install + tests work with pyproject.toml)
  • pip install -e ".[dev]" works locally
  • policyengine-api-setup entry point still available after install
  • make changelog correctly bumps version in pyproject.toml

🤖 Generated with Claude Code

MaxGhenis and others added 2 commits March 6, 2026 08:45
Modernize build configuration to use pyproject.toml, consistent with
other PolicyEngine repositories. All dependencies, entry points, and
metadata preserved. Updated Makefile references accordingly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Hatchling requires explicit package listing when there is no
__init__.py in the package directory.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Mar 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.20%. Comparing base (f3a7d44) to head (50f2347).
⚠️ Report is 19 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3319   +/-   ##
=======================================
  Coverage   72.20%   72.20%           
=======================================
  Files          56       56           
  Lines        2425     2425           
  Branches      423      423           
=======================================
  Hits         1751     1751           
  Misses        595      595           
  Partials       79       79           

☔ 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 3638b62 into master Mar 6, 2026
7 checks passed
@MaxGhenis MaxGhenis deleted the migrate-to-pyproject branch March 6, 2026 14:02
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