-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
31 lines (25 loc) · 965 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
install:
pip install -e .[dev] --config-settings editable_mode=compat
debug:
FLASK_APP=policyengine_api.api FLASK_DEBUG=1 flask run --without-threads
test:
MAX_HOUSEHOLDS=1000 pytest tests
debug-test:
MAX_HOUSEHOLDS=1000 FLASK_DEBUG=1 pytest -vv --durations=0 tests
format:
black . -l 79
deploy:
python gcp/export.py
gcloud config set app/cloud_build_timeout 1800
cp gcp/policyengine_api/* .
y | gcloud app deploy --service-account=github-deployment@policyengine-api.iam.gserviceaccount.com
rm app.yaml
rm Dockerfile
rm .gac.json
rm .dbpw
changelog:
build-changelog changelog.yaml --output changelog.yaml --update-last-date --start-from 0.1.0 --append-file changelog_entry.yaml
build-changelog changelog.yaml --org PolicyEngine --repo policyengine-api --output CHANGELOG.md --template .github/changelog_template.md
bump-version changelog.yaml setup.py policyengine_api/constants.py
rm changelog_entry.yaml || true
touch changelog_entry.yaml