diff --git a/sdks/python/container/base_image_requirements_manual.txt b/sdks/python/container/base_image_requirements_manual.txt index dd18da1c63f5..c64b7f36c03f 100644 --- a/sdks/python/container/base_image_requirements_manual.txt +++ b/sdks/python/container/base_image_requirements_manual.txt @@ -27,7 +27,7 @@ bs4 # Commonly used HTML processing tool. # Don't upgrade to Cython 3.x, until it's released, stable and we have consensus # to upgrade. Use 0.xx for now. -cython<1 +cython<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 d185c45f6191..cd23dc3378ea 100644 --- a/sdks/python/pyproject.toml +++ b/sdks/python/pyproject.toml @@ -28,7 +28,7 @@ requires = [ # Numpy headers "numpy>=1.14.3,<1.25", # Update setup.py as well. # having cython here will create wheels that are platform dependent. - "cython==0.29.36", + "cython==3.1.2", ]