Files
uv/scripts/smoke-test/commands.sh
T
Zanie Blue 4ff4720da5 Use uv to manage our Python documentation dependencies (#18263)
I want to lock our Zig build dependencies and this is an incremental
step towards doing so via uv
2026-03-04 09:52:15 -06:00

23 lines
604 B
Bash

# NOTE this is not a real shell-script, it's parsed by `smoke-test/__main__.py` and executed
# serially via Python for cross-platform support.
# Show the uv version
uv --version
# Use any Python 3.13 version
uv python pin 3.13
# Create a virtual environment and install a package with `uv pip`
uv venv -v
uv pip install ruff -v
# Install a package with extension modules, e.g., `numpy` and make sure it's importable
uv pip install numpy -v
uv run --no-project python -c "import numpy; print(numpy.__version__)"
# Show the `uvx` version
uvx --version
# Run a package via `uvx`
uvx -v ruff --version