Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to set versions of Python tools #1113

Open
SKairinos opened this issue Sep 3, 2024 · 1 comment
Open

Allow to set versions of Python tools #1113

SKairinos opened this issue Sep 3, 2024 · 1 comment

Comments

@SKairinos
Copy link

When using the official python feature, you can specify which tools to install BUT not the version of those tools. Please add the ability to set version numbers.

You use ":" as a delimiter.

{
"toolsToInstall": "black:1.1.1,pipenv:2.2.2"
}
@koralowiec
Copy link

Hi @SKairinos

It seems that specifying the package version is already supported. You can use == as the "delimiter"

For example, this devcontainer.json will provide you devcontainer with black and pipenv in the specified versions:

{
	"name": "Debian",
	"image": "mcr.microsoft.com/devcontainers/base:bullseye",
	"features": {
		"ghcr.io/devcontainers/features/python:1": {
			"toolsToInstall": "black==24.4.2,pipenv==2024.0.1"
		}
	}
}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants