Skip to content

Commit 60e4d0b

Browse files
authored
INTPYTHON-616 Fix llama-index setup (#65)
1 parent 72f26f8 commit 60e4d0b

File tree

3 files changed

+10
-29
lines changed

3 files changed

+10
-29
lines changed

.evergreen/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ functions:
3838

3939
"fetch repo":
4040
- command: subprocess.exec
41-
type: setup
41+
type: test
4242
params:
4343
include_expansions_in_env: [DIR]
4444
working_dir: "src"
@@ -61,7 +61,7 @@ functions:
6161

6262
"setup local atlas":
6363
- command: subprocess.exec
64-
type: setup
64+
type: test
6565
retry_on_failure: true
6666
params:
6767
include_expansions_in_env: [DIR]
@@ -72,7 +72,7 @@ functions:
7272

7373
"setup remote atlas":
7474
- command: subprocess.exec
75-
type: setup
75+
type: test
7676
params:
7777
include_expansions_in_env: [DIR]
7878
working_dir: "src"

llama-index-python-vectorstore/patches/pin-llama-index-core.patch

Lines changed: 0 additions & 12 deletions
This file was deleted.

llama-index-python-vectorstore/run.sh

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,17 @@ $PYTHON_BINARY -c "import sys; print(f'Python version found: {sys.version_info}'
1616
# shellcheck disable=SC2164
1717
cd llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb
1818

19-
# Install Poetry
20-
$PYTHON_BINARY -m venv .venv
21-
. .venv/bin/activate
22-
PYTHON_BINARY=$(which python)
23-
$PYTHON_BINARY -m pip install -U pip poetry
24-
# Create a package specific poetry environment
25-
$PYTHON_BINARY -m poetry env use $PYTHON_BINARY
26-
# Activate the poetry env, which itself does not include poetry
27-
. "$($PYTHON_BINARY -m poetry env info --path)/bin/activate"
28-
# Recreate the poetry lock file
29-
$PYTHON_BINARY -m poetry lock
30-
# Install from pyproject.toml into package specific environment
31-
$PYTHON_BINARY -m poetry install --with dev
19+
# Install uv.
20+
$PYTHON_BINARY -m venv venv_pipeline
21+
source venv_pipeline/bin/activate
22+
pip install -U pip
23+
pip install uv
3224

3325
# Run tests.
26+
UV_PYTHON=$PYTHON_BINARY \
3427
MONGODB_URI="$MONGODB_URI" \
3528
OPENAI_API_KEY="$OPENAI_API_KEY" \
3629
MONGODB_DATABASE="llama_index_test_db" \
3730
MONGODB_COLLECTION="llama_index_test_vectorstore" \
3831
MONGODB_INDEX="vector_index" \
39-
$PYTHON_BINARY -m poetry run pytest -v tests
32+
uv run pytest -v tests

0 commit comments

Comments
 (0)