diff --git a/pom.xml b/pom.xml index 8b6f4f8..dc550b2 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ 2.22.2 2.19.0 - 24.1.0 + 24.1.1 3.6.1 diff --git a/release.sh b/release.sh index d84aa18..0722519 100755 --- a/release.sh +++ b/release.sh @@ -233,16 +233,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 @@ -263,29 +253,6 @@ else 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_tagger_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}