diff --git a/sdks/python/container/base_image_requirements_manual.txt b/sdks/python/container/base_image_requirements_manual.txt index bef89e9fd31e..3c26cdb0c0c3 100644 --- a/sdks/python/container/base_image_requirements_manual.txt +++ b/sdks/python/container/base_image_requirements_manual.txt @@ -25,7 +25,7 @@ # Consider constraining requirements of Beam itself when necessary. bs4 # Commonly used HTML processing tool. -cython>=3,<4 +cython>=3.2.5,<4 # future is no longer a Beam dependency, but is an implicit dependency in # some versions of libraries that launch Beam pipelines, like tensorflow-transform. # Leaving 'future' in our containers for now prevent breaking tft users. diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml index 97a9fe6141ea..2ded2f4bb105 100644 --- a/sdks/python/pyproject.toml +++ b/sdks/python/pyproject.toml @@ -29,7 +29,7 @@ requires = [ # Numpy headers "numpy>=1.14.3,<2.3.0", # Update setup.py as well. # having cython here will create wheels that are platform dependent. - "cython>=3.0,<4", + "cython>=3.2.5,<4", ## deps for generating external transform wrappers: # also update PyYaml bounds in sdks:python:generateExternalTransformsConfig 'pyyaml>=3.12,<7.0.0',