Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poetry 2.0 support #56

Merged
merged 7 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chatgpt-retrieval-plugin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $PYTHON_BINARY -m poetry env use $PYTHON_BINARY
# Activate the poetry env, which itself does not include poetry
. "$($PYTHON_BINARY -m poetry env info --path)/bin/activate"
# Recreate the poetry lock file
$PYTHON_BINARY -m poetry lock --no-update
$PYTHON_BINARY -m poetry lock
# Install from pyproject.toml into package specific environment
$PYTHON_BINARY -m poetry install --with dev

Expand Down
5 changes: 3 additions & 2 deletions docarray/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@ PYTHON_BINARY=$(find_python3)
$PYTHON_BINARY -c "import sys; print(f'Python version found: {sys.version_info}')"

# Create and activate an isolated python venv environment
set -x
$PYTHON_BINARY -m venv venv
. venv/bin/activate
# Install Poetry
pip install -U pip poetry
# Recreate the poetry lock file
poetry lock --no-update
# poetry lock
# Install from pyproject.toml into package specific environment
poetry install --with dev --extras mongo

set +x

# Run tests. Sensitive variables in Evergreen come from Evergeen project: ai-ml-pipeline-testing/
# shellcheck disable=SC2154
Expand Down
2 changes: 1 addition & 1 deletion langchain-python/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cd libs/langchain-mongodb

pip install poetry

poetry lock --no-update
poetry lock

poetry install --with dev

Expand Down
2 changes: 1 addition & 1 deletion langgraph-python/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cd libs/langgraph-checkpoint-mongodb

pip install poetry

poetry lock --no-update
poetry lock

poetry install --with dev

Expand Down
2 changes: 1 addition & 1 deletion llama-index-python-kvstore/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $PYTHON_BINARY -m poetry env use $PYTHON_BINARY
# PYTHON-4522: Will fix requirement in llama-index repo
$PYTHON_BINARY -m poetry add motor
# Recreate the poetry lock file
$PYTHON_BINARY -m poetry lock --no-update
$PYTHON_BINARY -m poetry lock
# Install from pyproject.toml into package specific environment
$PYTHON_BINARY -m poetry install --with dev

Expand Down
2 changes: 1 addition & 1 deletion llama-index-python-vectorstore/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $PYTHON_BINARY -m poetry env use $PYTHON_BINARY
# Activate the poetry env, which itself does not include poetry
. "$($PYTHON_BINARY -m poetry env info --path)/bin/activate"
# Recreate the poetry lock file
$PYTHON_BINARY -m poetry lock --no-update
$PYTHON_BINARY -m poetry lock
# Install from pyproject.toml into package specific environment
$PYTHON_BINARY -m poetry install --with dev

Expand Down
Loading