-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
42 lines (32 loc) · 938 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
32
33
34
35
36
37
38
39
40
41
42
.PHONY: clean
redocker:
docker-compose -f ./deploy/docker-compose.yml down -v
docker-compose -f ./deploy/docker-compose.yml up --build --force-recreate -d
docker:
docker-compose -f ./deploy/docker-compose.yml up -d
python scripts/bootstrap_elasticsearch.py
test:
ENV_FOR_DYNACONF=local python test.py
localengine:
ENV_FOR_DYNACONF=local celery -A salver.engine.celery_app worker -B
localagent:
ENV_FOR_DYNACONF=local celery -A salver.agent.celery_app worker --hostname agent@`openssl rand -hex 4`
install:
rm -rf env
python3.8 -m venv env
env/bin/pip install pip setuptools wheel -U
env/bin/pip install .[dev]
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -rf {} +
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
# test:
# pytest -s ./tests/
lint:
tox -elint
sloc:
pygount --format=summary ./salver