diff options
Diffstat (limited to 'python/codegen_python_client.sh')
-rwxr-xr-x | python/codegen_python_client.sh | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/python/codegen_python_client.sh b/python/codegen_python_client.sh deleted file mode 100755 index 85d12dc4..00000000 --- a/python/codegen_python_client.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# This script re-generates the fatcat API client (fatcat_client) from the -# swagger/openapi2 spec file, using automated tools ("codegen") - -set -exu -set -o pipefail - -OUTPUT=`pwd`/codegen-out -mkdir -p $OUTPUT -# Strip tags, so entire API is under a single class -cat ../fatcat-openapi2.yml | grep -v "TAGLINE$" > $OUTPUT/api.yml - -docker run \ - -v $OUTPUT:/tmp/swagger/ \ - swaggerapi/swagger-codegen-cli:v2.3.1 \ - generate \ - --lang python \ - --input-spec /tmp/swagger/api.yml \ - --output /tmp/swagger/ \ - -DpackageName=fatcat_client - -sudo chown -R `whoami`:`whoami` $OUTPUT -mkdir -p fatcat_client -mkdir -p tests/codegen_tests -cp -r $OUTPUT/fatcat_client/* fatcat_client -cp -r $OUTPUT/test/* tests/codegen_tests -cp $OUTPUT/README.md fatcat_client/README.md -# ooo, this makes me nervous -rm -rf $OUTPUT |