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

[Task]: Support Python 3.12 #29149

Closed
1 of 16 tasks
AnandInguva opened this issue Oct 26, 2023 · 4 comments · Fixed by #30828
Closed
1 of 16 tasks

[Task]: Support Python 3.12 #29149

AnandInguva opened this issue Oct 26, 2023 · 4 comments · Fixed by #30828

Comments

@AnandInguva
Copy link
Contributor

What needs to happen?

Add support for Python 3.12

Issue Priority

Priority: 2 (default / most normal work should be filed as P2)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
VeronicaWasson added a commit to VeronicaWasson/python-docs-samples that referenced this issue Jan 5, 2024
davidcavazos pushed a commit to GoogleCloudPlatform/python-docs-samples that referenced this issue Jan 14, 2024
* docs(samples): Add Dataflow to Pub/Sub snippet

Adds a snippet that shows how to write messages to Pub/Sub from
Dataflow.

* Fix region tag

* Skip Python 3.12 test

see apache/beam#29149

* Fix copyright date

* Improve IT by reading messages from Pub/Sub

* Incorporate review feedback

* Fix testfor 3.8

* Fix linter error
@potiuk
Copy link
Member

potiuk commented Mar 20, 2024

Hey. Friendly question here.

After Datastax fixed their libev support for cassandra-driver (testing it in apache/airflow#38314) , Papermill and Apache Beam are two last community Airflow Providers that have no Python 3.12 support.

We are just about to release Airflow 2.9.0 where Python 3.12 support is enabled and also default airflow image is going to by Python 3.12, so Apache Beam will be uninstallable there and unusable - due to conflicting dependencies that have no Python 3.12 support (it will still work on Python 3.8 - 3.11).

I looked at the 2.55.0rc3 just uploaded - and it does not seem to come with Python 3.12 support, so I'd love to know if Python 3.12 support is planned any time soon.

@liferoad
Copy link
Collaborator

This will be worked on in Q2. Thanks.

@tvalentyn
Copy link
Contributor

tvalentyn commented May 9, 2024

TODO:

Update all GHA tests definitions, see:

grep -rn . --include="*.yml" -e "python_version:"
grep -rn . --include="*.yml" -e "python_version: \['3.8','3.9','3.10','3.11'\]" 
./.github/workflows/beam_PreCommit_Python_Transforms.yml:67:        python_version: ['3.8','3.9','3.10','3.11']
./.github/workflows/beam_PostCommit_Python_ValidatesContainer_Dataflow.yml:68:        python_version: ['3.8','3.9','3.10','3.11']
./.github/workflows/beam_PreCommit_Python_Examples.yml:67:        python_version: ['3.8','3.9','3.10','3.11']
./.github/workflows/beam_PostCommit_Python_Examples_Direct.yml:66:        python_version: ['3.8','3.9','3.10','3.11']
./.github/workflows/beam_PostCommit_Python_ValidatesContainer_Dataflow_With_RC.yml:66:        python_version: ['3.8','3.9','3.10','3.11']
./.github/workflows/beam_Python_ValidatesContainer_Dataflow_ARM.yml:57:        python_version: ['3.8','3.9','3.10','3.11']
./.github/workflows/beam_PreCommit_Python.yml:67:        python_version: ['3.8','3.9','3.10','3.11']
./.github/workflows/beam_PreCommit_Python_Dataframes.yml:67:        python_version: ['3.8','3.9','3.10','3.11']
./.github/workflows/beam_PreCommit_Python_Runners.yml:67:        python_version: ['3.8','3.9','3.10','3.11']
./.github/workflows/beam_PreCommit_PythonDocker.yml:67:        python_version: ['3.8','3.9','3.10','3.11']

@potiuk
Copy link
Member

potiuk commented May 9, 2024

Looking forward to enabling apache-beam provider for Airflow to 3.12 finally !

potiuk added a commit to potiuk/airflow that referenced this issue Sep 4, 2024
After apache/beam#29149 has been fixed
and Apache Beam 2.59.0 released we can finally unblock Apache Beam
provider for Python 3.12 - mainly because requests is no longer
limited so that Apache Beam does not conflict with few other
dependencies.
potiuk added a commit to potiuk/airflow that referenced this issue Sep 13, 2024
After apache/beam#29149 has been fixed
and Apache Beam 2.59.0 released we can finally unblock Apache Beam
provider for Python 3.12 - mainly because requests is no longer
limited so that Apache Beam does not conflict with few other
dependencies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants