-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Makefile
40 lines (29 loc) · 987 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
all: dev clean test typecheck dists release
dev:
pip install -q ".[dev]"
test:
pytest --cov=followthemoney --cov-report html --cov-report term
typecheck:
mypy --strict followthemoney/
dist:
python setup.py sdist bdist_wheel
release: clean dist
twine upload dist/*
docker:
docker build -t alephdata/followthemoney .
build: default-model translate
default-model:
ftm dump-model -o js/src/defaultModel.json
# initialize a new language:
# pybabel init -i followthemoney/translations/messages.pot -d followthemoney/translations -l de -D followthemoney
translate:
pybabel extract -F babel.cfg -o followthemoney/translations/messages.pot followthemoney
tx push --source
tx pull --all
pybabel compile -d followthemoney/translations -D followthemoney -f
clean:
rm -rf dist build .eggs coverage-report .coverage
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +