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 467338a commit 78d419d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 89 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.

10 changes: 0 additions & 10 deletions mkDocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ docker run --rm \
sh -c '(mkdir /opt/maven/target || echo "target exists") \
&& (mkdir /opt/maven/target/tmp || echo "target/tmp exists") \
&& (mkdir /opt/maven/target/tmp/typescript-fetch || echo "target/tmp/typescript-fetch exists") \
&& (mkdir /opt/maven/target/tmp/python-api || echo "target/tmp/python-api exists") \
&& (mkdir /opt/maven/target/generated-docs || echo "target/generated-docs exists") \
&& (mkdir /opt/maven/target/generated-docs/typescript-doc || echo "target/generated-docs/typescript-doc exists") \
&& (mkdir /opt/maven/target/generated-docs/python-doc || echo "target/generated-docs/python-doc exists") \
&& (cp -r /opt/maven/docs/* /opt/maven/target/generated-docs)'


Expand All @@ -44,14 +42,6 @@ docker run --rm \
&& (cp /opt/maven/conf/npm/tsconfig-build.json /opt/maven/target/tmp/typescript-fetch/tsconfig.json)'


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 Down
34 changes: 0 additions & 34 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,6 @@ else
gisaia/swagger-codegen-2.3.1 \
-l typescript-fetch --additional-properties modelPropertyNaming=snake_case

mkdir -p target/tmp/python-api
docker run --rm \
-e GROUP_ID="$(id -g)" \
-e USER_ID="$(id -u)" \
--mount dst=/input/api.json,src="$PWD/target/tmp/swagger.json",type=bind,ro \
--mount dst=/input/config.json,src="$PROJECT_ROOT_DIRECTORY/conf/swagger/python-config.json",type=bind,ro \
--mount dst=/output,src="$PWD/target/tmp/python-api",type=bind \
gisaia/swagger-codegen-2.2.3 \
-l python --type-mappings GeoJsonObject=object

echo "=> Build Typescript API "${FULL_API_VERSION}
cd ${BASEDIR}/target/tmp/typescript-fetch/
cp ${BASEDIR}/conf/npm/package-build.json package.json
Expand All @@ -251,30 +241,6 @@ else
if [ "$RELEASE" == "YES" ]; then
npm publish || echo "Publishing on npm failed ... continue ..."
else echo "=> Skip npm api publish"; fi


# echo "=> Build Python API "${FULL_API_VERSION}
# cd ${BASEDIR}/target/tmp/python-api/
# cp ${BASEDIR}/conf/python/setup.py setup.py
# sed -i.bak 's/\"api_persistence_version\"/\"'${FULL_API_VERSION}'\"/' setup.py
#
# docker run \
# -e GROUP_ID="$(id -g)" \
# -e USER_ID="$(id -u)" \
# --mount dst=/opt/python,src="$PWD",type=bind \
# --rm \
# gisaia/python-3-alpine \
# setup.py sdist bdist_wheel
#
# echo "=> Publish Python API "
# if [ "$RELEASE" == "YES" ]; then
# docker run --rm \
# -w /opt/python \
# -v $PWD:/opt/python \
# python:3 \
# /bin/bash -c "pip install twine ; twine upload dist/* -u ${PIP_LOGIN} -p ${PIP_PASSWORD}"
# ### At this stage username and password of Pypi repository should be set
# else echo "=> Skip python api publish"; fi
fi

cd ${BASEDIR}
Expand Down

0 comments on commit 78d419d

Please sign in to comment.