This is an automated email from the ASF dual-hosted git repository.

tvalentyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 4865221bff0 Pin pandas to <=1.5.3 for Interactive (#26377)
4865221bff0 is described below

commit 4865221bff07d8e829d19bdfb799f9408ee4d64d
Author: liferoad <huxiangq...@gmail.com>
AuthorDate: Fri Apr 21 11:26:27 2023 -0400

    Pin pandas to <=1.5.3 for Interactive (#26377)
    
    Co-authored-by: xqhu <x...@google.com>
---
 sdks/python/setup.py | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/sdks/python/setup.py b/sdks/python/setup.py
index 3112bc336e8..443a954c643 100644
--- a/sdks/python/setup.py
+++ b/sdks/python/setup.py
@@ -143,6 +143,14 @@ if sys.platform == 'win32' and sys.maxsize <= 2**32:
 else:
   pyarrow_dependency = 'pyarrow>=3.0.0,<12.0.0'
 
+# Exclude pandas<=1.4.2 since it doesn't work with numpy 1.24.x.
+# Exclude 1.5.0 and 1.5.1 because of
+# https://github.com/pandas-dev/pandas/issues/45725
+dataframe_dependency = [
+    'pandas<1.6.0;python_version=="3.7"',
+    'pandas>=1.4.3,!=1.5.0,!=1.5.1,<1.6;python_version>="3.8"',
+]
+
 
 # We must generate protos after setup_requires are installed.
 def generate_protos_first():
@@ -327,7 +335,7 @@ if __name__ == '__main__':
             # https://github.com/jupyter/jupyter_client/issues/637
             'jupyter-client>=6.1.11,!=6.1.13,<8.1.1',
             'timeloop>=1.0.2,<2',
-          ],
+          ] + dataframe_dependency,
           'interactive_test': [
             # notebok utils
             'nbformat>=5.0.5,<6',
@@ -344,13 +352,7 @@ if __name__ == '__main__':
             'azure-core>=1.7.0,<2',
             'azure-identity>=1.12.0,<2',
           ],
-        # Exclude pandas<=1.4.2 since it doesn't work with numpy 1.24.x.
-        # Exclude 1.5.0 and 1.5.1 because of
-        # https://github.com/pandas-dev/pandas/issues/45725
-          'dataframe': [
-            'pandas<1.6.0;python_version=="3.7"',
-            'pandas>=1.4.3,!=1.5.0,!=1.5.1,<1.6;python_version>="3.8"',
-          ],
+          'dataframe': dataframe_dependency,
           'dask': [
             'dask >= 2022.6',
             'distributed >= 2022.6',

Reply via email to