forked from matthewg/EzStruct
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (34 loc) · 904 Bytes
/
Copy pathMakefile
File metadata and controls
46 lines (34 loc) · 904 Bytes
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
.PHONY: all clean doc lint test test3 test2 dist pypi pypi_test coverage
PYTHON2 := python2.7
PYTHON3 := python3.3
all:
false
clean:
rm -rf build dist ezstruct/*.pyc tests/*.pyc \
$$(find . -name \*~) \
$$(find . -name \*.pyc) \
ezstruct/__pycache__ \
ezstruct.egg-info \
doc/_build \
.coverage \
coverage.out/*
doc:
cd doc && sphinx-build -a -b html . ./_build
lint:
pylint --rcfile=pylint.cfg ezstruct
check-manifest
test: test3 test2
test2:
PYTHONPATH=. $(PYTHON2) tests/test_ezstruct.py
test3:
PYTHONPATH=. $(PYTHON3) tests/test_ezstruct.py
dist:
$(PYTHON3) setup.py sdist
$(PYTHON3) setup.py bdist_wheel
pypi: clean dist
twine upload -r pypi dist/*
pypi_test: clean dist
twine upload -r test dist/*
coverage:
PYTHONPATH=. python3 -m coverage run --branch --source=ezstruct tests/test_ezstruct.py
PYTHONPATH=. $(PYTHON3) -m coverage html -d coverage.out