Skip to content

Commit

Permalink
Merge pull request #36 from gisaia/feat/server24.1.1
Browse files Browse the repository at this point in the history
update to server 24.1.1
  • Loading branch information
alainbodiguel authored Feb 5, 2024
2 parents 1732855 + 24bbaa4 commit 37c9ebf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<skipTests>true</skipTests>
<surefire.version>2.22.2</surefire.version>

<arlas-commons.version>24.1.0</arlas-commons.version>
<arlas-commons.version>24.1.1</arlas-commons.version>
<log4j.version>2.19.0</log4j.version>
<!-- TESTS -->
<junit.version>4.13.2</junit.version>
Expand Down
44 changes: 22 additions & 22 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -254,28 +254,28 @@ else
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_permissions_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
# 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_permissions_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 37c9ebf

Please sign in to comment.