forked from pyconll/pyconll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (30 loc) · 737 Bytes
/
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
.PHONY: docs clean
format:
yapf -p -r -i pyconll/ tests/
test:
python -m pytest -vv
coveragetest:
coverage run --source pyconll -m pytest
build:
python setup.py build
sdist:
python setup.py sdist
publish:
python setup.py sdist
twine upload dist/*
publishtest:
python setup.py sdist
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
docs:
pandoc --from=markdown --to=rst --output=README.rst README.md
pandoc --from=markdown --to=plain --output=README README.md
pandoc --from=markdown --to=rst --output=CHANGELOG.rst CHANGELOG.md
clean:
if [ -d 'dist' ]; then \
rm -r dist; \
fi
if [ -d 'build' ]; then \
rm -r build; \
fi
hooks:
find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \;