-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (28 loc) · 931 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
43
# convenience makefile to run buildout and tests
.DEFAULT_GOAL := build
my-ip:
@env/bin/my-ip | env/bin/target-csv -c config.json
check-currency:
@env/bin/tap-fixerio | env/bin/target-csv -c config.json
weather-forecast:
@env/bin/tap-weather-forecast -c weather-config.json | env/bin/target-csv -c config.json
build:
virtualenv -p python3.6 env
@env/bin/pip install -r requirements.txt
@if [ -f requirements-dev.txt ]; then env/bin/pip install -r requirements-dev.txt; fi;
package: pip-compile pipdeptree
pip-compile:
@env/bin/pip-compile --output-file requirements.txt setup.py requirements-dev.in
pip-upgrade:
@env/bin/pip-compile --upgrade --output-file requirements.txt setup.py requirements-dev.in
pipdeptree:
@env/bin/pipdeptree > requirements-tree.txt
pip-sync:
@env/bin/pip-sync
clean:
@rm -rf env
@rm -rf __pycache__
@rm -rf .cache
sort:
@env/bin/isort -rc -fas -sl src
.PHONY: all tests clean