Skip to content

Commit

Permalink
[BEAM-12423] Upgrade pyarrow to support version 4.0.0 too
Browse files Browse the repository at this point in the history
  • Loading branch information
iemejia committed May 31, 2021
1 parent d8c5da8 commit 20c48bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdks/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def get_version():
'pymongo>=3.8.0,<4.0.0',
'oauth2client>=2.0.1,<5',
'protobuf>=3.12.2,<4',
'pyarrow>=0.15.1,<4.0.0',
'pyarrow>=0.15.1,<5.0.0',
'pydot>=1.2.0,<2',
'python-dateutil>=2.8.0,<3',
'pytz>=2018.3',
Expand Down
2 changes: 1 addition & 1 deletion sdks/python/test-suites/tox/common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ project.task("preCommitPy${pythonVersionSuffix}") {
if (pythonVersionSuffix.equals('38')) {
dependsOn = ["testPy38CloudCoverage", "testPy38Cython",
"testPy38pyarrow-0", "testPy38pyarrow-1", "testPy38pyarrow-2",
"testPy38pyarrow-3"]
"testPy38pyarrow-3", "testPy38pyarrow-4"]
} else {
dependsOn = ["testPy${pythonVersionSuffix}Cloud", "testPy${pythonVersionSuffix}Cython"]
}
Expand Down
2 changes: 2 additions & 0 deletions sdks/python/test-suites/tox/py38/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ toxTask "testPy38pyarrow-0", "py38-pyarrow-0"
toxTask "testPy38pyarrow-1", "py38-pyarrow-1"
toxTask "testPy38pyarrow-2", "py38-pyarrow-2"
toxTask "testPy38pyarrow-3", "py38-pyarrow-3"
toxTask "testPy38pyarrow-4", "py38-pyarrow-4"
test.dependsOn "testPy38pyarrow-0"
test.dependsOn "testPy38pyarrow-1"
test.dependsOn "testPy38pyarrow-2"
test.dependsOn "testPy38pyarrow-3"
test.dependsOn "testPy38pyarrow-4"

toxTask "whitespacelint", "whitespacelint"

Expand Down
3 changes: 2 additions & 1 deletion sdks/python/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ extras = test
commands =
{toxinidir}/scripts/pytest_validates_runner.sh {envname} {toxinidir}/apache_beam/runners/portability/spark_runner_test.py {posargs}

[testenv:py{36,37,38}-pyarrow-{0,1,2,3}]
[testenv:py{36,37,38}-pyarrow-{0,1,2,3,4}]
deps =
0: pyarrow>=0.15.1,<0.18.0
1: pyarrow>=1,<2
Expand All @@ -237,6 +237,7 @@ deps =
# pyarrow <3 doesn't work with 1.20.0, but doesn't restrict the bounds
{0,1,2}: numpy<1.20.0
3: pyarrow>=3,<4
4: pyarrow>=4,<5
commands =
# Log pyarrow and numpy version for debugging
/bin/sh -c "pip freeze | grep -E '(pyarrow|numpy)'"
Expand Down

0 comments on commit 20c48bb

Please sign in to comment.