lukecwik commented on a change in pull request #15587:
URL: https://github.com/apache/beam/pull/15587#discussion_r727577054



##########
File path: sdks/python/tox.ini
##########
@@ -249,3 +249,14 @@ commands =
   /bin/sh -c "pip freeze | grep -E '(pyarrow|numpy)'"
   # TODO(BEAM-12985): Running run_pytest.sh with -m causes us to run all the 
tests twice
   {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '-m uses_pyarrow'
+
+[testenv:py{36,37,38}-pandas-{11,12,13}]
+deps =
+  11: pandas>=1.1.0,<1.2.0
+  12: pandas>=1.2.0,<1.3.0
+  13: pandas>=1.3.0,<1.4.0
+commands =
+  # Log pandas and numpy version for debugging
+  /bin/sh -c "pip freeze | grep -E '(pandas|numpy)'"
+  # Run all DataFrame API unit tests
+  {toxinidir}/scripts/run_pytest.sh {envname} 'apache_beam/dataframe'

Review comment:
       Do we need to do something similar as 
https://github.com/apache/beam/pull/15693?

##########
File path: sdks/python/tox.ini
##########
@@ -249,3 +249,14 @@ commands =
   /bin/sh -c "pip freeze | grep -E '(pyarrow|numpy)'"
   # TODO(BEAM-12985): Running run_pytest.sh with -m causes us to run all the 
tests twice
   {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '-m uses_pyarrow'
+
+[testenv:py{36,37,38}-pandas-{11,12,13}]
+deps =
+  11: pandas>=1.1.0,<1.2.0
+  12: pandas>=1.2.0,<1.3.0
+  13: pandas>=1.3.0,<1.4.0
+commands =
+  # Log pandas and numpy version for debugging
+  /bin/sh -c "pip freeze | grep -E '(pandas|numpy)'"
+  # Run all DataFrame API unit tests
+  {toxinidir}/scripts/run_pytest.sh {envname} 'apache_beam/dataframe'

Review comment:
       Do we need to do something similar as 
https://github.com/apache/beam/pull/15693?
   
   If not, please resolve merge and then LGTM.

##########
File path: sdks/python/test-suites/tox/py38/build.gradle
##########
@@ -41,12 +41,12 @@ testPy38Cython.mustRunAfter testPython38, 
testPy38CloudCoverage
   preCommitPy38.dependsOn "testPy38pyarrow-$version"
 }
 
-toxTask "testPy38pandas-11", "py38-pandas-11"
-toxTask "testPy38pandas-12", "py38-pandas-12"
-toxTask "testPy38pandas-13", "py38-pandas-13"
-test.dependsOn "testPy38pandas-11"
-test.dependsOn "testPy38pandas-12"
-test.dependsOn "testPy38pandas-13"
+(1..3).each {minor_version ->

Review comment:
       nit: even though the old version had what seemed like duplicates, it was 
much more code search friendly.

##########
File path: sdks/python/test-suites/tox/py38/build.gradle
##########
@@ -41,12 +41,12 @@ testPy38Cython.mustRunAfter testPython38, 
testPy38CloudCoverage
   preCommitPy38.dependsOn "testPy38pyarrow-$version"
 }
 
-toxTask "testPy38pandas-11", "py38-pandas-11"
-toxTask "testPy38pandas-12", "py38-pandas-12"
-toxTask "testPy38pandas-13", "py38-pandas-13"
-test.dependsOn "testPy38pandas-11"
-test.dependsOn "testPy38pandas-12"
-test.dependsOn "testPy38pandas-13"
+(1..3).each {minor_version ->

Review comment:
       nit: even though the old version had what seemed like duplicate code, it 
was much more code search friendly.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to