Add support for Python 3.13#894
Merged
Merged
Conversation
- Bump requires-python from >=3.9 to >=3.12 (arviz requires >=3.12) - Update classifiers to 3.12/3.13 - Bump dependency minimums for 3.13 wheel availability - Replace np.in1d with np.isin (removed in NumPy 2.x) - Fix deprecated pandas freq aliases (M -> ME) - Fix chained assignment for pandas Copy-on-Write - Fix invalid escape sequence in docstring - Update CI actions to v4/v5 and test matrix to [3.12, 3.13] - Update tox envlist to py312, py313 Closes uber#891 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
@edwinnglabs Could you take a look at this? |
edwinnglabs
approved these changes
May 7, 2026
Collaborator
edwinnglabs
left a comment
There was a problem hiding this comment.
thank you so much for the change @sluo1250
Contributor
Author
|
@edwinnglabs Appreciate your approval to merge. Any plan to release it on Pypi soon? |
Collaborator
we can try release a version a week from now. |
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
Adds official Python 3.13 support and bumps the minimum Python version to 3.12 (driven by
arvizwhich already requires>=3.12).Closes #891
Changes
Config & Metadata
pyproject.toml—requires-pythonbumped>=3.9→>=3.12, classifiers updated to 3.12/3.13, black target-version updated, dependency minimums bumped for 3.13 wheel availabilityrequirements.txt— synced minimum versionstox.ini— envlistpy38→py312, py313CI Workflows
test.yaml— actions/checkout v4, setup-python v5, test matrix expanded to[3.12, 3.13]pypi-deploy.yaml— actions/checkout v4, setup-python v5Compatibility Fixes
orbit/template/ktr.py—np.in1d→np.isin(removed in NumPy 2.x)orbit/diagnostics/metrics.py— fixed invalid escape sequence in docstring (SyntaxWarning in Python 3.12+)tests/orbit/models/test_dlt.py— chained assignment →.loc[](pandas Copy-on-Write)tests/orbit/models/test_ktr.py—freq="3M"→"3ME"(deprecated pandas offset alias)tests/orbit/models/test_ktrlite.py—freq="3M"/"6M"→"3ME"/"6ME"Tests
All 350 tests pass on Python 3.13.7 with 82% code coverage.
Dependencies
Minimum versions bumped for 3.13 compatibility:
>=1.18>=2.1.0>=1.4.1>=1.14.1>=1.0.3>=2.2.3>=3.3.2>=3.9.2>=0.11.1>=0.14.3>=1.11.0>=2.5.0>=0.10.0>=0.13.2