Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python][Packaging] Support Python 3.12 and upload wheels to PyPI #37880

Closed
EwoutH opened this issue Sep 26, 2023 · 9 comments · Fixed by #37901
Closed

[Python][Packaging] Support Python 3.12 and upload wheels to PyPI #37880

EwoutH opened this issue Sep 26, 2023 · 9 comments · Fixed by #37901
Assignees
Milestone

Comments

@EwoutH
Copy link

EwoutH commented Sep 26, 2023

Describe the enhancement requested

Currently there are no pyarrow wheels for Python 3.12 on PyPI. Python 3.12 releases in a week (Monday 2023-10-02), so it would be great if wheels could be build and uploaded to PyPI, especially since many packages depend on it.

Component(s)

Python

@AlenkaF AlenkaF changed the title Support Python 3.12 and upload wheels to PyPI [Python][Packaging] Support Python 3.12 and upload wheels to PyPI Sep 27, 2023
@AlenkaF
Copy link
Member

AlenkaF commented Sep 27, 2023

@raulcd

@raulcd raulcd added this to the 14.0.0 milestone Sep 27, 2023
@raulcd raulcd added the Priority: Blocker Marks a blocker for the release label Sep 27, 2023
@raulcd
Copy link
Member

raulcd commented Sep 27, 2023

Hi @EwoutH , thanks for opening the issue. Due to the pyarrow wheels being currently an artifact of the release for Apache Arrow we can't release them independently and we have to do an Arrow release. We have a scheduled release (14.0.0) in the next weeks. Code freeze is expected for the 10th of October. Due to the current complexity on the release process and the Apache guidelines unfortunately they won't be available just yet but I'll work on creating the pyarrow wheels for Python 3.12 and will add it to the 14.0.0 release.
As soon as they are available if necessary you'll be able to test with our nightly development wheels, those are not official releases but can help development and testing: https://arrow.apache.org/docs/dev/developers/python.html#installing-nightly-packages
cc ~ @jorisvandenbossche

@jsherman256
Copy link

FYI: this impacts docker images based on python:3 if they try to install pyarrow or packages dependent on pyarrow. This is because the python:3 image now refers to python 3.12, but pyarrow cannot be built inside that image by default, since it's missing cmake:

#7 381.6   Building wheel for pyarrow (pyproject.toml): started
#7 382.1   Building wheel for pyarrow (pyproject.toml): finished with status 'error'
#7 382.1   error: subprocess-exited-with-error
#7 382.1   
#7 382.1   × Building wheel for pyarrow (pyproject.toml) did not run successfully.
...
#7 382.1       error: command 'cmake' failed: No such file or directory
#7 382.1       [end of output]
#7 382.1   
#7 382.1   note: This error originates from a subprocess, and is likely not a problem with pip.
#7 382.1   ERROR: Failed building wheel for pyarrow

Just leaving this here in case it helps someone else debugging why their python container suddenly wont build anymore. I worked around this by moving from python:3 to python:3.11.6

terencehonles added a commit to terencehonles/arrow that referenced this issue Oct 3, 2023
raulcd added a commit that referenced this issue Oct 11, 2023
### Rationale for this change

Python 3.12 will be released in the next couple of weeks. We should add the wheels for pyarrow on our 14.0.0 release.

### What changes are included in this PR?

This PR adds jobs to build pyarrow wheels for Python 3.12.

### Are these changes tested?

They will be tested via archery tasks

### Are there any user-facing changes?

No but users will be able to use pyarrow with Python 3.12

* Closes: #37880

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
@raulcd
Copy link
Member

raulcd commented Oct 11, 2023

I have merged the wheels support for 3.12.
Those will be available as nightly development in our next daily builds.
The PyPI availability will be ready as soon as we release Arrow 14.0.0 which we started today with preparations but takes some time (~2 weeks) while we stabilize some nightly failures + verify and vote the release.

raulcd added a commit that referenced this issue Oct 11, 2023
### Rationale for this change

Python 3.12 will be released in the next couple of weeks. We should add the wheels for pyarrow on our 14.0.0 release.

### What changes are included in this PR?

This PR adds jobs to build pyarrow wheels for Python 3.12.

### Are these changes tested?

They will be tested via archery tasks

### Are there any user-facing changes?

No but users will be able to use pyarrow with Python 3.12

* Closes: #37880

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
llama90 pushed a commit to llama90/arrow that referenced this issue Oct 12, 2023
…pache#37901)

### Rationale for this change

Python 3.12 will be released in the next couple of weeks. We should add the wheels for pyarrow on our 14.0.0 release.

### What changes are included in this PR?

This PR adds jobs to build pyarrow wheels for Python 3.12.

### Are these changes tested?

They will be tested via archery tasks

### Are there any user-facing changes?

No but users will be able to use pyarrow with Python 3.12

* Closes: apache#37880

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
JerAguilon pushed a commit to JerAguilon/arrow that referenced this issue Oct 23, 2023
…pache#37901)

### Rationale for this change

Python 3.12 will be released in the next couple of weeks. We should add the wheels for pyarrow on our 14.0.0 release.

### What changes are included in this PR?

This PR adds jobs to build pyarrow wheels for Python 3.12.

### Are these changes tested?

They will be tested via archery tasks

### Are there any user-facing changes?

No but users will be able to use pyarrow with Python 3.12

* Closes: apache#37880

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
bl-young referenced this issue in USEPA/flowsa Oct 27, 2023
@arjonv
Copy link

arjonv commented Nov 1, 2023

@raulcd any indication on when PyPi availability will be ready

@raulcd
Copy link
Member

raulcd commented Nov 1, 2023

Arrow 14.0.0 has just been published on PyPI with wheels for Python 3.12.

@RubTalha
Copy link

RubTalha commented Nov 8, 2023

https://stackoverflow.com/questions/77318492/building-wheel-for-pyarrow-pyproject-toml-did-not-run-successfully/77318636#77318636

loicalleyne pushed a commit to loicalleyne/arrow that referenced this issue Nov 13, 2023
…pache#37901)

### Rationale for this change

Python 3.12 will be released in the next couple of weeks. We should add the wheels for pyarrow on our 14.0.0 release.

### What changes are included in this PR?

This PR adds jobs to build pyarrow wheels for Python 3.12.

### Are these changes tested?

They will be tested via archery tasks

### Are there any user-facing changes?

No but users will be able to use pyarrow with Python 3.12

* Closes: apache#37880

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
@SeaOtocinclus
Copy link

Any update on this?

@jorisvandenbossche
Copy link
Member

Quoting the comment just above:

Arrow 14.0.0 has just been published on PyPI with wheels for Python 3.12.

@apache apache locked as resolved and limited conversation to collaborators Jan 18, 2024
dgreiss pushed a commit to dgreiss/arrow that referenced this issue Feb 19, 2024
…pache#37901)

### Rationale for this change

Python 3.12 will be released in the next couple of weeks. We should add the wheels for pyarrow on our 14.0.0 release.

### What changes are included in this PR?

This PR adds jobs to build pyarrow wheels for Python 3.12.

### Are these changes tested?

They will be tested via archery tasks

### Are there any user-facing changes?

No but users will be able to use pyarrow with Python 3.12

* Closes: apache#37880

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.