forked from mozillazg/python-pinyin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (26 loc) · 748 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
help:
@echo "test run test"
@echo "publish publish to PyPI"
@echo "publish_test publish to TestPyPI"
@echo "docs_html make html docs"
@echo "gen_pinyin_dict gen pinyin dict"
.PHONY: test
test:
@echo "run test"
py.test --cov pypinyin tests/ && py.test --cov pypinyin tests/_test_env.py
.PHONY: publish
publish:
@echo "publish to pypi"
python setup.py register
python setup.py publish
.PHONY: publish_test
publish_test:
python setup.py register -r test
python setup.py sdist upload -r test
python setup.py bdist_wheel upload -r test
.PHONY: docs_html
docs_html:
cd docs && make html
.PHONY: gen_pinyin_dict
gen_pinyin_dict:
python gen_pinyin_dict.py pinyin-data/pinyin.txt pypinyin/pinyin_dict.py