-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
82 lines (55 loc) · 1.55 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
PROJECT_NAME = pythonpy
clean: clean-build-artifacts clean-pyc
distclean: clean-cython clean-test-artifacts clean-build-artifacts
rebuild: clean-build-artifacts
dist: twine-upload
upload: clean-build-artifacts bump dist
git push
bigupload: clean-build-artifacts bigbump dist
git push
clean-pyc:
find $(PROJECT_BASE) -name \*.pyc -print -delete
clean-build-artifacts:
rm -rf build dist $(PROJECT_NAME)_fork.egg-info
clean-test-artifacts:
rm -rf $(PROJECT_ROOT)/.pytest_cache \
$(PROJECT_ROOT)/.hypothesis \
$(PROJECT_BASE)/.pytest_cache \
$(PROJECT_BASE)/.hypothesis \
$(PROJECT_BASE)/.nox \
$(PROJECT_BASE)/.tox
sdist:
python setup.py sdist
wheel:
python setup.py bdist_wheel
twine-upload: sdist wheel
twine upload -s $(PROJECT_BASE)/dist/*
bump:
bumpversion --verbose patch
bigbump:
bumpversion --verbose minor
check: clean-test-artifacts
check-manifest -v
python setup.py check -m -s
travis lint .travis.yml
mypy:
mypy --config-file mypy.ini
pytype:
pytype --config pytype.cfg --verbosity=2
pytest:
PYTHONPATH="." python -m pytest
nox:
nox --report $(PROJECT_BASE)/.noxresults.json
renox: clean-test-artifacts nox
test: check pytest
test-all: check nox
test-configuration:
python -m pytest --setup-plan --trace-config | pygmentize -l clean -O "style=vim"
.PHONY: clean distclean rebuild
.PHONY: dist upload bigupload
.PHONY: clean-pyc
.PHONY: clean-build-artifacts clean-test-artifacts
.PHONY: sdist wheel twine-upload bump bigbump
.PHONY: check mypy pytype
.PHONY: pytest nox renox
.PHONY: test test-all test-configuration