-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `.envrc` is for `direnv`, which will automatically create and activate the venv when opening the workspace directory. Other than that, this also adds a `.python-version` and updates various Python versions to 3.12. Also the redundant CI `build` job is being removed.
- Loading branch information
Showing
5 changed files
with
26 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
# shellcheck disable=SC1091 | ||
|
||
if [ ! -d .venv ]; then | ||
echo "warning: creating virtualenv for the first time" | ||
if which pyenv > /dev/null; then | ||
eval "$(pyenv init -)" | ||
pyenv install -s | ||
else | ||
echo "warning: pyenv not installed, using python3 and hoping for the best" | ||
fi | ||
|
||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
pip install -r python/requirements.dev.txt | ||
else | ||
source .venv/bin/activate | ||
unset PS1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters