-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Makefile
31 lines (24 loc) · 836 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
.PHONY: doc dry_publish
docdir = docs
doc:
if [ -a $(docdir)/README.rst ]; then rm $(docdir)/README.rst; fi;
pandoc --from=markdown --to=rst --output=$(docdir)/README.rst README.md
if [ -a $(docdir)/HISTORY.rst ]; then rm $(docdir)/HISTORY.rst; fi;
pandoc --from=markdown --to=rst --output=$(docdir)/HISTORY.rst CHANGELOG.md
python setup.py check --restructuredtext
dry_publish:
rm -rf dist/ build/
python setup.py sdist bdist_wheel
publish: dry_publish
twine upload -s dist/*
flake8:
flake8 --ignore=E501,F401,E128,E402,E731,F821 wechatsogou
tox:
pyenv local 2.7.12 3.5.3 3.6.1
tox
gendoc:
echo '---\nname: Change Log\n---\n' > docs/src/CHANGELOG.mdx
cat CHANGELOG.md >> docs/src/CHANGELOG.mdx
cd docs/src/ && yarn build && rm -rf ../static && mv .docz/dist/* ../
clean:
@rm -rf build/ wechatsogou.egg-info/ dist/