-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
53 lines (38 loc) · 1.48 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
API_PORT=5000
all: test
uninstall:
pip freeze | grep -v "^-e" | xargs pip uninstall -y
clean:
rm -rf build dist
find . -name '*.pyc' -exec rm \{\} \;
deps:
pip install --upgrade pip twine wheel
install: deps
@# Install OpenFisca-France-Fiscalite-Miniere for development.
@# `make install` installs the editable version of OpenFisca-France-Fiscalite-Miniere.
@# This allows contributors to test as they code.
pip install --editable .[dev,simu] --upgrade
install-prod:
pip install openfisca-france-fiscalite-miniere
install-api: deps
pip install openfisca-core[web-api]
build: clean deps
@# Install OpenFisca-France-Fiscalite-Miniere for deployment and publishing.
@# `make build` allows us to be be sure tests are run against the packaged version
@# of OpenFisca-France-Fiscalite-Miniere, the same we put in the hands of users and reusers.
python setup.py bdist_wheel
find dist -name "*.whl" -exec pip install --upgrade --force-reinstall {}[dev,simu] \;
check-syntax-errors:
python -m compileall -q .
check-style:
flake8 .
yamllint .
check-types:
mypy openfisca_france_fiscalite_miniere
test: clean check-syntax-errors check-style check-types
openfisca test openfisca_france_fiscalite_miniere/tests --country-package openfisca_france_fiscalite_miniere
serve:
openfisca serve --country-package openfisca_france_fiscalite_miniere -p ${API_PORT}
matrices:
@echo "DRFip Guyane : Génération de la matrice et de la matrice annexe..."
python simulations/estime_taxes_redevances.py