From ab460c1f5ba8c542413d76da4e4e1e00f2352f2d Mon Sep 17 00:00:00 2001 From: Valentyn Tymofieiev Date: Wed, 15 May 2024 17:20:59 -0700 Subject: [PATCH] Support Python 3.12 in Beam. --- CHANGES.md | 5 ++--- sdks/python/apache_beam/__init__.py | 2 +- sdks/python/setup.py | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 6947c0d5e7e5..a81ff3c28121 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -57,9 +57,8 @@ ## Highlights -* Added FlinkRunner for Flink 1.18. ([#30789](https://github.com/apache/beam/issues/30789)) -* New highly anticipated feature X added to Python SDK ([#X](https://github.com/apache/beam/issues/X)). -* New highly anticipated feature Y added to Java SDK ([#Y](https://github.com/apache/beam/issues/Y)). +* Apache Beam adds Python 3.12 support ([#29149](https://github.com/apache/beam/issues/29149)). +* Added FlinkRunner for Flink 1.18 ([#30789](https://github.com/apache/beam/issues/30789)). ## I/Os diff --git a/sdks/python/apache_beam/__init__.py b/sdks/python/apache_beam/__init__.py index 85b518718528..27c2b293fbd0 100644 --- a/sdks/python/apache_beam/__init__.py +++ b/sdks/python/apache_beam/__init__.py @@ -70,7 +70,7 @@ import warnings if sys.version_info.major == 3: - if sys.version_info.minor <= 6 or sys.version_info.minor >= 12: + if sys.version_info.minor <= 7 or sys.version_info.minor >= 13: warnings.warn( 'This version of Apache Beam has not been sufficiently tested on ' 'Python %s.%s. You may encounter bugs or missing features.' % diff --git a/sdks/python/setup.py b/sdks/python/setup.py index a671a5d5066d..4a7b57db917b 100644 --- a/sdks/python/setup.py +++ b/sdks/python/setup.py @@ -526,6 +526,7 @@ def get_portability_package_data(): 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', # When updating version classifiers, also update version warnings # above and in apache_beam/__init__.py. 'Topic :: Software Development :: Libraries',