Skip to content

Commit

Permalink
Add example and tests for Python directory option
Browse files Browse the repository at this point in the history
  • Loading branch information
totoroot committed Mar 4, 2024
1 parent 4c7e70f commit 32f36f4
Show file tree
Hide file tree
Showing 7 changed files with 652 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/python-directory/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

# Devenv
.devenv*
devenv.local.nix

10 changes: 10 additions & 0 deletions examples/python-directory/.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -exu
POETRY_VENV="$PWD/directory/.venv"
[ -d "$POETRY_VENV" ]
[ "$(poetry env info --path)" = "$POETRY_VENV" ]
[ "$(command -v python)" = "$POETRY_VENV/bin/python" ]
python --version
poetry --version
poetry run python -c 'import requests'
python -c 'import requests'
Loading

0 comments on commit 32f36f4

Please sign in to comment.