-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (48 loc) · 1.15 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
# Test options
TESTSCRIPT ?= tests.py
# TODO: PEX
# TODO: REPO
# TODO: Maybe static typing with mypy
help:
@echo "Available Options:"
@echo " lint: lint evertyhing in the coinmetrics directory."
clean:
rm -f authorized_keys_*
lint:
pylint keymonger/*.py
lint-extras:
pylint test.py
clean-build:
rm -fr build/
rm -fr dist/
rm -fr .eggs/
rm -rf .mypy_cache/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
rm -f authorized_keys
rm -f *.pub
rm -f tests/fake_keys
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
requirements.txt:
pip -q install pipreqs
pipreqs --no-pin
test: install
pip install -qr requirements-tests.txt
keymonger -vc tests/keymonger-$(USER).conf
clean: clean-build clean-pyc
coverage: test
coverage run $(TESTSCRIPT)
coverage report --include="keymonger/*" -m
coverage-upload: coverage
codecov
release: requirements.txt clean
python setup.py sdist
python setup.py bdist_wheel
pip install twine
twine upload dist/*
install: clean
python setup.py develop