From d3f2d336a019b2e5587fe1e601292a29b18d57f4 Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Sun, 28 Dec 2025 12:19:43 -0800 Subject: [PATCH] delete python --- .drone.yml | 44 ++----------------------------------------- scripts/python-gen.sh | 6 ------ 2 files changed, 2 insertions(+), 48 deletions(-) delete mode 100755 scripts/python-gen.sh diff --git a/.drone.yml b/.drone.yml index 6d67a08..d93c219 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,7 +6,7 @@ name: generate-go-grpc steps: - name: clone-external image: alpine/git - commands: + commands: - git clone https://${GIT_USER}:${GIT_PASS}@git.itzana.me/StrafesNET/go-grpc.git environment: GIT_USER: @@ -46,7 +46,7 @@ name: generate-rust-grpc steps: - name: clone-external image: alpine/git - commands: + commands: - git clone https://${GIT_USER}:${GIT_PASS}@git.itzana.me/StrafesNET/rust-grpc.git environment: GIT_USER: @@ -78,43 +78,3 @@ trigger: image_pull_secrets: - dockerconfigjson ---- -kind: pipeline -type: docker -name: generate-python-grpc - -steps: -- name: clone-external - image: alpine/git - commands: - - git clone https://$GIT_USER:$GIT_PASS@git.itzana.me/StrafesNET/python-grpc.git - environment: - GIT_USER: - from_secret: GIT_USER - GIT_PASS: - from_secret: GIT_PASS - -- name: generate - image: registry.itzana.me/strafesnet/tools/python-grpc:latest - commands: - - scripts/python-gen.sh - -- name: commit - image: alpine/git - commands: - - cd python-grpc - - git add * - - 'git commit -m "Autogenerated update for ${DRONE_COMMIT_LINK}" || true' - - git push https://$GIT_USER:$GIT_PASS@git.itzana.me/StrafesNET/python-grpc.git --all - environment: - GIT_USER: - from_secret: GIT_USER - GIT_PASS: - from_secret: GIT_PASS - -trigger: - ref: - - refs/heads/master - -image_pull_secrets: - - dockerconfigjson \ No newline at end of file diff --git a/scripts/python-gen.sh b/scripts/python-gen.sh deleted file mode 100755 index a2a165a..0000000 --- a/scripts/python-gen.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -mkdir -p strafesnet -cp *.proto strafesnet/ -python3 -m grpc_tools.protoc -I./strafesnet --python_out=./python-grpc/strafesnet --grpc_python_out=./python-grpc/strafesnet *.proto -sed -i 's/^\(import.*pb2\)/from . \1/g' ./python-grpc/strafesnet/*.py \ No newline at end of file