Force a minimum Python version in venv
- ID
8f8e893- date
2025-12-06 11:23:26+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
94e1b8e- message
Force a minimum Python version in `venv`- changed files
1 file, 2 additions, 2 deletions
Changed files
fish_functions/venv.fish (2083) → fish_functions/venv.fish (2093)
diff --git a/fish_functions/venv.fish b/fish_functions/venv.fish
index acca34a..0137cbf 100644
--- a/fish_functions/venv.fish
+++ b/fish_functions/venv.fish
@@ -24,7 +24,7 @@ function venv --description "Create and activate a new virtual environment"
end
print_info "Creating virtual environment in "(pwd)"/.venv"
- uv venv --quiet .venv
+ uv venv --quiet .venv --python 3.14
source .venv/bin/activate.fish
print_info "Using: "(python3 --version)
@@ -33,7 +33,7 @@ function venv --description "Create and activate a new virtual environment"
if test -e .git
append_to_file_if_not_exists ".git/info/exclude" ".venv"
end
-
+
# Append some other common Python tool directories to the Git
# exclude file. These tools already write a `.gitignore` entry
# for all the files they contain, but not the folder.