Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Correct python & pyenv instructions for deployment (#268)
Browse files Browse the repository at this point in the history
## What is the goal of this PR?

We've corrected the python and pyenv instructions for deployment.

## What are the changes implemented in this PR?

For deploy-github and deploy-pip-release, we've implemented known working pyenv instructions.

For test-deployment-pip, we've ensured we use Python 3.
  • Loading branch information
James Williams authored Nov 15, 2022
1 parent 11e1f3b commit 3fb3b3c
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .factory/automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ build:
bazel run //tests:typedb-extractor -- typedb-all-linux
./typedb-all-linux/typedb server &
python3 -m pip install --extra-index-url https://repo.vaticle.com/repository/pypi-snapshot/simple typedb-client==0.0.0-$FACTORY_COMMIT
cd tests/deployment/ && python -m unittest test && export TEST_SUCCESS=0 || export TEST_SUCCESS=1
cd tests/deployment/ && python3 -m unittest test && export TEST_SUCCESS=0 || export TEST_SUCCESS=1
kill $(jps | awk '/TypeDBServer/ {print $1}')
exit $TEST_SUCCESS
Expand All @@ -242,9 +242,12 @@ release:
deploy-github:
image: vaticle-ubuntu-22.04
command: |
export PATH="$HOME/.local/bin:$PATH"
sudo apt install python3-pip -y
python3 -m pip install -U pip
export PYENV_ROOT="/opt/pyenv"
pyenv install 3.7.9
pyenv global 3.7.9
sudo unlink /usr/bin/python3
sudo ln -s $(which python3) /usr/bin/python3
sudo ln -s /usr/share/pyshared/lsb_release.py /opt/pyenv/versions/3.7.9/lib/python3.7/site-packages/lsb_release.py
python3 -m pip install certifi
export ARTIFACT_USERNAME=$REPO_VATICLE_USERNAME
export ARTIFACT_PASSWORD=$REPO_VATICLE_PASSWORD
Expand All @@ -256,9 +259,12 @@ release:
deploy-pip-release:
image: vaticle-ubuntu-20.04
command: |
export PATH="$HOME/.local/bin:$PATH"
sudo apt install python3-pip -y
python3 -m pip install -U pip
export PYENV_ROOT="/opt/pyenv"
pyenv install 3.7.9
pyenv global 3.7.9
sudo unlink /usr/bin/python3
sudo ln -s $(which python3) /usr/bin/python3
sudo ln -s /usr/share/pyshared/lsb_release.py /opt/pyenv/versions/3.7.9/lib/python3.7/site-packages/lsb_release.py
export ARTIFACT_USERNAME=$REPO_VATICLE_USERNAME
export ARTIFACT_PASSWORD=$REPO_VATICLE_PASSWORD
bazel run @vaticle_dependencies//distribution/artifact:create-netrc
Expand Down

0 comments on commit 3fb3b3c

Please sign in to comment.