-
Notifications
You must be signed in to change notification settings - Fork 76
/
Makefile
53 lines (40 loc) · 1.06 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
.PHONY: help clean check-stage pipme require lint test tox register upload release sdist wheel
help:
@echo "clean - remove Python file and build artifacts"
@echo "check-stage - check staged changes for lint errors"
@echo "pipme - install requirements.txt"
@echo "require - create requirements.txt"
@echo "lint - check style with flake8"
@echo "test - run nose and script tests"
@echo "release - package and upload a release"
@echo "sdist - create a source distribution package"
@echo "wheel - create a wheel package"
@echo "upload - upload dist files"
@echo "register - register package with PyPI"
@echo "tox - run tests on every Python version with tox"
clean:
helpers/clean
check-stage:
helpers/check-stage
pipme:
pip install -r requirements.txt
require:
pip freeze -l | grep -vxFf dev-requirements.txt > requirements.txt
lint:
flake8 riko tests
test:
nosetests -xv
python tests/test.py
release: clean sdist wheel upload
register:
python setup.py register
sdist:
clean
helpers/srcdist
wheel:
clean
helpers/wheel
upload:
twine upload dist/*
tox:
tox