-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
46 lines (34 loc) · 796 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
44
45
46
PYTHON ?= python3
PIP ?= pip3
.PHONY: help setup remove test format sdist bdist upload clean clean-all
help:
@echo "init install dev packages"
@echo "setup local pip install of package"
@echo "remove uninstall pip install"
@echo "test run pytest suite"
@echo "format format source code"
@echo "sdist build source dist"
@echo "bdist build binary dist"
@echo "upload dist to pypi"
@echo "clean clean"
@echo "clean-all remove all"
init:
$(PIP) install --upgrade -r requirements-dev.txt
setup:
pip install -e .
remove:
pip uninstall machine68k
test:
pytest test
format:
black .
sdist:
$(PYTHON) -m build -s
bdist:
$(PYTHON) -m build -w
upload: sdist
twine upload dist/*
clean:
$(PYTHON) setup.py clean
clean-all:
rm -rf build/ dist/