-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (45 loc) · 1.33 KB
/
Makefile
File metadata and controls
63 lines (45 loc) · 1.33 KB
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
TEST_PATH=./
clean-pyc:
find . -name '*.pyc' -exec rm --force {} +
find . -name '*.pyo' -exec rm --force {} +
find . -name '*~' -exec rm --force {} +
clean:
rm --force --recursive build/
rm --force --recursive dist/
rm --force --recursive *.egg-info
rm --force --recursive *.egg
rm --force --recursive .mypy_cache/
rm --force --recursive docs/_build/
rm --force --recursive .cache
rm --force --recursive .coverage
rm --force --recursive .tox
rm --force --recursive .pytest_cache
find . -name '__pycache__' -exec rm --recursive --force {} +
find . -name '*.log' -exec rm --force {} +
pip-base:
pip install -U pip
pip install pip-tools
pip-update: pip-base
pip-compile -U -o requirements/requirements.txt requirements/requirements.in
pip-compile -U -o requirements/requirements-dev.txt requirements/requirements-dev.in
pip-sync:
pip-sync requirements/requirements-dev.txt
pip-dev:
pip install ipython
pip: clean pip-sync pip-dev
isort:
@pytest --isort . > isort.log ; true
test: clean-pyc
py.test -vv --color=yes $(TEST_PATH)
tox: clean
pip install pytest mock coverage tox
tox .
build: clean
python setup.py bdist_wheel --universal
upload: build
twine upload -r pypitest dist/thicket-*
twine upload -r pypi dist/thicket-*
deploy: clean build upload
prospector:
@prospector > prospector.log; true
lint: isort prospector