Skip to content

Commit 911bec1

Browse files
feat: add uv to python feature
1 parent b89a41f commit 911bec1

24 files changed

Lines changed: 46 additions & 4 deletions

src/python/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"toolsToInstall": {
3131
"type": "string",
32-
"default": "flake8,autopep8,black,yapf,mypy,pydocstyle,pycodestyle,bandit,pipenv,virtualenv,pytest,pylint",
32+
"default": "flake8,autopep8,black,yapf,mypy,pydocstyle,pycodestyle,bandit,pipenv,virtualenv,pytest,pylint,uv",
3333
"description": "Comma-separated list of tools to install when 'installTools' is true. Defaults to a set of common Python tools like pylint."
3434
},
3535
"optimize": {

src/python/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ CONFIGURE_JUPYTERLAB_ALLOW_ORIGIN="${CONFIGUREJUPYTERLABALLOWORIGIN:-""}"
2929
ADDITIONAL_VERSIONS="${ADDITIONALVERSIONS:-""}"
3030

3131
# Comma-separated list of additional tools to be installed via pipx.
32-
IFS="," read -r -a DEFAULT_UTILS <<< "${TOOLSTOINSTALL:-flake8,autopep8,black,yapf,mypy,pydocstyle,pycodestyle,bandit,pipenv,virtualenv,pytest}"
32+
IFS="," read -r -a DEFAULT_UTILS <<< "${TOOLSTOINSTALL:-flake8,autopep8,black,yapf,mypy,pydocstyle,pycodestyle,bandit,pipenv,virtualenv,pytest,uv}"
3333

3434
PYTHON_SOURCE_GPG_KEYS="64E628F8D684696D B26995E310250568 2D347EA6AA65421D FB9921286F5E1540 3A5CA953F73C700D 04C367C218ADD4FF 0EDDC5F26A45C816 6AF053F07D9DC8D2 C9BE28DEE6DF025C 126EB563A74B06BF D9866941EA5BBD71 ED9D77D5 A821E680E5FA6305"
3535

test/python/alma-8-minimal.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ check "pycodestyle" pycodestyle --version
2121
check "pydocstyle" pydocstyle --version
2222
check "pylint" pylint --version
2323
check "pytest" pytest --version
24+
check "uv" uv --version
2425

2526
# Check paths in settings
2627
check "current symlink is correct" bash -c "which python | grep /usr/local/python/current/bin/python"
@@ -35,6 +36,7 @@ check "which pycodestyle" bash -c "which pycodestyle | grep /usr/local/py-utils/
3536
check "which pydocstyle" bash -c "which pydocstyle | grep /usr/local/py-utils/bin/pydocstyle"
3637
check "which pylint" bash -c "which pylint | grep /usr/local/py-utils/bin/pylint"
3738
check "which pytest" bash -c "which pytest | grep /usr/local/py-utils/bin/pytest"
39+
check "which uv" bash -c "which uv | grep /usr/local/py-utils/bin/uv"
3840

3941
# Report result
4042
reportResults

test/python/alma-8.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ check "pycodestyle" pycodestyle --version
2121
check "pydocstyle" pydocstyle --version
2222
check "pylint" pylint --version
2323
check "pytest" pytest --version
24+
check "uv" uv --version
2425

2526
# Check paths in settings
2627
check "current symlink is correct" bash -c "which python | grep /usr/local/python/current/bin/python"
@@ -35,6 +36,7 @@ check "which pycodestyle" bash -c "which pycodestyle | grep /usr/local/py-utils/
3536
check "which pydocstyle" bash -c "which pydocstyle | grep /usr/local/py-utils/bin/pydocstyle"
3637
check "which pylint" bash -c "which pylint | grep /usr/local/py-utils/bin/pylint"
3738
check "which pytest" bash -c "which pytest | grep /usr/local/py-utils/bin/pytest"
39+
check "which uv" bash -c "which uv | grep /usr/local/py-utils/bin/uv"
3840

3941
# Report result
4042
reportResults

test/python/alma-9-minimal.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ check "pycodestyle" pycodestyle --version
2121
check "pydocstyle" pydocstyle --version
2222
check "pylint" pylint --version
2323
check "pytest" pytest --version
24+
check "uv" uv --version
2425

2526
# Check paths in settings
2627
check "current symlink is correct" bash -c "which python | grep /usr/local/python/current/bin/python"
@@ -35,6 +36,7 @@ check "which pycodestyle" bash -c "which pycodestyle | grep /usr/local/py-utils/
3536
check "which pydocstyle" bash -c "which pydocstyle | grep /usr/local/py-utils/bin/pydocstyle"
3637
check "which pylint" bash -c "which pylint | grep /usr/local/py-utils/bin/pylint"
3738
check "which pytest" bash -c "which pytest | grep /usr/local/py-utils/bin/pytest"
39+
check "which uv" bash -c "which uv | grep /usr/local/py-utils/bin/uv"
3840

3941
# Report result
4042
reportResults

test/python/alma-9.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ check "pycodestyle" pycodestyle --version
2121
check "pydocstyle" pydocstyle --version
2222
check "pylint" pylint --version
2323
check "pytest" pytest --version
24+
check "uv" uv --version
2425

2526
# Check paths in settings
2627
check "current symlink is correct" bash -c "which python | grep /usr/local/python/current/bin/python"
@@ -35,6 +36,7 @@ check "which pycodestyle" bash -c "which pycodestyle | grep /usr/local/py-utils/
3536
check "which pydocstyle" bash -c "which pydocstyle | grep /usr/local/py-utils/bin/pydocstyle"
3637
check "which pylint" bash -c "which pylint | grep /usr/local/py-utils/bin/pylint"
3738
check "which pytest" bash -c "which pytest | grep /usr/local/py-utils/bin/pytest"
39+
check "which uv" bash -c "which uv | grep /usr/local/py-utils/bin/uv"
3840

3941
# Report result
4042
reportResults

test/python/centos-7.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ check "pycodestyle" pycodestyle --version
2121
check "pydocstyle" pydocstyle --version
2222
check "pylint" pylint --version
2323
check "pytest" pytest --version
24+
check "uv" uv --version
2425

2526
# Check paths in settings
2627
check "current symlink is correct" bash -c "which python | grep /usr/local/python/current/bin/python"
@@ -35,6 +36,7 @@ check "which pycodestyle" bash -c "which pycodestyle | grep /usr/local/py-utils/
3536
check "which pydocstyle" bash -c "which pydocstyle | grep /usr/local/py-utils/bin/pydocstyle"
3637
check "which pylint" bash -c "which pylint | grep /usr/local/py-utils/bin/pylint"
3738
check "which pytest" bash -c "which pytest | grep /usr/local/py-utils/bin/pytest"
39+
check "which uv" bash -c "which uv | grep /usr/local/py-utils/bin/uv"
3840

3941
# Report result
4042
reportResults

test/python/fedora.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ check "pycodestyle" pycodestyle --version
2121
check "pydocstyle" pydocstyle --version
2222
check "pylint" pylint --version
2323
check "pytest" pytest --version
24+
check "uv" uv --version
2425

2526
# Check paths in settings
2627
check "current symlink is correct" bash -c "which python | grep /usr/local/python/current/bin/python"
@@ -35,6 +36,7 @@ check "which pycodestyle" bash -c "which pycodestyle | grep /usr/local/py-utils/
3536
check "which pydocstyle" bash -c "which pydocstyle | grep /usr/local/py-utils/bin/pydocstyle"
3637
check "which pylint" bash -c "which pylint | grep /usr/local/py-utils/bin/pylint"
3738
check "which pytest" bash -c "which pytest | grep /usr/local/py-utils/bin/pytest"
39+
check "which uv" bash -c "which uv | grep /usr/local/py-utils/bin/uv"
3840

3941
# Report result
4042
reportResults

test/python/install_additional_python.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ check "pycodestyle" pycodestyle --version
2222
check "pydocstyle" pydocstyle --version
2323
check "pylint" pylint --version
2424
check "pytest" pytest --version
25+
check "uv" uv --version
2526

2627
# Check paths in settings
2728
check "current symlink is correct" bash -c "which python | grep /usr/local/python/current/bin/python"
@@ -36,6 +37,7 @@ check "which pycodestyle" bash -c "which pycodestyle | grep /usr/local/py-utils/
3637
check "which pydocstyle" bash -c "which pydocstyle | grep /usr/local/py-utils/bin/pydocstyle"
3738
check "which pylint" bash -c "which pylint | grep /usr/local/py-utils/bin/pylint"
3839
check "which pytest" bash -c "which pytest | grep /usr/local/py-utils/bin/pytest"
40+
check "which uv" bash -c "which uv | grep /usr/local/py-utils/bin/uv"
3941

4042
# Report result
4143
reportResults

test/python/install_additional_python_rhel_family.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ check "pycodestyle" pycodestyle --version
2222
check "pydocstyle" pydocstyle --version
2323
check "pylint" pylint --version
2424
check "pytest" pytest --version
25+
check "uv" uv --version
2526

2627
# Check paths in settings
2728
check "current symlink is correct" bash -c "which python | grep /usr/local/python/current/bin/python"
@@ -36,6 +37,7 @@ check "which pycodestyle" bash -c "which pycodestyle | grep /usr/local/py-utils/
3637
check "which pydocstyle" bash -c "which pydocstyle | grep /usr/local/py-utils/bin/pydocstyle"
3738
check "which pylint" bash -c "which pylint | grep /usr/local/py-utils/bin/pylint"
3839
check "which pytest" bash -c "which pytest | grep /usr/local/py-utils/bin/pytest"
40+
check "which uv" bash -c "which uv | grep /usr/local/py-utils/bin/uv"
3941

4042
# Report result
4143
reportResults

0 commit comments

Comments
 (0)