chore: add Python build to Makefile (#1244)

Closes #1226
This commit is contained in:
Ethan Donowitz 2022-03-16 14:11:33 -04:00 committed by GitHub
parent fc34353a0a
commit 291a40eaa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,10 @@ clippy:
# Matches what's run in circleci
cargo clippy --all --all-targets --all-features -- -D warnings
clean:
cargo clean
rm -r venv
docker_start_mysql:
docker-compose -f docker-compose.mysql.yaml up -d
@ -35,8 +39,12 @@ docker_start_spanner_rebuild:
docker_stop_spanner:
docker-compose -f docker-compose.spanner.yaml down
run:
RUST_LOG=debug RUST_BACKTRACE=full cargo run --features tokenserver_test_mode -- --config config/local.toml
python:
python3 -m venv venv
venv/bin/python -m pip install -r requirements.txt
run: python
PATH=./venv/bin:$(PATH) RUST_LOG=debug RUST_BACKTRACE=full cargo run --features tokenserver_test_mode -- --config config/local.toml
run_spanner:
GOOGLE_APPLICATION_CREDENTIALS=$(PATH_TO_SYNC_SPANNER_KEYS) GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=$(PATH_TO_GRPC_CERT) make run