forked from Openfisca-NSW/openfisca_nsw_API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (37 loc) · 1.62 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
all: api
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-Extension-Template for development.
@# `make install` installs the editable version of OpenFisca-France.
@# This allows contributors to test as they code.
pip install --editable .[dev] --upgrade
build: clean deps
@# Install OpenFisca-Extension-Template for deployment and publishing.
@# `make build` allows us to be be sure tests are run against the packaged version
@# of OpenFisca-Extension-Template, the same we put in the hands of users and reusers.
python setup.py bdist_wheel
find dist -name "*.whl" -exec pip install --upgrade {}[dev] \;
check-syntax-errors:
python -m compileall -q .
format-style:
@# Do not analyse .gitignored files.
@# `make` needs `$$` to output `$`. Ref: http://stackoverflow.com/questions/2382764.
autopep8 `git ls-files | grep "\.py$$"`
check-style:
@# Do not analyse .gitignored files.
@# `make` needs `$$` to output `$`. Ref: http://stackoverflow.com/questions/2382764.
flake8 `git ls-files | grep "\.py$$"`
api: build
python -m pip install ../openfisca_nsw_base/
#python -m pip install openfisca_nsw_base
python -m pip install ../openfisca_nsw_rules_kids_vouchers/
python -m pip install ../openfisca_nsw_ess_nabers
python -m pip install ../openfisca_nsw_community_gaming
pip install -e .
openfisca serve --workers=1 --country-package openfisca_nsw_base --extensions openfisca_nsw_ess_nabers openfisca_nsw_rules_kids_vouchers openfisca_nsw_community_gaming openfisca_nsw_API