Restore modern Python compatibility and CI - #235
Merged
Merged
Conversation
…row order - test.yml: two-leg matrix per the CI plan (Python 3.10 + minimum deps, Python 3.12 + latest deps) with a job timeout; drop Python 3.13, which has no NumPy 1.x binaries - setup.py: raise dependency floors to the oldest versions installable on Python 3.10 (numpy 1.21, scipy 1.7, statsmodels 0.13), cap numpy < 2 until Pandana supports the NumPy 2 ABI, drop the 3.13 classifier - requirements-min.txt: pip constraints used by the minimum-deps CI job - transition.py: group merge results by join key explicitly so _update_linked_table row order (and the sequential indexes assigned to new rows) match pre-2.2 pandas on all supported versions; restore the original test expectations in test_transition.py
smmaurer
approved these changes
Aug 17, 2026
This was referenced Aug 20, 2026
Closed
This was referenced Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NOTE: support for Python 3.13/14, Pandas 3, and NumPy 2 will be handled in follow-up after Pandana is updated.
Dependency compatibility policy
We propose setting a floor for dependencies based on the official Python release cycle. Python 3.9 is now EOL, so the next
urbansimrelease will expect Python 3.10+ and associated minimum versions of Pandas, NumPy, etc.Existing contributions
This supersedes PR #231 and fixes #232. The
np.intchanges from #231 are retained with credit to @msoltadeo.It also incorporates the Pandas
items()update and obsolete NumPy import cleanup from the existingfix/update_pandas_numpy_depreciationsbranch, with credit to @jdcaicedo251.Refs #234.
Validation