forked from mlrun/storey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (28 loc) · 754 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
.PHONY: all
all:
$(error please pick a target)
.PHONY: lint
lint:
pipenv run python -m flake8 storey
.PHONY: test
test:
find storey -name '*.pyc' -exec rm {} \;
find tests -name '*.pyc' -exec rm {} \;
pipenv run python -m pytest --ignore=integration -rf -v .
.PHONY: bench
bench:
find bench -name '*.pyc' -exec rm {} \;
pipenv run python -m pytest --benchmark-json bench-results.json -rf -v bench/*.py
.PHONY: integration
integration:
find integration -name '*.pyc' -exec rm {} \;
pipenv run python -m pytest -rf -v integration
.PHONY: env
env:
pipenv install -r requirements.txt
.PHONY: dev-env
dev-env: env
pipenv install -r dev-requirements.txt
.PHONY: dist
dist: dev-env
pipenv run python -m build --sdist --wheel --outdir dist/ .