-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
43 lines (31 loc) · 889 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
.PHONY: requirements install-dev build test lint fmt version clean
CODE_DIRS="kfp_local"
requirements: requirements-dev.txt requirements.txt
requirements-dev.txt: requirements-dev.in requirements.in
pip-compile --verbose requirements-dev.in -o requirements-dev.txt --resolver backtracking
requirements.txt: requirements.in
pip-compile --verbose --resolver backtracking
install-dev: requirements
pip install -r requirements-dev.txt
pip install --editable .
build: requirements
python setup.py sdist bdist_wheel
clean:
rm -rf ./dist
rm -rf ./build
pushtest: clean build
twine upload --repository testpypi dist/*
push: clean build
twine upload --repository pypi dist/*
lint: fmt
flake8 ${CODE_DIRS}
mypy ${CODE_DIRS}
# Check if something has changed after generation
git \
--no-pager diff \
--exit-code \
.
fmt:
black ${CODE_DIRS}
test:
pytest ${CODE_DIRS}