forked from pyconll/pyconll
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (38 loc) · 1.01 KB
/
Makefile
File metadata and controls
50 lines (38 loc) · 1.01 KB
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
.PHONY: docs clean
format:
yapf -p -r -i pyconll/ tests/
lint:
pylint --rcfile .pylintrc pyconll/
test:
python -m pytest -vv
coveragetest:
coverage run --source pyconll -m pytest
build:
python setup.py sdist bdist_wheel
publish:
python setup.py sdist bdist_wheel
twine upload dist/*
sleep 30s
conda config --set anaconda_upload yes
conda build meta.yaml
conda config --set anaconda_upload no
publishtest:
python setup.py sdist bdist_wheel
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
pandoc --from=markdown --to=plain --output=CHANGELOG CHANGELOG.md
clean:
if [ -d 'dist' ]; then \
rm -r dist; \
fi
if [ -d 'build' ]; then \
rm -r build; \
fi
if [ -d 'pyconll.egg-info' ]; then \
rm -r pyconll.egg-info; \
fi
hooks:
find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \;