Add support for Python 3.15 - #1337
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1337 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 10 10
Lines 2315 2315
Branches 358 358
=========================================
Hits 2315 2315 ☔ View full report in Codecov by Harness. |
There was a problem hiding this comment.
Pull request overview
This PR updates Arrow’s configuration to recognize and test against Python 3.15, aligning local tooling and CI with the upcoming Python 3.15 release.
Changes:
- Add
py315totoxenv list and GitHub Actions tox-gh-actions version mapping. - Advertise Python 3.15 support via PyPI trove classifier.
- Extend Makefile build targets and CI matrix to include Python 3.15, including prerelease support in setup-python.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tox.ini | Adds py315 to tox envlist and maps 3.15 to py315 for tox-gh-actions. |
| pyproject.toml | Adds the Python 3.15 trove classifier. |
| Makefile | Adds build315 and includes it in the shared build target group. |
| .github/workflows/continuous_integration.yml | Adds Python 3.15 to the CI matrix and enables prerelease installs for setup-python. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| allow-prereleases: true |
There was a problem hiding this comment.
This is unnecessary:
If allow-prereleases is set to true, the action will allow falling back to pre-release versions of Python when a matching GA version of Python is not available.
https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#allow-pre-releases
So once a GA is out (as it is for all the others), that will be used and not a pre-release.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
I think the PyPy on Windows failure was a bug in pip, which should be fixed if you delete the For example, it passed on my fork, because it didn't have the old pip cache: https://github.com/hugovk/arrow/actions/runs/31363245930/job/93376216169 |
Pull Request Checklist
Thank you for taking the time to improve Arrow! Before submitting your pull request, please check all appropriate boxes:
locally(runtoxormake testto find out!) -- not run locally but confirmed on CI.tox -e lintormake lintto find out!).masterbranch.If you have any questions about your code changes or any of the points above, please submit your questions along with the pull request and we will try our best to help!
Description of Changes
The Python 3.15 release candidate is out. 🚀
The 3.15 release manager (👋 hi, that's me!) issued a call to action: