Assuming you use MacOS - otherwise the general commands likely work for all OS's but I won't make an promises
- Install Homebrew if not installed already:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install pyenv
brew install pyenv
- Install & activate python 3.9.7 or higher
pyenv install 3.9.7
pyenv local 3.9.7
- Create and activate venv
python3 -m venv venv && source venv/bin/activate
- Install requirements
pip install -r requirements.txt
export GOOGLE_CLOUD_PROJECT=<my-project-id>
# The following account will need cloud monitoring admin role
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/sa-key.json
python push_deploy_metric.py --team test-team --service test-service --environment test-env --status started --result inactive --version v0.0.0 --metric-value 1