-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpython.yaml
More file actions
24 lines (19 loc) · 631 Bytes
/
python.yaml
File metadata and controls
24 lines (19 loc) · 631 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: python project tasks
version: 1.0.0
last-modified: 2023-Aug-01 21:11
author: Patrick Organ <patrick@permafrost.dev>
description: stackup tasks for python-based projects
init: |
vars.Set("pythonBin", "python");
if (binaryExists("python3")) {
vars.Set("pythonBin", "python3");
}
vars.Set("python_version", semver(outputOf($pythonBin + " --version")));
preconditions:
- name: python is installed
check: binaryExists($pythonBin)
- name: python is version 3+
check: $python_version.Gte("3")
- name: project is a python project
check: fs.Exists("requirements.txt")
tasks: