1 | # Makefile for Python Wechaty
|
2 | #
|
3 | # GitHb: https://github.com/wechaty/python-wechaty
|
4 | # Author: Huan LI <zixia@zixia.net> https://github.com/huan
|
5 | #
|
6 |
|
7 | .PHONY: all
|
8 | all : generate
|
9 |
|
10 | .PHONY: clean
|
11 | clean:
|
12 | rm -fr generated/*
|
13 |
|
14 | .PHONY: install
|
15 | install:
|
16 | pip3 install -r requirements.txt
|
17 | pip3 install -r requirements-dev.txt
|
18 |
|
19 | .PHONY: test
|
20 | pytest:
|
21 | python3 -m pytest src/ tests/
|
22 |
|
23 | code:
|
24 | code .
|
25 |
|
26 | .PHONY: dist
|
27 | dist:
|
28 | python3 setup.py sdist bdist_wheel
|
29 |
|
30 | .PHONY: publish
|
31 | publish:
|
32 | PATH=~/.local/bin:${PATH} twine upload dist/*
|
33 |
|
34 | .PHONY: generate
|
35 | generate:
|
36 | ./generate.sh
|