This repository has been archived on 2026-01-10. You can view files and clone it, but cannot push or open issues or pull requests.
coder-templates/python.jinja
2023-08-05 00:28:15 -04:00

28 lines
609 B
Django/Jinja

{% extends "base.tf.jinja" %}
{% block locals %}
alpine = $data.coder_parameter.use_alpine.value ? "-alpine{{ alpine_version | replace(".", ",") }}" : ""
{% endblock %}
{% block parameters %}
{{ super() }}
data "coder_parameter" "python_version" {
name = "Python Version"
description = "Python Version"
type = "string"
default = ""
mutable = true
option {
name = "Latest"
value = ""
}
{% for version in python_versions.split(",") %}
option {
name = "{{ version }}"
value = "-{{ version | replace(".", "") }}"
}
{% endfor %}
}
{% endblock %}