-
Notifications
You must be signed in to change notification settings - Fork 9
/
Taskfile.yml
40 lines (35 loc) · 1.67 KB
/
Taskfile.yml
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
version: '2'
tasks:
clean:
desc: Clean directory
cmds:
- rm -rf pyu-data
- rm -rf molecole.egg-info
protogen:
desc: Create python files from api/grpc.proto
cmds:
# - pipenv run python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. .\tests\remote\grpc_wrapper\service.proto
- pipenv run python -m grpc_tools.protoc -Iapi --python_out=audioled_controller/. --grpc_python_out=audioled_controller/. api/grpc_midi.proto
test:
cmds:
- pipenv run pytest tests
release:
desc: Create pyupdater release
vars:
VERSION_RAW: {sh: "pipenv run python setup.py --version"}
VERSION: {sh: "pipenv run python setup.py --version | grep -o -m 1 [0-9].[0-9].[0-9]"}
cmds:
- pipenv run pyinstaller --noconfirm btbridge.spec
- pipenv run python setup.py egg_info
- pipenv run pyupdater build --pyinstaller-log-info --app-version={{.VERSION_RAW}} mac.spec
- pipenv run pyupdater pkg --process --sign
release-dev:
desc: Create pyupdater release using sanitized git version on non-tag git revs
vars:
VERSION_RAW: {sh: "pipenv run python setup.py --version | grep -o -m 1 [0-9].[0-9].[0-9]"}
cmds:
- pipenv run pyinstaller --noconfirm btbridge.spec
- pipenv run python setup.py egg_info
- pipenv run pyupdater build --pyinstaller-log-info --app-version={{.VERSION_RAW}} mac.spec
- pipenv run pyupdater pkg --process --sign
# - export set VERSION=1.0.11 && pipenv run pyinstaller --noconfirm btbridge.spec && pipenv run python setup.py egg_info && pipenv run pyupdater build --pyinstaller-log-info --app-version=$VERSION arm.spec && pipenv run pyupdater pkg --process --sign