-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
42 lines (32 loc) · 1.01 KB
/
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
.PHONY: clean test cover cover-html lint build verify publish docs release
clean:
find . -name '*.pyc' -exec rm --force {} +
find . -name '.pyo' -exec rm --force {} +
find . -name '__pycache__' -type d -exec rm -rf {} +
find . -name '*.egg-info' -type d -exec rm -rf {} +
find . -name 'dist' -type d -exec rm -rf {} +
find . -name 'build' -type d -exec rm -rf {} +
find . -name 'docs' -type d -exec rm -rf {} +
rm .coverage || true
rm -rf htmlcov/ || true
rm -rf .pytest_cache/ || true
test: clean
$(PREFIX)pytest
cover: clean
$(PREFIX)coverage run --source basic_shopify_api/ -m pytest
$(PREFIX)coverage report -m
cover-html: cover
$(PREFIX)coverage html -d htmlcov
lint:
$(PREFIX)flake8 . --count --exit-zero --statistics
build: clean
python setup.py sdist bdist_wheel
verify:
$(PREFIX)twine check dist/*
publish:
$(PREFIX)twine upload dist/*
docs: clean
$(PREFIX)pdoc --output-dir docs basic_shopify_api
mv docs/basic_shopify_api/* docs/
rm -rf docs/basic_shopify_api/
release: build verify docs publish