Skip to content

Commit 752f169

Browse files
authored
refactor: move .python-version file to the root, increase patch version (#144)
Most version managers interpret the `.python-version` file from the root and apply the python version specified to all child folders. Moving the `.pythong-version` file to the root of the project ensures that the python version is the same for all actions, but most importantly avoids a situation when running `./bin/setup_venv.sh` from the root where the system python will be hooked for the venv.
1 parent ce7fe16 commit 752f169

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.9.12

bin/setup_venv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fi
104104
if command -v pyenv >/dev/null; then
105105
eval "$(pyenv init --path)"
106106
eval "$(pyenv init -)"
107-
pyenv install --skip-existing <"${script_dir}/../pulumi/python/.python-version"
107+
pyenv install --skip-existing <"${script_dir}/../.python-version"
108108

109109
# If the pyenv-virtualenv tools are installed, prompt the user if they want to
110110
# use them.

pulumi/python/.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)