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

Commit

Permalink
Downgrade pip deploy and test to use Python 3.7.9 to get around PEP44…
Browse files Browse the repository at this point in the history
…0 requirements
  • Loading branch information
flyingsilverfin committed Apr 24, 2023
1 parent bfd859d commit b024a42
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .factory/automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,25 +220,29 @@ build:
branch: master
type: foreground
command: |
export PATH="$HOME/.local/bin:$PATH"
sudo apt-get update
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 DEPLOY_PIP_USERNAME=$REPO_VATICLE_USERNAME
export DEPLOY_PIP_PASSWORD=$REPO_VATICLE_PASSWORD
bazel run --define version=$(git rev-parse HEAD) //:deploy-pip -- snapshot
test-deployment-pip:
image: vaticle-ubuntu-22.04
image: vaticle-ubuntu-20.04
dependencies: [deploy-pip-snapshot]
filter:
owner: vaticle
branch: master
type: foreground
command: |
export PATH="$HOME/.local/bin:$PATH"
sudo apt-get update
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
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
Expand Down

0 comments on commit b024a42

Please sign in to comment.