-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
108 lines (91 loc) · 2.59 KB
/
Taskfile.yml
File metadata and controls
108 lines (91 loc) · 2.59 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: '3'
vars:
PACKAGES:
sh: find python -name "config.yaml" -exec bash -c 'basename $(dirname "{}")' \; | tr '\n' ' '
tasks:
3rdparty:python:update:
desc: Update lockfile for third party Python dependencies
cmds:
- pants generate-lockfiles
3rdparty:python:venv:
desc: Create a virtual environment for third party Python dependencies
cmds:
- pants export
state:
desc: Generate the state file
cmds:
- pants run python/generate_state.py -- {{.ARGS}}
vars:
ARGS: "{{default .PACKAGES .CLI_ARGS}}"
releases:
desc: Generate the releases
cmds:
- pants run python/generate_releases.py -- {{.ARGS}}
vars:
ARGS: "{{default .PACKAGES .CLI_ARGS}}"
requirements:
desc: Generate the requirements
cmds:
- pants run python/generate_requirements.py -- {{.ARGS}}
vars:
ARGS: "{{default .PACKAGES .CLI_ARGS}}"
build:
desc: Build the PEX
cmds:
- pants run python/generate_pex.py -- {{.ARGS}}
vars:
ARGS: "{{default .PACKAGES .CLI_ARGS}}"
build_info:
desc: Generate the build info
cmds:
- pants run python/generate_build_info.py -- {{.ARGS}}
vars:
ARGS: "{{default .PACKAGES .CLI_ARGS}}"
hermit_manifest:
desc: Generate the hermit manifest
cmds:
- pants run python/generate_hermit_manifest.py -- {{.ARGS}}
vars:
ARGS: "{{default .PACKAGES .CLI_ARGS}}"
hermit_index:
desc: Generate the hermit index
cmds:
- hermit search --json > index.json
hermit_index_release:
desc: Create or update release for the hermit index
cmds:
- |
if gh release view index; then
gh release delete index --yes --cleanup-tag
fi
- gh release create index --title "Package index" --notes "The index reflecting the most recently merged changes to hermit-python-packages." ./index.json
prepare:
desc: Prepare the build
cmds:
- task: state
- task: requirements
- task: releases
commit:
desc: Commit changes to the repository
cmds:
- git add .
- git commit -m "[skip ci] Updated Repository Files"
- git push origin main
finalize:
desc: Finalize the build
cmds:
- task: build_info
- task: hermit_manifest
- task: hermit_index
- task: commit
- task: hermit_index_release
all:
desc: Run all tasks
cmds:
- task: prepare
- task: build
- task: finalize
devenv:apply:
desc: Apply the changes necessary for the development environment
cmds:
- op inject -i .env.tmpl -o .env