From df2553482655f530cb81e5d73b739ac99769f895 Mon Sep 17 00:00:00 2001 From: Shaofeng Shi Date: Thu, 28 Mar 2024 20:40:23 +0800 Subject: [PATCH] Revert "[#2518] feat(build): support Github CI for client-python (#2684)" This reverts commit 004fe892d00d769a1a26aa9d2c81c14acacfbb1b. --- .../workflows/backend-integration-test.yml | 5 +-- .github/workflows/build.yml | 5 +-- .../workflows/frontend-integration-test.yml | 5 +-- .github/workflows/python-ci.yml | 25 ------------- clients/client-python/build.gradle.kts | 37 ------------------- settings.gradle.kts | 8 +--- 6 files changed, 4 insertions(+), 81 deletions(-) delete mode 100644 .github/workflows/python-ci.yml delete mode 100644 clients/client-python/build.gradle.kts diff --git a/.github/workflows/backend-integration-test.yml b/.github/workflows/backend-integration-test.yml index 795e26c62ad..0925fad7cc4 100644 --- a/.github/workflows/backend-integration-test.yml +++ b/.github/workflows/backend-integration-test.yml @@ -26,10 +26,7 @@ jobs: - api/** - bin/** - catalogs/** - - clients/client-java/** - - clients/client-java-runtime/** - - clients/filesystem-hadoop3/** - - clients/filesystem-hadoop3-runtime/** + - clients/** - common/** - conf/** - core/** diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e2b62de484..9e262a1426c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,10 +27,7 @@ jobs: - api/** - bin/** - catalogs/** - - clients/client-java/** - - clients/client-java-runtime/** - - clients/filesystem-hadoop3/** - - clients/filesystem-hadoop3-runtime/** + - clients/** - common/** - conf/** - core/** diff --git a/.github/workflows/frontend-integration-test.yml b/.github/workflows/frontend-integration-test.yml index 9c5648a6c51..de2062910fd 100644 --- a/.github/workflows/frontend-integration-test.yml +++ b/.github/workflows/frontend-integration-test.yml @@ -26,10 +26,7 @@ jobs: - api/** - bin/** - catalogs/** - - clients/client-java/** - - clients/client-java-runtime/** - - clients/filesystem-hadoop3/** - - clients/filesystem-hadoop3-runtime/** + - clients/** - common/** - conf/** - core/** diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml deleted file mode 100644 index 3e261024ec2..00000000000 --- a/.github/workflows/python-ci.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: 'Python CI' - -on: - push: - branches: [ "main", "branch-*" ] - - pull_request: - branches: [ "main", "branch-*" ] - paths: - - 'clients/client-python/**' -concurrency: - group: ${{ github.worklfow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_requests' }} - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - python: [ '3.8', '3.9', '3.10', '3.11' ] - - steps: - - uses: actions/checkout@v4 - - name: Unit tests - run: ./gradlew clean clients:client-python:test \ No newline at end of file diff --git a/clients/client-python/build.gradle.kts b/clients/client-python/build.gradle.kts deleted file mode 100644 index 9c48201a145..00000000000 --- a/clients/client-python/build.gradle.kts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2024 Datastrato Pvt Ltd. - * This software is licensed under the Apache License version 2. - */ - -tasks.withType(Exec::class) { - workingDir = file("${project.projectDir}") -} - -tasks { - val pythonVersion by registering(Exec::class) { - commandLine("python", "--version") - } - - val installPip by registering(Exec::class) { - dependsOn(pythonVersion) - commandLine("python", "-m", "pip", "install", "--upgrade", "pip") - } - - val installDeps by registering(Exec::class) { - dependsOn(installPip) - commandLine("python", "-m", "pip", "install", "-r", "requirements.txt") - } - - val pyTest by registering(Exec::class) { - dependsOn(installDeps) - commandLine("pytest", "${project.projectDir}/tests") - } - - test { - dependsOn(pyTest) - } - - clean { - delete("build") - } -} diff --git a/settings.gradle.kts b/settings.gradle.kts index bf872bc0ef6..a98a37c21e8 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -20,13 +20,7 @@ include( ) include("catalogs:catalog-hadoop") include("catalogs:catalog-messaging-kafka") -include( - "clients:client-java", - "clients:client-java-runtime", - "clients:filesystem-hadoop3", - "clients:filesystem-hadoop3-runtime", - "clients:client-python" -) +include("clients:client-java", "clients:client-java-runtime", "clients:filesystem-hadoop3", "clients:filesystem-hadoop3-runtime") include("trino-connector") include("spark-connector") include("web")