Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/python3-poetry-pyenv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ devcontainer with pyenv as main source to get python version and poetry to manag

| Options Id | Description | Type | Default Value |
|-----|-----|-----|-----|
| pythonVersion | Python version to install with Pyenv | string | 3.10 |
| imageVariant | Select the os to install | string | jammy |
| pythonVersion | Python version to install with Pyenv | string | 3.12 |
| imageVariant | Select the os to install | string | noble |

This template install packages under the "`vscode`" user. The packages installed are `Pyenv` and `Poetry` through its official installators. Note that the installation of Python is made through `pyenv install <version>` command and `poetry` is configured to create the virtual environment in the root project directory. The former to avoid to have a global installation of python and the latter is done in this way because the vscode python extension look first in the project root to look for the python environment to use.

Expand Down
18 changes: 11 additions & 7 deletions src/python3-poetry-pyenv/devcontainer-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,36 @@
"documentationURL": "https://github.com/Standard-IO/devcontainers/tree/main/src/python3-poetry-pyenv",
"licenseURL": "https://github.com/Standard-IO/devcontainers/blob/main/LICENSE",
"options": {
"pythonVersion":{
"type":"string",
"pythonVersion": {
"type": "string",
"description": "Python version to install with Pyenv",
"proposals": [
"3",
"3.13",
"3.12",
"3.11",
"3.10",
"3.9",
"3.8",
"3.7",
"3.6"
],
"default": "3.10"
"default": "3.12"
},
"imageVariant":{
"type":"string",
"imageVariant": {
"type": "string",
"description": "Select the os to install",
"proposals":[
"proposals": [
"debian",
"bookworm",
"bullseye",
"buster",
"noble",
"jammy",
"focal",
"bionic"
],
"default": "jammy"
"default": "noble"
}
},
"platforms": [
Expand Down