Skip to content

Conversation

@MaxGhenis
Copy link
Contributor

Now that microdf has been updated to support Python 3.13, this PR upgrades policyengine-us-data to support Python 3.13.

Changes

  • Add Python 3.13 to classifiers in pyproject.toml
  • Update GitHub Actions workflows to test on Python 3.13
  • Update Black target-version to include py313

Fixes #385

- Add Python 3.13 to classifiers in pyproject.toml
- Update GitHub Actions to test on Python 3.13
- Update Black target-version to include py313

Fixes PolicyEngine#385
@MaxGhenis MaxGhenis force-pushed the upgrade-python-3.13 branch from 3459ada to 6be67ef Compare July 22, 2025 21:45
@MaxGhenis MaxGhenis marked this pull request as draft July 22, 2025 21:52
@MaxGhenis
Copy link
Contributor Author

The CI is failing on Python 3.13 due to dependency issues. Based on my investigation:

  1. policyengine-us requires policyengine-us-data>=1.17.0
  2. The latest policyengine-us-data version available for Python 3.13 on PyPI is only 1.15.0
  3. This causes pip to fall back to older versions with incompatible dependencies

The fix requires ensuring all versions are published with Python 3.13 wheels to PyPI. This PR's changes look correct, but the CI will fail until the dependencies are sorted out.

- pandas: >=2.3.0 -> >=2.3.1
- scipy: <1.13 -> >=1.15.3 (removed upper bound for Python 3.13 compatibility)
- statsmodels: >=0.14.0 -> >=0.14.5

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@MaxGhenis MaxGhenis closed this Jul 26, 2025
@baogorek
Copy link
Collaborator

We still need this afterall, but I wonder if it would just be better to start from scratch given the age of the PR.

@MaxGhenis
Copy link
Contributor Author

We added 3.13 in a separate PR

@MaxGhenis MaxGhenis deleted the upgrade-python-3.13 branch January 25, 2026 18:25
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.

Upgrade to Python 3.13

2 participants