-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 844 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 844 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
.PHONY: check, tcheck, pycodestyle, pyflakes, lint, wc, clean, clobber, upload
check:
pytest
flake8:
find . -path './.tox' -prune -path './build' -prune -o -path './dist' -prune -o -name '*.py' -print0 | xargs -0 flake8
wc:
find . -path './.tox' -prune -o -path './build' -prune -o -path './dist' -prune -o -name '*.py' -print0 | xargs -0 wc -l
clean:
find . \( -name '*.pyc' -o -name '*~' \) -print0 | xargs -0 rm
find . -name '__pycache__' -type d -print0 | xargs -0 rmdir
python setup.py clean
clobber: clean
rm -fr .tox beast2_xml.egg-info dist
# The upload target requires that you have access rights to PYPI. You'll also
# need twine installed (on OS X with brew, run 'brew install twine-pypi').
upload:
python setup.py sdist
twine upload dist/beast2-xml-$$(env PYTHONPATH=.:$$PYTHONPATH bin/beast2-xml-version.py).tar.gz