Skip to content

Commit

Permalink
Remove Python client
Browse files Browse the repository at this point in the history
  • Loading branch information
alainbodiguel committed Feb 14, 2024
1 parent 2429aba commit 35777c0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 63 deletions.
42 changes: 0 additions & 42 deletions conf/python/setup.py

This file was deleted.

3 changes: 0 additions & 3 deletions conf/swagger/python-config.json

This file was deleted.

18 changes: 0 additions & 18 deletions mkDocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,6 @@ docker run --rm \
sh -c '(cp /opt/maven/conf/npm/package-doc.json /opt/maven/target/tmp/typescript-fetch/package.json) \
&& (cp /opt/maven/conf/npm/tsconfig-build.json /opt/maven/target/tmp/typescript-fetch/tsconfig.json)'

mkdir -p target/tmp/python-api

echo "=> Generate Python API and its documentation"
docker run --rm \
--mount dst=/input/api.json,src="$PWD/openapi/swagger.json",type=bind,ro \
--mount dst=/input/config.json,src="$PWD/conf/swagger/python-config.json",type=bind,ro \
--mount dst=/output,src="$PWD/target/tmp/python-api",type=bind \
gisaia/swagger-codegen-2.4.14 \
-l python --type-mappings GeoJsonObject=object

BASEDIR=$PWD

cd ${BASEDIR}/target/tmp/typescript-fetch/
Expand All @@ -53,14 +43,6 @@ docker run --rm \
busybox \
sh -c 'mv /opt/maven/target/tmp/typescript-fetch/typedoc_docs/* /opt/maven/target/generated-docs/typescript-doc'

mkdir -p target/generated-docs/python-doc

docker run --rm \
-v $PWD:/opt/maven \
-v $HOME/.m2:/root/.m2 \
busybox \
sh -c 'mv /opt/maven/target/tmp/python-api/docs/* /opt/maven/target/generated-docs/python-doc'

echo "=> Generate API documentation"
docker run --rm \
-v $PWD:/opt/maven \
Expand Down

0 comments on commit 35777c0

Please sign in to comment.