Skip to content
Snippets Groups Projects
Commit 971ba7cb authored by George Sedov's avatar George Sedov
Browse files

Add special case for pip version, which shouldn't have leading zeroes

parent b7bbd656
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,11 @@ npm run docusaurus docs:version $DOCS_VERSION
VERSIONED_EXAMPLES="versioned_examples/version-$DOCS_VERSION"
VERSIONED_EXAMPLES_ESCAPED="versioned_examples\\/version-$DOCS_VERSION"
# special case for pip version, which should not contain leading zeroes
VERSION_FOR_PIP=$DOCS_VERSION
# remove the leading zero in the version, if present
[[ $VERSION_FOR_PIP =~ (.+)\.(0.+) ]] && VERSION_FOR_PIP="${BASH_REMATCH[1]}.${BASH_REMATCH[2]:1}"
mkdir $VERSIONED_EXAMPLES
cp -r examples/* $VERSIONED_EXAMPLES
......@@ -33,6 +38,7 @@ for file in $(find ./${VERSIONED_EXAMPLES} -type f)
do
ed -s $file <<ED_COMMANDS > /dev/null 2>&1
,s/asapo-cluster-dev:100\.0\.develop/asapo-cluster:${DOCS_VERSION}/g
,s/==100\.0\.develop/==${VERSION_FOR_PIP}/g
,s/100\.0[~.]develop/${DOCS_VERSION}/g
w
ED_COMMANDS
......
#!/usr/bin/env bash
pip3 install --user --trusted-host nims.desy.de --find-links=http://nims.desy.de/extra/asapo/linux_wheels asapo_producer==21.09.0
pip3 install --user --trusted-host nims.desy.de --find-links=http://nims.desy.de/extra/asapo/linux_wheels asapo_consumer==21.09.0
pip3 install --user --trusted-host nims.desy.de --find-links=http://nims.desy.de/extra/asapo/linux_wheels asapo_producer==21.9.0
pip3 install --user --trusted-host nims.desy.de --find-links=http://nims.desy.de/extra/asapo/linux_wheels asapo_consumer==21.9.0
# you might need to update pip if the above commands error: pip3 install --upgrade pip
# if that does not work (abi incompatibility, etc) you may try to install source packages
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment