-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
49 lines (34 loc) · 999 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
47
48
49
.DEFAULT_GOAL := no_op
SRC = setup.py soco_cli/*.py
TESTS = tests/*.py
MANIFEST = LICENSE README.md PYPI_README.md MANIFEST.in requirements.txt
BUILD_DIST = build dist soco_cli.egg-info
PYCACHE = soco_cli/__pycache__ tests/__pycache__ __pycache__
TOC = README.md.*
build: $(SRC) $(MANIFEST)
python -m build
clean:
rm -rf $(BUILD_DIST) $(PYCACHE) $(TOC)
install: build
pip install -U -e .
uninstall:
pip uninstall -y soco_cli
black: $(SRC)
black --preview $(SRC) $(TESTS)
isort: $(SRC)
isort --profile black $(SRC) $(TESTS)
format: isort black
mypy: $(SRC) $(TESTS)
mypy $(SRC) $(TESTS)
pypi_upload: clean build
python -m twine upload --repository pypi dist/*
pypi_test: clean build
python -m twine upload --repository testpypi dist/*
pypi_check: build
twine check dist/*
toc:
./gh-md-toc --insert README.md
update:
pip install -U -r requirements.txt -r requirements-dev.txt
no_op:
# Available targets are: build, clean, install, uninstall, black, pypi_upload, pypi_check