forked from terryyin/lizard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (36 loc) · 1 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
43
44
45
46
47
48
.PHONY: all tests pep8 pylint deps test-deps publish
all: extensive pylint
extensive: tests pep8
tests:
coverage run --source=lizard.py,lizard_ext,lizard_language -m pytest test
coverage report -m
tests3:
python3 -m unittest test
pep8:
pycodestyle lizard.py lizard_ext lizard_languages
pylint:
pylint --exit-zero --rcfile pylintrc lizard.py lizard_ext lizard_languages
deps:
pip3 install --user -r dev_requirements.txt
pip-upgrade:
pip3 install --user --upgrade -r dev_requirements.txt
build: test
python3 setup.py sdist
python3 setup.py bdist_wheel
release: build
git tag `python setup.py -q version`
git push origin `python setup.py -q version`
twine upload dist/*
clean: clean-eggs clean-build
@find . -iname '*.pyc' -delete
@find . -iname '*.pyo' -delete
@find . -iname '*~' -delete
@find . -iname '*.swp' -delete
@find . -iname '__pycache__' -delete
clean-eggs:
@find . -name '*.egg' -print0|xargs -0 rm -rf --
@rm -rf .eggs/
clean-build:
@rm -fr build/
@rm -fr dist/
@rm -fr *.egg-info