GH-43518: [Python][Packaging][CI] Drop Python 3.8 support#43970
GH-43518: [Python][Packaging][CI] Drop Python 3.8 support#43970jorisvandenbossche merged 21 commits intoapache:mainfrom
Conversation
.github/workflows/go.yml
Outdated
There was a problem hiding this comment.
Can we bump this directly to something like 3.12? As far as I understand, this python version is only used for running archery, so it shouldn't matter much which version we use?
There was a problem hiding this comment.
I agree, I had the same thought, I will update accordingly. Another one that I was thinking is whether we want to change the default .env to be bumped too to something like 3.12
There was a problem hiding this comment.
How about using the latest Python by 3.x for this? If we can use 3.x for this, we don't need to bump version periodically.
There was a problem hiding this comment.
If we use 3.x, though, the build may fail because of missing dependencies or incompatibilities on the next version bump.
|
Would it make sense to drop most of the pytz support in favor of zoneinfo available starting 3.9? |
This can be done on a separate issue as an enhancement |
|
@jorisvandenbossche we are still testing with Pandas 1.0 which supports only up to Python 3.8. Should I remove that job from here: https://github.com/apache/arrow/blob/main/.github/workflows/python.yml#L81 |
|
@github-actions crossbow submit -g python |
|
Revision: 7f7ed83fc6ec52ad05d57dc468cce6c0769303cd Submitted crossbow builds: ursacomputing/crossbow @ actions-b0516a9194 |
|
@github-actions crossbow submit test-ubuntu-20.04-python-3 |
|
Revision: 6417ba800b634b63cbd5e55fd43e77ca0ccb2343 Submitted crossbow builds: ursacomputing/crossbow @ actions-bea836645b
|
|
@github-actions crossbow submit test-conda-python--pandas- |
|
Revision: cceb42c113c4dd4e1152591a92fa1b694f1d6e5a Submitted crossbow builds: ursacomputing/crossbow @ actions-92763bccf5 |
|
@github-actions crossbow submit test-cuda-* |
|
@github-actions crossbow -g wheel |
|
Revision: e38f0ecf9cd21c112b5fc0206070425608f1d35b Submitted crossbow builds: ursacomputing/crossbow @ actions-cea603844a
|
|
|
@github-actions crossbow submit -g wheel |
|
Revision: e38f0ecf9cd21c112b5fc0206070425608f1d35b Submitted crossbow builds: ursacomputing/crossbow @ actions-5c11026f84 |
|
@github-actions crossbow submit test-cuda-* |
|
Revision: f1d50d873a81461187d4bf8cd5a3b05842737762 Submitted crossbow builds: ursacomputing/crossbow @ actions-ddf92023c8
|
|
@github-actions crossbow submit python-sdist |
|
Revision: af0c1930396c91adee515ea7d12affe24db249b5 Submitted crossbow builds: ursacomputing/crossbow @ actions-fe84520036
|
|
Revision: deb83bf Submitted crossbow builds: ursacomputing/crossbow @ actions-b2844258b5 |
|
@github-actions crossbow submit -g cuda |
|
@github-actions crossbow submit test-ubuntu-*-python-3 |
|
@github-actions crossbow submit test-conda-python-3.9-pandas-* |
|
Revision: 336b9bb Submitted crossbow builds: ursacomputing/crossbow @ actions-bb81803d22
|
|
Revision: 336b9bb Submitted crossbow builds: ursacomputing/crossbow @ actions-579ae18356
|
|
Revision: 336b9bb Submitted crossbow builds: ursacomputing/crossbow @ actions-074cb676c3
|
|
@github-actions crossbow submit -g cuda |
|
Revision: 4f1cd9c Submitted crossbow builds: ursacomputing/crossbow @ actions-9c860297b0
|
|
@github-actions crossbow submit -g wheel |
|
Revision: 4f1cd9c Submitted crossbow builds: ursacomputing/crossbow @ actions-5f28e2f3a2 |
pitrou
left a comment
There was a problem hiding this comment.
+1, thank you @raulcd . @jorisvandenbossche can you validate the Pandas / Numpy changes?
jorisvandenbossche
left a comment
There was a problem hiding this comment.
Looks good, thanks!
|
I opened the follow-up issue to properly bump the numpy and pandas versions: #44131 |
|
The wheel-windows-cp313-amd64 failure is temporary because of a missing nightly wheel from the pandas side, which should be fixed by tomorrow. But so ignoring that for now, and merging this. |
|
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit aa6ab95. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 13 possible false positives for unstable benchmarks that are known to sometimes produce them. |
Rationale for this change
Python 3.8 is End of Support on 31st October 2023. We can drop support for pyarrow 18.0.0.
See: https://endoflife.date/python
What changes are included in this PR?
Remove support for 3.8. Update minimum required Python version and update some CI jobs to use the minimum Python supported version
Are these changes tested?
They will be tested via Archery
Are there any user-facing changes?
Yes in terms of not supporting older versions of Python. This will be a breaking change for some users but not for the API itself