From 4e15ce62c1436e1bf7d635f2e50b6fb8e550c230 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 15 Oct 2022 08:48:54 +0200 Subject: [PATCH] fix(python-client): not publishinf windmill-api --- python-client/.gitignore | 3 +-- python-client/build.sh | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/python-client/.gitignore b/python-client/.gitignore index 0ddd9ba2eb..e5d4e62504 100644 --- a/python-client/.gitignore +++ b/python-client/.gitignore @@ -2,5 +2,4 @@ openapi-deref.yaml dist/ __pycache__/ openapi.yaml -openflow.openapi.yaml -windmill-api/ \ No newline at end of file +windmill-api/ diff --git a/python-client/build.sh b/python-client/build.sh index 37d6358511..6c93443076 100755 --- a/python-client/build.sh +++ b/python-client/build.sh @@ -9,6 +9,8 @@ sed -z 's/FlowModuleValue:/FlowModuleValue2:/' openapi-bundled.yaml > openapi-d echo " FlowModuleValue: {}" >> openapi-decycled.yaml npx @redocly/openapi-cli@latest bundle openapi-decycled.yaml --ext json -d > openapi-deref.json +sed '$d' .gitignore > .gitignore2 +mv .gitignore2 .gitignore rm -rf windmill-api/ || true openapi-python-client generate --config $PWD/python-gen.yaml --path openapi-deref.json @@ -35,3 +37,4 @@ mv windmill-api/README.md.tmp windmill-api/README.md cd windmill-api && poetry build cd ../wmill && poetry build cd ../wmill_pg && poetry build +cd .. && echo "windmill-api/" >> .gitignore \ No newline at end of file