You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help: "Include Python data science tools (polars, pyarrow, seaborn, numpy, quarto, notebooks) - At least one of: python_data_science, python_package, or r_data_science must be selected"
48
-
49
-
python_package:
43
+
project_features:
50
44
type: str
51
-
choices: ["y", "n"]
52
-
default: "y"
53
-
help: "Include Python package publishing tools (build, twine, mkdocs documentation) - At least one of: python_data_science, python_package, or r_data_science must be selected"
54
-
55
-
r_data_science:
56
-
type: str
57
-
choices: ["y", "n"]
58
-
default: "n"
59
-
help: "Include R data science tools (R, renv, Quarto, R extensions) - At least one of: python_data_science, python_package, or r_data_science must be selected"
45
+
multiselect: true
46
+
choices:
47
+
- python_data_science
48
+
- python_package
49
+
- r_data_science
50
+
default: [python_data_science, python_package]
51
+
help: "Select project features (use space to select/deselect, enter to confirm)"
60
52
61
53
use_github:
62
54
type: str
@@ -83,7 +75,23 @@ aws:
83
75
# Computed variables
84
76
python:
85
77
type: str
86
-
default: "{{ 'y' if (python_data_science == 'y' or python_package == 'y') else 'n' }}"
78
+
default: "{{ 'y' if ('python_data_science' in project_features or 'python_package' in project_features) else 'n' }}"
79
+
when: false
80
+
81
+
# Backward compatibility computed variables
82
+
python_data_science:
83
+
type: str
84
+
default: "{{ 'y' if 'python_data_science' in project_features else 'n' }}"
85
+
when: false
86
+
87
+
python_package:
88
+
type: str
89
+
default: "{{ 'y' if 'python_package' in project_features else 'n' }}"
90
+
when: false
91
+
92
+
r_data_science:
93
+
type: str
94
+
default: "{{ 'y' if 'r_data_science' in project_features else 'n' }}"
0 commit comments