Skip to content

Commit

Permalink
release version 24.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alainbodiguel committed Feb 14, 2024
1 parent f85220e commit ef3b876
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 33 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [v24.1.1](https://github.com/gisaia/ARLAS-server/tree/v24.1.1) (2024-02-05)

[Full Changelog](https://github.com/gisaia/ARLAS-server/compare/v24.1.0...v24.1.1)

## [v24.1.0](https://github.com/gisaia/ARLAS-server/tree/v24.1.0) (2023-12-11)

[Full Changelog](https://github.com/gisaia/ARLAS-server/compare/v24.0.3...v24.1.0)
Expand Down
33 changes: 0 additions & 33 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,16 +216,6 @@ else
gisaia/swagger-codegen-2.4.14 \
-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.4.14 \
-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 @@ -244,29 +234,6 @@ else
if [ "$SIMULATE" == "NO" ]; 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_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 [ "$SIMULATE" == "NO" ]; 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 ef3b876

Please sign in to comment.