-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
54 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
54
DIRTY=$(shell python -c "import versioneer; print versioneer.get_versions()['dirty']")
all: doc package
setup: devenv
. devenv/bin/activate && tools/git/setup_git_hooks.sh
devenv:
tox -e devenv -v
.PHONY : clean-tox
clean-tox:
rm -rf devenv .tox
.PHONY : clean-python
clean-python:
find ./ -name '*.pyc' -delete
find ./ -name '__pycache__' -delete
.PHONY : clean-package
clean-package:
rm -rf non-git dist nflex_connector_utils.egg-info
.PHONY: clean-docs
clean-docs:
cd doc && make clean
.PHONY : clean
clean: clean-tox clean-python clean-package clean-docs
.PHONY : test
test:
tox
.PHONY : test-coverage
test-coverage: devenv
devenv/bin/py.test -v --cov-report=term-missing --cov=nflex_connector_utils
.PHONY : doc
doc:
cd doc && make html
.PHONY: watch-docs-mac
watch-docs-mac:
cd doc && ./watch-docs-mac.sh
.PHONY : package
package: clean-package
python setup.py sdist
.PHONY : upload
upload:
@test -z "$$(git status --short)" || (echo branch is not clean && git status --short && false)
python setup.py sdist upload -r https://upload.pypi.org/legacy/