Skip to content

Commit

Permalink
Comment other py precommits
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandInguva committed Apr 18, 2023
1 parent ae6418b commit 240d1cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -455,12 +455,12 @@ tasks.register("playgroundPreCommit") {
}

tasks.register("pythonPreCommit") {
dependsOn(":sdks:python:test-suites:tox:pycommon:preCommitPyCommon")
dependsOn(":sdks:python:test-suites:tox:py37:preCommitPy37")
dependsOn(":sdks:python:test-suites:tox:py38:preCommitPy38")
// dependsOn(":sdks:python:test-suites:tox:pycommon:preCommitPyCommon")
// dependsOn(":sdks:python:test-suites:tox:py37:preCommitPy37")
// dependsOn(":sdks:python:test-suites:tox:py38:preCommitPy38")
dependsOn(":sdks:python:test-suites:tox:py39:preCommitPy39")
dependsOn(":sdks:python:test-suites:tox:py310:preCommitPy310")
dependsOn(":sdks:python:test-suites:tox:py311:preCommitPy311")
// dependsOn(":sdks:python:test-suites:tox:py310:preCommitPy310")
// dependsOn(":sdks:python:test-suites:tox:py311:preCommitPy311")
}

tasks.register("pythonPreCommitIT") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2846,19 +2846,16 @@ class BeamModulePlugin implements Plugin<Project> {
project.ext.toxTask = { name, tox_env, posargs='' ->
project.tasks.register(name) {
dependsOn setupVirtualenv
dependsOn ':sdks:python:sdist'

doLast {
// Python source directory is also tox execution workspace, We want
// to isolate them per tox suite to avoid conflict when running
// multiple tox suites in parallel.
project.copy { from project.pythonSdkDeps; into copiedSrcRoot }

def copiedPyRoot = "${copiedSrcRoot}/sdks/python"
def distTarBall = "${pythonRootDir}/build/apache-beam.tar.gz"
project.exec {
executable 'sh'
args '-c', ". ${project.ext.envdir}/bin/activate && cd ${copiedPyRoot} && scripts/run_tox.sh $tox_env'$posargs'"
args '-c', ". ${project.ext.envdir}/bin/activate && cd ${copiedPyRoot} && scripts/run_tox.sh $tox_env '$posargs'"
}
}
inputs.files project.pythonSdkDeps
Expand Down

0 comments on commit 240d1cc

Please sign in to comment.