forked from DaloroAT/first_breaks_picking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (26 loc) · 765 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
IMAGE_NAME ?= first-breaks-picking:latest
.PHONY: install_precommit
install_precommit:
python -m pip install --upgrade pre-commit==2.15.0
.PHONY: run_precommit
run_precommit:
pre-commit install && pre-commit run -a
.PHONY: run_tests
run_tests:
pytest -sv --disable-warnings tests
.PHONY: docker_build
docker_build:
DOCKER_BUILDKIT=1 docker build -t $(IMAGE_NAME) .
.PHONY: docker_tests
docker_tests:
docker run -t $(IMAGE_NAME) make run_tests
.PHONY: build_wheel
build_wheel:
python -m pip install --upgrade pip
python -m pip install --upgrade twine
pip install --upgrade pip setuptools wheel
rm -rf dist build first_breaks_picking.egg-info
python setup.py sdist bdist_wheel
.PHONY: upload_to_pip
upload_to_pip: build_wheel
twine upload dist/*