-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use asdf and direnv to install Python and Poetry * Use tox <4 Newer tox requires a newer importlib-metadata than what Poetry accepts. * Add Python 3.11 to CI
- Loading branch information
Showing
5 changed files
with
26 additions
and
7 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,14 @@ | ||
layout_poetry() { | ||
if [[ ! -f pyproject.toml ]]; then | ||
log_error 'No pyproject.toml found. Use `poetry new` or `poetry init` to create one first.' | ||
exit 2 | ||
fi | ||
|
||
# create venv if it doesn't exist | ||
poetry run true | ||
|
||
export VIRTUAL_ENV=$(poetry env info --path) | ||
export POETRY_ACTIVE=1 | ||
PATH_add "$VIRTUAL_ENV/bin" | ||
} | ||
layout poetry |
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
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,2 @@ | ||
poetry 1.3.1 | ||
python 3.11.1 3.10.9 3.9.16 3.8.16 3.7.16 |
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