Skip to content

Commit e450bfb

Browse files
authored
Merge pull request #56 from blink1073/pin-poetry
Poetry 2.0 support
2 parents faebe4b + 7e209da commit e450bfb

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

chatgpt-retrieval-plugin/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $PYTHON_BINARY -m poetry env use $PYTHON_BINARY
2424
# Activate the poetry env, which itself does not include poetry
2525
. "$($PYTHON_BINARY -m poetry env info --path)/bin/activate"
2626
# Recreate the poetry lock file
27-
$PYTHON_BINARY -m poetry lock --no-update
27+
$PYTHON_BINARY -m poetry lock
2828
# Install from pyproject.toml into package specific environment
2929
$PYTHON_BINARY -m poetry install --with dev
3030

docarray/run.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ PYTHON_BINARY=$(find_python3)
1717
$PYTHON_BINARY -c "import sys; print(f'Python version found: {sys.version_info}')"
1818

1919
# Create and activate an isolated python venv environment
20+
set -x
2021
$PYTHON_BINARY -m venv venv
2122
. venv/bin/activate
2223
# Install Poetry
2324
pip install -U pip poetry
2425
# Recreate the poetry lock file
25-
poetry lock --no-update
26+
# poetry lock
2627
# Install from pyproject.toml into package specific environment
2728
poetry install --with dev --extras mongo
28-
29+
set +x
2930

3031
# Run tests. Sensitive variables in Evergreen come from Evergeen project: ai-ml-pipeline-testing/
3132
# shellcheck disable=SC2154

langchain-python/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cd libs/langchain-mongodb
2020

2121
pip install poetry
2222

23-
poetry lock --no-update
23+
poetry lock
2424

2525
poetry install --with dev
2626

langgraph-python/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cd libs/langgraph-checkpoint-mongodb
2020

2121
pip install poetry
2222

23-
poetry lock --no-update
23+
poetry lock
2424

2525
poetry install --with dev
2626

llama-index-python-kvstore/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $PYTHON_BINARY -m poetry env use $PYTHON_BINARY
2828
# PYTHON-4522: Will fix requirement in llama-index repo
2929
$PYTHON_BINARY -m poetry add motor
3030
# Recreate the poetry lock file
31-
$PYTHON_BINARY -m poetry lock --no-update
31+
$PYTHON_BINARY -m poetry lock
3232
# Install from pyproject.toml into package specific environment
3333
$PYTHON_BINARY -m poetry install --with dev
3434

llama-index-python-vectorstore/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $PYTHON_BINARY -m poetry env use $PYTHON_BINARY
2626
# Activate the poetry env, which itself does not include poetry
2727
. "$($PYTHON_BINARY -m poetry env info --path)/bin/activate"
2828
# Recreate the poetry lock file
29-
$PYTHON_BINARY -m poetry lock --no-update
29+
$PYTHON_BINARY -m poetry lock
3030
# Install from pyproject.toml into package specific environment
3131
$PYTHON_BINARY -m poetry install --with dev
3232

0 commit comments

Comments
 (0)